Well you are looking at it the wrong way...the function is ROWS in SQL not in data....you need to perform you BETWEEN on the ORDER column.
-----Original Message----- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: 09 September 2004 13:09 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Yukon WAS: A new problem ??? Right, but I was hoping for more... SELECT ROW_NUMBER() OVER(ORDER BY TestID) AS RowNumber FROM tblTest WHERE RowNumber BETWEEN 10 AND 20 ORDER BY RowNumber .. but you can't use alias' in the WHERE clause. Ade -----Original Message----- From: Robertson-Ravo, Neil (RX) [mailto:[EMAIL PROTECTED] Sent: 09 September 2004 12:36 To: '[EMAIL PROTECTED]' Subject: RE: [ cf-dev ] Yukon WAS: A new problem ??? ROW_NUMBER does just that. -----Original Message----- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: 09 September 2004 12:12 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] Yukon WAS: A new problem ??? I'm not sure what you've answered there. I was hoping that the windowing functions would be available as filters to allow paging like behaviour. So in the past, or rather right now, to get something similar you could create a temp table with an identity column which would act as your row numbering. I thought that ROW_NUMBER() would mean an end to that. Maybe I'm still missing the point. "do you regard your rows in a table as logical or simply insertions with no logical order?" Both, depends how I'm feeling ;O) Ade -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED] This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED]