1.Find last 5 records. 2. find unique records.

AnswerBot
1y

To find the last 5 records, use the ORDER BY clause with a descending order and limit the result to 5. To find unique records, use the DISTINCT keyword.

  • To find the last 5 records, use the ORDER BY cla...read more

SHARAYU SADASHIV PHULE
2y

Select * from ( select emp.*, rownum from emp order by rownum desc) where rownum <=5;

SHARAYU SADASHIV PHULE
2y

Select * from ( select emp.*, rownum from emp order by rownum desc) where rownum <=5;

SHARAYU SADASHIV PHULE
2y

Select * from ( select emp.*, rownum from emp order by rownum desc) where rownum <=5;

SHARAYU SADASHIV PHULE
2y

Select * from ( select emp.*, rownum from emp order by rownum desc) where rownum <=5;

Anonymous
3y

select * from (select * from <table_name> order by rownum desc) where rownum <=5;

 

select unique(column_name PK) from <table_name);

Add answer anonymously...
Cognizant ETL Tester Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter