0

How to use join query?

I need real time scenario

16th Apr 2017, 7:42 AM
Praveen
2 odpowiedzi
+ 3
Users who lives in New York: select full_name from account as ac, address as ad where ac.id=ad.account_id and ad.city='New York'; Select users whose city is unknown: select full_name from account as ac left outer join address as ad on (ac.id=ad.account_id) where ad.city is null;
16th Apr 2017, 7:47 AM
Tamás Barta
Tamás Barta - avatar
0
Thank you
16th Apr 2017, 7:48 AM
Praveen