how to get second highest salary in SQL(as/4000
Answer Posted / sachin
select max(sal) from employees
where salary < (select max(sal) from employees);
Is This Answer Correct ? | 19 Yes | 3 No |
Post New Answer View All Answers
what are the authentication modes in sql server? How can it be changed? : Sql dba
is mysql query is case sensitive? : Sql dba
What are system versioned tables?
What is set serveroutput on in pl sql?
how to analyze tables with 'mysqlcheck'? : Sql dba
Why is a primary key important?
what is the maximum length of a table name, database name, and fieldname in mysql? : Sql dba
What is cte?
What is prepared statement in sql?
what are aggregate and scalar functions? : Sql dba
What is sql and also describe types of sql statements?
what is subquery? : Sql dba
Do triggers have restrictions on the usage of large datatypes, such as long and long raw?
What is difference between stored procedures and application procedures?
Why do we use triggers?