By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
11 rows affected
dept_id | location_id | department_name |
---|---|---|
1 | 100 | HR |
2 | 200 | Finance |
3 | 100 | IT |
4 | 300 | Marketing |
employee_id | first_name | last_name | dept_id | location_id |
---|---|---|---|---|
101 | John | Doe | 1 | 100 |
102 | Jane | Smith | 2 | 200 |
103 | Michael | Johnson | 1 | 100 |
104 | Emily | Williams | 3 | 100 |
location_id | city | country |
---|---|---|
100 | New York | USA |
200 | London | UK |
300 | Paris | France |
dept_id | department_name | employee_id | first_name | last_name |
---|---|---|---|---|
1 | HR | 101 | John | Doe |
1 | HR | 103 | Michael | Johnson |
2 | Finance | 102 | Jane | Smith |
3 | IT | 104 | Emily | Williams |
4 | Marketing | null | null | null |
dept_id | department_name |
---|---|
4 | Marketing |