Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting specific Ron number - easy one sorry :(

Status
Not open for further replies.

Autosys

Programmer
Jun 1, 2004
90
GB
Hi there

A really easy one (probably) sorry but I was wondering if I had a table with 5 rows in it .. how can I select all the columns but only for a specific row?

FOR Example I need something like this.

select * from tablename where rownum = 10? Possible?

Thx
S
 
The number of rows will be returned to me by a 3rd party and my query just needs to return all the columns for one specific row depending on what information they give me. The columns in the table will always be the same.

So for example. On a particular day they might pass me only the number 3. That's all I get from them (which will be row number 3 in this table)

I then need to pass this 3 to my query to select the colums for row number 3 in table x.
 
is this a number that is stored in your database or do you want the third row of the entire recordset? And what version of sql server are you using?

"NOTHING is more important in a database than integrity." ESquared
 
NOBODY could be sure what is saved in ROW number 3 in SQL Server.

Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
Microsoft MVP VFP
 
There has to be an ORDER BY or "row #3" is meaningless.

Of all the people in the world, point to person #3 please?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top