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
Write a query to find the names of users that begin with "um" in sql?
what is the difference between ereg_replace() and eregi_replace()? : Sql dba
what is the difference between primary key and unique key? : Sql dba
How many types of sql are there?
Can we perform dml on view?
Can one improve the performance of sql*loader? : aql loader
What is data control language?
How do I edit a stored procedure?
What is a natural join?
how to convert numeric values to character strings? : Sql dba
Which constraints we can use while creating database in sql?
How do you use join?
What is Difference Between Unique and Primary Key Constraints?
What are the syntax and use of the coalesce function?
what are null values? : Sql dba