1
我正在学习MySQL,我试图在查询中做简单的算术, 我想写一个命令来确定Instructors
在大学里每个学院的编号 任何人都可以帮助我在这?谢谢!下面使用外键关系的MySQL查询
这里是我的两个表:
________________________________________________________
| Department | Faculty | Building |
--------------------------------------------------------
| Humanities | Arts and Sciences | Chardon |
| English | Arts and Sciences | Chardon |
| Mathematics | Arts and Sciences | Monzon |
| General Engineering | Engineering | Stefani |
| Agronomy | Agriculture | Pinero |
_________________________________________________________________________
| Professor | Department | Rank | Salary |
---------------------------------------------------------------------------
| Joe Blow | Biology | Professor | $73,500.00 |
| Sam Snow | Mathematics | Instructor | $45,700.00 |
| George Grow | Electrical Engineering | Associate Professor | $69,250.00 |
| Hiram Lowe | English | Assistant Professor | $63,750.00 |