Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Row Numbers
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Row Numbers
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01428976
Message ID:
01428976
Views:
130
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
Next
Reply
Map
View

Click here to load this message in the networking platform