Search
 
SCRIPT & CODE EXAMPLE
 

SQL

write sql query to find the second highest salary of employee

SELECT MAX(Salary) From Employee
 WHERE Salary < ( SELECT Max(Salary) FROM Employee);
Comment

Write an SQL query to determine the 5th highest salary without using TOP or limit method.

select min(salary) from (select distinct salary from worker order by salary  desc) where rownum<=5;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql not operator 
Sql :: sqlalchemy query join many to many 
Sql :: import mysql db 
Sql :: create table from query mysql 
Sql :: sql insert 
Sql :: sql server download for windows 10 64 bit 
Sql :: oracle sql procedure return value 
Sql :: sql online compiler 
Sql :: ignore duplicate rows in sqlite 
Sql :: insert value to new table by joining 2 different tables 
Sql :: sql less than operator 
Sql :: sql except query 
Sql :: what is common table expression in sql 
Sql :: update all columns in one update 
Sql :: select sql 
Sql :: group_concat sql server 
Sql :: identity column in sql server 
Sql :: sql example 
Sql :: delete from where sql 
Sql :: sqlite column 
Sql :: order records by nearby cordinates sql 
Sql :: Serilog Table Configurations for MSSQLSERVER SINK 
Sql :: sqlite3 get data from table c 
Sql :: oracle execute immediate quotes 
Sql :: nueva tabla mysql 
Sql :: open database restricted mode oracle 
Sql :: second highest salary in mysql 
Sql :: sqlite schema structure of a relational database 
Sql :: ring MySQL rollback updates to the database 
Sql :: oracle generate sequence of numbers 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =