Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

SQL server 2005 TSQL problem

$
0
0
Deal all\,

Table1 
Table2 
T1Col1T1col2
T2Col1T2col2
1asdf
1asdf
2ghgh
2ghgh
3kkjk
3kkjk
4kkjk
4ldflkl
5jhjj
5urws


Think that i have above 2 tables in SQL server 2005.

select * from table1 where T1Col1 in ( select T1Col1 from Table2)

should i except error for the above query ?

But SQL server 2005 is not giving any error , it is simple resulting all rows  from Table1


regards
ranganadh kodali



Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>