How One can easily select all even, odd, or Nth rows from a
table using SQL queries?
Answer Posted / guru
SELECT *
FROM emp
WHERE (ROWID,0) IN (SELECT ROWID, MOD(ROWNUM,4)
FROM emp);
| Is This Answer Correct ? | 6 Yes | 17 No |
Post New Answer View All Answers
What is sql injection vulnerability?
What are commit, rollback, and savepoint?
How exception handling is done in advance pl/sql?
what is data integrity? : Sql dba
How do I make my sql query run faster?
What is a ddl command?
What is difference between procedure and trigger?
Which is better cte or subquery?
Can two tables have same primary key?
What is java sql connection?
what is sp_pkeys? : Transact sql
Can a composite key be null?
how to calculate expressions with sql statements? : Sql dba
What is the purpose of using pl/sql?
What is localdb mssqllocaldb?