Home Forums SQL Server 2005 T-SQL (SS2K5) Query with distinct values RE: Query with distinct values
Koen Verbeeck
SSC Guru
Points: 259085
More actions
February 25, 2015 at 8:30 am
#1779937
SELECT DISTINCT
t2.Number
,t1.Name
,t1.Country
FROM table2 t2
LEFT JOIN table1 t1 ON t2.Number = t1.Number;
Need an answer? No, you need a questionMy blog at https://sqlkover.com.MCSE Business Intelligence - Microsoft Data Platform MVP