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

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 :: lowest salary in sql 
Sql :: mariadb add foreign key 
Sql :: check constraint in sql 
Sql :: get sql instance name 
Sql :: concat using laravel 
Sql :: select if then postgresql 
Sql :: sql mm/dd/yyyy format 
Sql :: mysql timediff 
Sql :: plsql print 
Sql :: install sqlite npm 
Sql :: Check user permissions on postgres database 
Sql :: syntaxerror unexpected identifier mysql 
Sql :: sql get the name of user pc 
Sql :: show the colums of table sql 
Sql :: create a sqlite database c# 
Sql :: how to drop all tables in sql 
Sql :: mysql query dates between two dates 
Sql :: SQLSTATE[42000]: Syntax error or access violation: 1075 Incorrect table definition; there can be only one auto column and it must be defined as a key" 
Sql :: delete all value query 
Sql :: how to check table lock 
Sql :: create table split string function in sql server 
Sql :: sql drop procedure 
Sql :: check if a column is a primary key in sql server 
Sql :: sql counter column 
Sql :: SQL Multiple Cases 
Sql :: sql paging query 
Sql :: get primary key of last inserted record sql server 
Sql :: delete a temporary table mysql 
Sql :: enable foreign key checks postgres 
Sql :: sql character index 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =