Q
Problem solve Get help with specific problems with your technologies, process and projects.

The Nth row in a table

How to select the Nth row from a table if they are not in any order?

How to select the Nth row from a table if they are not in any order?

If the rows in the table aren't in any order—and they aren't, not in any relational database system—then how do...

you know which one is the Nth one? You don't.

Therefore, pick any row of the table, and just pretend it's the Nth.

Of course, if you want to retrieve the Nth row based on the values of some column, then that's a different question. It has an SQL solution, too. But I'm not sure you have this situation.

This was last published in September 2005

Dig Deeper on Oracle and SQL

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataManagement

SearchBusinessAnalytics

SearchSAP

SearchSQLServer

TheServerSide

SearchDataCenter

SearchContentManagement

SearchFinancialApplications

Close