Ask the Expert

Selecting even rows

How to select the even rows in a table?

    Requires Free Membership to View

I'm assuming that you are looking for the even numbered rows in the table. But this implies that the rows have a specific order so that you can return the 2nd, 4th and 6th rows, and so on. Relational database theory holds that rows do not have any specific order. So it is not possible to return the even numbered rows from any table.

This was first published in August 2006

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
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
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: