sql學習之查詢沒有外鍵關聯的兩個表

  要求:查詢員工信息: 員工號 姓名 月薪 工資級別【員工表和級別表是沒有外鍵關聯的】 工資級別表: 員工表: 查詢員工信息: 員工號 姓名 月薪 工資級別:  select e.empno,e.ename,e.sal,s.grade from emp e,salgrade s where e.sal between s.losal and s.hisal
相關文章
相關標籤/搜索