Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Looking for more optimization
Message
De
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:
01381144
Vues:
40
>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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform