Given a table Employee which has columns name and salary, write an SQL query to find the employee with the second highest salary.
Answer / Mohit Saran
SELECT * FROM Employee WHERE salary = (SELECT MAX(salary) FROM Employee WHERE salary < (SELECT MAX(salary) FROM Employee))
| Is This Answer Correct ? | 0 Yes | 0 No |
What is database bounce?
what is the role of auditor in auditing data oriented applications?
What are different types of blocks used in stored procedure?
What is the importance of database partitioning?
Given a table Employee which has columns name and salary, write an SQL query to find the employee with the second highest salary.
How does non-cluster index functions?
can any one explain about normalization forms with clear explanation in interview point of view. thanks for ur answers.
What is sharded database?
Is database a hardware or software?
What is Object Oriented model?
What is a Transformation?
can any one tell me how i can start database testing mean what should be initial point and how i can write a query for listing page of any item thanks in advance
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)