Search
 
SCRIPT & CODE EXAMPLE
 

SQL

max 3 salary in sql

SELECT salary, first_name, last_name FROM employees
ORDER BY salary DESC LIMIT 3;
Comment

how to find max and min salary in sql

SELECT MAX(SALARY) FROM EMPLOYEES
UNION
SELECT MIN(SALARY) FROM EMPLOYEES;
Comment

min and max salary and name in sql

SELECT FIRST_NAME , SALARY
FROM EMPLOYEES
WHERE SALARY IN (SELECT MAX(SALARY)AS RESULT FROM EMPLOYEES
UNION
SELECT MIN(SALARY)AS RESULT FROM EMPLOYEES);
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql is odd 
Sql :: delete from select postgresql 
Sql :: import database mysql command line 
Sql :: sql insert into statement 
Sql :: how to execute MySQL Stored Procedure in Python 
Sql :: change database postgres 
Sql :: copy from one table to another postgres using matching column 
Sql :: sql check if table exists 
Sql :: declare date variable sql 
Sql :: sql left join with where clause 
Sql :: how to find table lock and row lock in mysql 
Sql :: open postgresql.conf in centos 
Sql :: 2 max value in sql 
Sql :: create a table in sql 
Sql :: sql order of operations 
Sql :: spark apache sql coalesce 
Sql :: ORACLE CALL BACK TRACE 
Sql :: get number of rows in every table mysql 
Sql :: intersect sql 
Sql :: case vhdl 
Sql :: postgres show table schema 
Sql :: prisma transaction 
Sql :: mysql dependency for spring boot 
Sql :: oracle undo usage per session 
Sql :: insert or update cassandra 
Sql :: sql merge statement 
Sql :: merge command in sql 
Sql :: three inner joins sql 
Sql :: copy table db 
Sql :: find duplicates in column sql 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =