Professional Documents
Culture Documents
EMPLOYEE
Contain #Dept_ID
#Emp_ID
*Dept_name
*Empl_name
Works
*DOB in
(#)email
DEPARTMENTS
EMPLOYEES
Question 2:
ALTER TABLE Rand.EMPLOYEES
ADD SALARY int CHECK (SALARY>0);
DEPT_ID DEPT_name
1 Human resources
2 Finance
3 Marketing
10/ retrieve only the record with DEPT_ID =2 from the table departments
SELECT *
FROM Rand.DEPARTMENTS
WHERE DEPT_ID=2;
12/ retrieve the EMP_NAME from table EMPLOYEE and DEPT_name from table DEPARTMENT