Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Right panel - wrong order of last 10 replies
Message
De
21/07/2010 14:36:43
 
 
Information générale
Forum:
Level Extreme
Catégorie:
Autre
Divers
Thread ID:
01473173
Message ID:
01473343
Vues:
50
This message has been marked as the solution to the initial question of the thread.
>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.
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