|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Dear All,
iwas wondering which of the the two methods, ( inner join ) or (in SELECT ...) ,has a better performance than the other. to be more clear .. if i have two tables having join between them and i want to select from table1 with a condition in the where satement that reflects on the other table ex: Select * from Table1 FROM table1 Inner Join table2 ON table1.field = table2.field where table1.field2 = value AND table2.field3 = value or is it better to be: Select * from Table1 FROM table1 where table1.field2 = value AND table1.field3 in (SELECT table2.field3 FROM table2 where ... ) |
|
#2
|
||||
|
||||
|
If i remember correctly - INNER JOINs will almost always be faster than SUB-SELECTs
Here's a handy little reference doc: http://www.sql-server-performance.com/tuning_joins.asp |
|
#3
|
|||
|
|||
|
thnx alot stumpy
thnx alot for ur appretiate help
|
![]() |
| Viewing: Dev Articles Community Forums > Databases > Microsoft SQL Server > "Inner Join" and "in (SELECT ...)" Performance differance |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|