Search
 
SCRIPT & CODE EXAMPLE
 

SQL

min salary in sql

SELECT first_name, last_name, salary, job_id
FROM employees
WHERE salary = (SELECT MIN(salary) FROM employees); 
Comment

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 :: Insert Multiple Rows at Once in SQL 
Sql :: sql server function to calculate a percentage 
Sql :: xampp reset mysql 
Sql :: how to add multiple column in mysql 
Sql :: sql output parameters 
Sql :: query on date sqlite flutter 
Sql :: sql composite primary key 
Sql :: float vs decimal sql 
Sql :: insert to first table if field A equals field B from a second table using sql 
Sql :: install sql server management studio ubuntu 
Sql :: create table if not exist 
Sql :: between in sql 
Sql :: SQL Greater Than Operator 
Sql :: identity column in sql server 
Sql :: jsonb 
Sql :: insert update sql server 
Sql :: break too long line yaml 
Sql :: salesforce soql get parents without children 
Sql :: delete from table and truncate table 
Sql :: sqlite referential integrity 
Sql :: sql developer sql worksheet not showing 
Sql :: ring SQLite sqlite_open 
Sql :: sql create text column limited values 
Sql :: regex any word except sql 
Sql :: postgresql not in alternative 
Sql :: get db connection detail from sql developer profile 
Sql :: postgres automatic partioning a table 
Sql :: snowflake last query id 
Sql :: postgre regex exactly 1 characters 
Sql :: child row: a foreign key constraint fails 
ADD CONTENT
Topic
Content
Source link
Name
5+1 =