Write a sql query to fetch only even rows from table
Answers
Answered by
1
Explanation:
Write a subquery with an ORDER BY clause. Along with the data columns, select the pseudocolumn rownum with an alias, say rn.
In the outer query, reference the alias rn and use the mod function to get odd rows or even rows
Similar questions
Chemistry,
5 months ago
Math,
5 months ago
English,
11 months ago
Science,
11 months ago
Business Studies,
1 year ago