Referenced Table
|
Main Table
|
||||
DEPT
|
EMP
|
||||
(Foreign Key)
|
|||||
id
|
name
|
id
|
name
|
dept id
|
|
1
|
Dev
|
1
|
Mark
|
1
|
|
2
|
Finance
|
1
|
Jim
|
3
|
|
3
|
Sales
|
1
|
Mike
|
2
|
Referenced Table
|
Main Table
|
||||
DEPT
|
EMP
|
||||
(Foreign Key)
|
|||||
id
|
name
|
id
|
name
|
dept id
|
|
1
|
Dev
|
1
|
Mark
|
1
|
|
2
|
Finance
|
1
|
Jim
|
3
|
|
3
|
Sales
|
1
|
Mike
|
4
|