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 are the two types of periodical indexes?
what are the advantages and disadvantages of cascading style sheets? : Sql dba
what is rollback? : Sql dba
How do I enable sql encryption?
Is it possible to sort a column using a column alias?
What are the advantages of sql?
How do I partition in sql?
how many tables will create when we create table, what are they? : Sql dba
How can we find duplicate records in a table?
What is scalar function?
How to use sql*plus built-in timers?
What is record variable?
What are pl/sql cursors?
Can I create table without primary key?
What is hibernate and its relation to sql?