how to get second highest salary in SQL(as/4000
Answer Posted / selvaraj v , anna univ coe
SELECT * FROM Employee e
WHERE 2=(SELECT COUNT(DISTINCT Salary) FROM Employee x
WHERE x.Salary >= e.Salary);
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is date functions?
What is left join in postgresql?
What is the syntax to add a record to a table?
how would you enter characters as hex numbers? : Sql dba
What is a primary key sql?
What are the set operators in sql?
What is offset in sql query?
Hi how to import oracle sequence in Informatica? Please write stored procedure code that will import oracle sequence in Informatica SP transformation as per below scenario Oracle table product list Pro_id, pro_name 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights Now a new flat file with new product list needs to be added to oracle table product list with oracle sequence. flat file product Prono,pro_name, 1, 20 watt tube light 2, 30 watt tube light & target should be like 101, LED Lights. 102, 20watt CFL Lights. 103, 30 watt CFL lights. 104, 20 watt tube light 105, 30 watt tube light thks reg suvarna joshi suvarnaatsuvarna@rediffmail.com
Why do we use procedures in sql?
What is the difference between nvl function, ifnull function, and isnull function?
Where do we use pl sql?
how to select unique records from a table? : Sql dba
What are tuples in sql?
What are three advantages to using sql?
What is cross join sql?