Data Base For Further Queries
Data Base For Further Queries
department varchar(100),
division varchar(100),
);
insert into
departments
values ('Clothing','Home');
Select *
From employees
5) Select employees who have salary less then 40000 and should be working in ‘Clothing ‘ or “Pharmecy”
Department
Select *
from employees
Select *
from employees
Select *
from employees
Select *
from employees
and salary>110000;
10) Select employee first-name who were hired between two specific dates
from employees
From employees
12)Concatenation Clause
13)Aggregate Functions
,(min(salary)+max(salary))/2 as wrong_average_one ,
Sum(salary) as totalSalary
from employees;
Select SUM(salary),
department
Select count(*),
gender,
Department
from employees
Group by
Department , gender
order by department
Select first_name,
Select count(*),
19) find min max avg salary by Male ,female and region