I have two tables in the sql server - one with 51 American states, and the other with a name, state. a table with the name state has different records, namely -
Seere -- AK
Seere -- LA
Seere -- CA
John -- HI
John -- MA
I want the query that selects one name to be called "Seere" and show all the states from the state table and the name attached to those states that are from the second table, therefore
null -- AR
Seere -- AK
Seere -- LA
Seere -- CA
null -- MA
null -- CO
same for all names, I just select one name and show all the states. any ideas?
iuers source
share