Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / venkat
select max(sal) from emp where sal<(select max(sal) from
emp);
| Is This Answer Correct ? | 19 Yes | 5 No |
Post New Answer View All Answers
What problem one might face while writing log information to a data-base table in pl/sql?
What is the difference between drop and truncate commands?
First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.
What is a sql trace file?
what is the command line end user interface - mysql? : Sql dba
Describe sql comments?
What is difference between stored procedure and trigger?
What are different types of triggers?
What are the most important ddl statements in sql?
Can we use pl sql in sql server?
What is sql keyword?
What are all the different types of indexes?
What is flag in sql?
How do I add a database to sql?
what is the difference between where clause and having clause? : Sql dba