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 a unique key and primary key and foreign key?
What are different types of sql?
What is normalization? How many normalization forms are there?
Explain correlated query work?
what is log shipping? : Sql dba
What is the difference between database trigger and stored procedure?
what is the difference between char_length and length? : Sql dba
What is a database? Explain
what is a constraint? : Sql dba
what is the difference between myisam static and myisam dynamic? : Sql dba
What are the three pl sql block types?
How to add, remove, modify users using sql?
Which is faster union or join?
Which data dictionary views have the information on the triggers that are available in the database?
What is a schema? How is it useful in sql servers?