how to calcuate the second highest salary of he employee
Answer Posted / sachin s. patil
SELECT * FROM
(SELECT ROWNUM DD, M.* FROM
(SELECT SAL FROM EMP order by sal desc )M)
WHERE DD=2
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
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
How to fetch alternate records from a table?
What does the acronym acid stand for in database management?
Is merge a dml statement?
Can we rollback truncate?
What is the requirement of self-join?
Why do we use procedures in sql?
What is rownum and rowid?
Is sql an operating system?
What is bind variable in pl sql?
what are the difference between clustered and a non-clustered index? : Sql dba
What is sql profiler in oracle?
What is an example of translating a date into julian format?
how to include comments in sql statements? : Sql dba
Is sql better than excel?