→ cocobox: 錯好多地方,你要不要重寫一次.... 01/23 17:14
不知道大大可以指導一下嗎^^"
※ 編輯: oklp1415 (118.171.38.31), 01/23/2015 22:42:25
→ cocobox: select name.age from personnel 01/24 08:36
→ cocobox: where salary>45000 and department = 01/24 08:37
→ cocobox: (select department from personnel where 01/24 08:38
→ cocobox: salary > 40000 group by department 01/24 08:38
→ cocobox: having count(department); 01/24 08:38
這樣還是有爆錯的情況
You have an error in your SQL syntax; check the manual that for the right syntax to use near '' at line 5: select name.age from
personnel where salary>45000 and department = (select department from
personnel where salary > 40000 group by department having count(department)
※ 編輯: oklp1415 (118.171.40.176), 01/24/2015 23:29:57
→ Ammenze: 你的having後面沒有條件式,還有子查詢最後少個) 01/29 10:31