看板 TransCSI 關於我們 聯絡資訊
Examine the data of the EMPLOYEES table. EMPLOYEES (EMPLOYEE_ID is the primary key. MGR_ID is the ID of managers and refers to the EMPLOYEE_ID) EMPLOYEE_ID EMP_NANE DEPT_ID MGR_ID JOB_ID SALARY 101 Smith 20 120 SA_REP 4000 102 Martin 10 105 CLERK 2500 103 Chris 20 120 IT_ADMIN 4200 104 John 30 108 HR_CLERK 2500 105 Diana 30 108 HR_MGR 5000 106 Bryan 40 110 AD_ASST 3000 108 Jennifer 30 110 HR_DIR 6500 110 Bob 40 EX_DIR 8000 120 Ravi 20 110 SA_DIR 6500 Evaluate this SQL statement AND WRITE DOWN its output?: SELECT e.employee_id "Emp_id", e.emp_name "Employee", e.salary, m.employee_id "Mgr_id", m.emp_name "Manager" FROM employees e, employees m WHERE e.mgr_id = m.employee_id AND e.salary > 4000; 題目就是這樣...請問這一題要算什麼? 要怎麼解...題目都看不懂...請各位大大幫幫忙:P -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.66.23.41
msc0953:左右是兩個表吧??! 04/08 23:31
child47:這是一個表沒錯,不過是不是還有一個沒劃出來呢? 04/11 00:53