SQL Queries for Employee
SQL Queries for Employee
a) First name, last name, department number, and department name for each employee
b) First and last name, department, city, and state province for each employee
g) Department name, average salary, and number of employees who got a commission
n) Employees whose salary is within the range of the lowest salary and 2500
p) Employees working in the same department as anyone with 'T' in their name
q) Employees earning more than the average salary and working with an employee with 'J' in their name
u) Employees earning the max salary among those who joined between Jan 1, 2002, and Dec 31, 2003