Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How to select First and Last Row from Sql server database

Re: How to select First and Last Row from Sql server database

From: Jens <Jens_at_sqlserver2005.de>
Date: 22 Sep 2005 03:28:41 -0700
Message-ID: <1127384921.070849.239370@g14g2000cwa.googlegroups.com>


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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US