Re: rownum?
From: Steve Kass (skass_at_drew.edu)
Date: 11/16/04
- Next message: SusieQ: "Re: GroupBy Error"
- Previous message: auto: "Auto-Printing with SQL Reporting Services"
- In reply to: JProk: "rownum?"
- Next in thread: JProk: "Re: rownum?"
- Reply: JProk: "Re: rownum?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 16 Nov 2004 17:59:43 -0500
No. SQL Server does have a proprietary TOP operator, which might help.
I'm not sure what rownum <= 10 means, but if you want the first 10 rows
of a table in order of some particular set of columns, you can ask for
SELECT TOP 10 columnA, columnB, ...
FROM T
ORDER BY thisColumn, thatColumn
Steve Kass
Drew University
JProk wrote:
>Pardon the simple question....
>
>
>does transact-sql have an equivalent of rownum in oracle?
>
>Is there an idea of a rownumber?
>
>ie.
>
>select * from table where rownum <= 10
>
>
>thanks
>
>
>
>
>
- Next message: SusieQ: "Re: GroupBy Error"
- Previous message: auto: "Auto-Printing with SQL Reporting Services"
- In reply to: JProk: "rownum?"
- Next in thread: JProk: "Re: rownum?"
- Reply: JProk: "Re: rownum?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|