Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper SQL Query Statement
Message
 
 
À
15/02/2002 12:08:18
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00620242
Message ID:
00620745
Vues:
13
In this case you don't need joins because you're retrieving data from one table only. If you pull data from multiple tables than in most cases you'll have to join them.
The Exists type subquery is usually faster than joining tables. I think that my query should be faster but I could be wrong. The only way to be sure of impact is to run both queries and compare execution time.

>I see how your example would work Sergey but if this is the case then why bother with inner and outer joins? Is there a performace loss using your method rather then using joins? Just curious as to what the impact is (if any).
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform