Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,656 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
If the client.race field is blank for a row then it is not selected in the statement below. However, I want these rows to be select. Is there a way to do this?
SELECT last_name, client.race, ethnicity.descrip From client
JOIN ethnicity on client.race = ethnicity.race
SELECT last_name, client.race, ethnicity.descrip
From client
LEFT JOIN ethnicity on client.race = ethnicity.race