SQL 4
SQL 4
Dept City
HR Delhi
FIN Mumbai
MKT Kolkata
i. What will be the degree and cardinality of the tables Employee and City?
ii. Find the output of the following query
a. Select A. Dept, empNAme,City from Employee A, City B where
A.Dept=B.Dept;
Write queries based on the given table Employee
1. To display all data of HR department.
2. To display names of employees whose salary is >=25000 and <=35000
3. To display the data of employees whose name contains “E”
4. To change the salary to 28000 for the employees whose salary is null
5. To increase salary of employees by 2000
6. To display name of all employees of HR dept whose empno >=102
7. To add a new column Bonus of numeric type
8. To assign 10% of salary as Bonus
9. To display name, salary of all employees of HR or MKT depts.
10. To display all data in ascending order of Salary.
-*-