Interview Questions  

Go Back   Interview Questions > Interview Questions & Answers > Information Technology > Databases > SQL

SQL SQL Interview Questions, Learn by sharing SQL Interview Questions asked in various Companies, Get Career advices, Interview Procedures from SQL experts, Post asked SQL Interview Questions and Answers.

   

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-19-2008, 02:12 PM
Senior Member
 
Join Date: Feb 2008
Posts: 1,046
Default How to find the second largest salary in the emp database and




How to find the second largest salary in the emp database and also How to find 3rd,4th and so on in the emp database ?
Reply With Quote
  #2 (permalink)  
Old 06-14-2008, 02:21 PM
Junior Member
 
Join Date: Jun 2008
Posts: 7
Default

SELECT salary From emp_table e1
WHERE 1=(SELECT COUNT(*) From emp_table e2 WHERE e1.salary
Reply With Quote
  #3 (permalink)  
Old 06-27-2008, 12:34 PM
Junior Member
 
Join Date: Jun 2008
Posts: 4
Default

SELECT TOTAL_AMOUNT FROM MONTHLY_BILL_DETAILS a
where 1=(SELECT count(*) FROM MONTHLY_BILL_DETAILS b where a.TOTAL_AMOUNT)


is not working show error at breackets

m/s invalid operator
Reply With Quote
Reply

Tags
database questions, servers questions, sql interview questions

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On