Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for more optimization
Message
 
 
À
12/02/2009 00:07:57
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Web
Divers
Thread ID:
01381114
Message ID:
01381146
Vues:
32
>>Uou're correct. I got confused by NoMember2 and NoMember.
>>Another query to try
>>
>>SELECT Member.Numero,Member.Nom,Member.Prenom,Member.LastAccess
>>	FROM Member 
>>		JOIN Monitor ON Monitor.NoMember2=Member.Numero  
>>	WHERE Member.LastAccess >= @LastAccess 
>>		AND Monitor.NoMember = @NoMember 
>>	ORDER BY 2	
>>
>
>That's what I had at first but that one was not optimized. When I changed to select the record from Monitor first, I got an immediate result. I will try the EXISTS approach. Hopefully, this will resolve the issue.

Why this was not optimized? Do you have indexes on NoMember2 and Numero ?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform