Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / varun
select sal from emp where rownum=2 order by sal desc;
| Is This Answer Correct ? | 6 Yes | 19 No |
Post New Answer View All Answers
What is raw datatype in sql?
What is the sql query to display the current date?
What will you get by the cursor attribute sql%found?
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 happens if null values are involved in expressions? : Sql dba
What is cross join example?
How do you take the union of two tables in sql?
What is database sql?
what is sql in mysql? : Sql dba
What is normalisation in sql?
What is the purpose of normalization?
define sql update statement ? : Sql dba
What is difference between nchar and nvarchar?
Explain the uses of control file.
What is an emotional trigger?