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


Please Help Members By Posting Answers For Below Questions

How do I view tables in mysql?

632


what is the difference difference between procedure and packages

9446


What is package in pl sql with an examples?

629


What is the difference between row level and statement level trigger?

621


How do I get sql certification?

621






Why is normalization important?

640


What are different types of sql?

654


What is normalisation in sql?

650


What is bulk compiling in pl/sql.?

698


What are types of indexes in sql?

637


How do I run a script in sql developer?

585


What is cursor and why it is required?

679


what is denormalization. : Sql dba

651


How do I view an execution plan in sql?

622


How insert into statements in sql?

691