Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Right panel - wrong order of last 10 replies
Message
 
 
To
21/07/2010 14:36:43
General information
Forum:
Level Extreme
Category:
Other
Miscellaneous
Thread ID:
01473173
Message ID:
01473344
Views:
25
>>Please see attached - looks like you forgot to order result in DESC order.
>
>When we changed it to WHERE EXISTS, I forgot to add another ORDER BY:
>
>
>DECLARE @NoMember Integer
>
>SET @NoMember=1
>
>SELECT Thread.Numero,Thread.Title,Thread.Url,Thread.AddDate 
>FROM Thread (NOLOCK) 
>WHERE EXISTS 
>(SELECT 1 FROM (SELECT TOP 10 Reply.NoThread FROM Reply (NOLOCK) WHERE Reply.NoMember=@NoMember ORDER BY 1 DESC) Temp
> WHERE Temp.NoThread=Thread.Numero)
>  ORDER BY 1 DESC
>
>
>It should be ok now. This might require a login however.

Seems to be OK now for me without re-login. Thanks.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform