Answer the following questions.
Table: Employee
| No | Name | Salary | Zone | Age | Grade | Dept |
| 1 | Mukul | 30000 | West | 28 | A | 10 |
| 2 | Kritika | 35000 | Centre | 30 | A | 10 |
| 3 | Naveen | 32000 | West | 40 | 20 | |
| 4 | Uday | 38000 | North | 38 | C | 30 |
| 5 | Nupur | 32000 | East | 26 | 20 | |
| 6 | Moksh | 37000 | South | 28 | B | 10 |
| 7 | Shelly | 36000 | North | 26 | A | 30 |
Table: Department
| No | DName | MinSal | MaxSal | HOD |
| 10 | Sales | 25000 | 32000 | 1 |
| 20 | Finance | 30000 | 50000 | 5 |
| 30 | Admin | 25000 | 40000 | 7 |
(a) Based on these tables write SQL statements for the following queries:
(i) Display the details of all the employees who work in Sales department.
(ii) Display the Salary, Zone, and Grade of all the employees whose HOD is Nupur.
(iii) Display the Name and Department Name of all the employees.
(iv) Display the names of all the employees whose salary is not within the specified range for the corresponding department.
(v) Display the name of the department and the name of the corresponding HOD for all the departments.
(b) Identify the Foreign Keys (if any) of these tables. Justify your choices.
(a) (i)
(ii)
(iii)
(iv)
(v)
(b) Dept is the foreign key for these tables. This is because, Dept is used to link the two tables and it is a primary key for one of the tables.