- select * from employees;
- select salary from employees;
- select distinct job_name from employees;
- selectionner le nom des employés, augmenter leur salaire de 15 % et l'exprimer en nombre de dollars.
- select emp_name , salary+((salary * 15 ) / 100 ) as "salary after increase" from employees;
- Select distinct job_name , dep_name from employees left join department on employees.dep_id = department.dep_id;
- select * from employees inner join department on employees.dep_id = department.dep_id where department.dep_name <> 'AUDIT';
- select * from employees where DATEDIFF(hire_date,'1991-01-01') <= 0;
- select avg(salary) as "AVERAGE SALARY" from employees where job_name = "SALESMAN";
- select _ from employees where salary < 3000 && (salary + ((salary _ 25) / 100) ) >= 3000 ;
- select * from employees where DATEDIFF(hire_date,'1991-01-01') >= 0 && DATEDIFF(hire_date,'1991-12-29') <=0 ;
- selectionner les employees dans un ordre ascendant pour le nom du job, et déscendant pour le identifiants
- select * from employees order by emp_name asc , emp_id desc