Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for more optimization
Message
From
12/02/2009 00:07:57
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Web
Miscellaneous
Thread ID:
01381114
Message ID:
01381144
Views:
39
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform