Professional Documents
Culture Documents
21:
Consider following two tables Employee and City:
Employee
EmployeeNo EmployeeName Manager CityCode Salary
1 Ali 4 3 4000
2 Zia 4 3 4000
3 Riaz 2 2 2000
4 Rauf 1 6000
.......
City:
CityCode CityName
1 Badin
2 Sibbi
3 Lahore
.......
Table City and Employee have one-to-many relationship and Manager field specifies the employee
number of manager e.g. Zia is Riaz’s manager: