Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Row Numbers
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Row Numbers
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01428976
Message ID:
01428976
Vues:
132
I'm trying to generate row numbers for each row returned in my query:
SELECT *, (SELECT COUNT(t2.TabId) 
			FROM rbpo.rb_Tabs t2
			WHERE t2.TabId = t1.TabId ) AS RowNum
	FROM rbpo.rb_Tabs t1
	WHERE ParentTabId = @SJTabId
	ORDER BY RowNum ASC
The RowNum is coming back all 1's
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform