#1  
Old 19th August 2012, 06:57 PM
HugoGalindo HugoGalindo is offline
Junior Member
 
Join Date: Aug 2012
Posts: 26
Default Doubt about System_Row# with ORDER BY

If I use System_Row# in a SELECT with ORDER BY, can I assume that the System_Row# will always match the requested order?

Table1:
Col1
---
C
B
A

SELECT System_Row# AS ID, * FROM Table1 ORDER BY Col1;

Result:
ID Col1
-- ---
1 A
2 B
3 C

This will always be the result? or there is a chance that the System_Row# could be applied before the table is ordered? (As happen with IDENTITY in MySQL http://support.microsoft.com/kb/273586/en-us?fr=1)
  #2  
Old 19th August 2012, 08:26 PM
Eivind Bakkestuen [NDD]
 
Posts: n/a
Default Re: Doubt about System_Row# with ORDER BY

> If I use System_Row# in a SELECT with ORDER BY, can I assume that the
> System_Row# will always match the requested order?


Yes; it is processed after any ORDER BY clause.


--
Eivind Bakkestuen [NDD]


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SetRange doubt... Clément Doss nexusdb.public.support 0 1st March 2012 01:09 PM
Still restrictions on SYSTEM_ROW#? Jan-Christian nexusdb.public.support.sql 2 7th May 2010 02:35 AM
System_ROW# Diniz \(Deltress\) nexusdb.public.support.sql 15 2nd June 2007 12:05 AM
Order by system_row# Ole Willy Tuv nexusdb.public.support.sql 3 2nd October 2003 10:14 PM
System_row# Ole Willy Tuv nexusdb.public.support.sql 3 2nd October 2003 08:48 PM


All times are GMT +11. The time now is 06:25 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.