Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to select First and Last Row from Sql server database
The first row of a database ???
I assume that you mean the first row of a table which is an unpredictable thing. If you mean by first row, the oldest row ever entered this requires to have a column storing the creation data of the row / the entry. If you mean the first row based on an order this should be Select TOp 1 * from SomeTable.
What do you want to achieve ?
HTH, Jens Suessmeyer. Received on Thu Sep 22 2005 - 05:28:41 CDT