sql server - How to make list in a query with only a certain character -


below table working with:

first_name  last_name first_3_characters number bill        whithers first_3_characters last_3_characters number_of_characters_in_first_name character234 john        lennon jack        white john        coltrane 

everything doesn't have value null. column names are, say. need take first 3 characters of full name, last 3 characters of full name, number of characters in first name, , character234, meaning character 2, character 3 , character 4. example if looked @ john lennon, joh, non, 4, ohn. new sequel , unsure how make values , put them null row. please help!

left, right, len , substring functions:

select left(first_name, 3) first_3_characters,         right(last_name, 3) last_3_characters,         len(first_name) number_of_characters_in_first_name,         substring(first_name, 2, 3) character234 tablename 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -