. How to fetch alternate records from a table?

Answer

Records can be fetched for both Odd and Even row numbers -.

To display even numbers-.

 o display odd numbers-.

 

from (Select rowno, studentId from student) where mod(rowno,2)=1.[/sql]

All sql dba Questions

Ask your interview questions on sql-dba

Write Your comment or Questions if you want the answers on sql-dba from sql-dba Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---