Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

SQL Query Problem

$
0
0
Hello All,I have somthing like this :Table 1CustID Name 116 John Table2LangID CustID LangName001 116 English002 116 FrenchTable3AvailID CustID Date101 116 Jan 08 2016What I'm trying to accomplish is to return all columns in Table 1 where LangName from Table 2 = 'English'simple approach:select * from Table1, Table2, Table3 where Table2.LangName = 'English'The problem is I end up with:116 English Jan 08 2016116 French Jan 08 2016I just need the first row from table 1Any help is appreciated.Thanks again

Viewing all articles
Browse latest Browse all 3145

Trending Articles