how to find the second highest salary from emp table?
Answer Posted / sumit sharma
select sal from (select distinct(sal) from emp where sal is
NOT NULL order by sal dsc) where rownum = 2
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What is rowid in sql?
What is column?
Does postgresql run on the cloud?
What is the usage of nvl function?
what is online transaction processing (oltp)? : Sql dba
Can we commit in trigger?
What is view? Can we update view
Table 1: col1 Timestamp ---------------- 01-mar-2012 11:12:46 Table 2: col2 Timestamp -------------------- 01-mar-2012 11:12:10 01-mar-2012 11:11:23 Write a query to display a row with table2 col2 value less than tabl1 col1 value. Maximum timestamp value previous to table1 col1 value. Display a result as: Col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10
what is the difference between cluster and non cluster index? : Sql dba
Is mariadb a nosql database?
what is transaction? : Sql dba
What are literals in sql server?
Why is sql*loader direct path so fast?
What action do you have to perform before retrieving data from the next result set of a stored procedure ?
Define join and name different types of joins?