Write SQL Queries for following set of tables:
EMPLOYEE (EmpNo, Name, DoB, Address, Gender, Salary, DNumber) ,
DEPARTMENT (DNumber, Dname, ManagerEmpNo, MnagerStartDate).
Write the following queries ( create table and add random data):
i) Display the Age of ‘male’ employees.
ii) Display all employees in Department named ‘Marketing’.
iii) Display the name of highest salary paid ‘female’ employee.
iv) Which employee is oldest manger in company?
v) Display the name of department of the employee ‘SMITH’
Comments
Leave a comment