單項選擇題在執(zhí)行語句SELECT department_id FROM employees,departments WHERE employees.department_id= departments.department_id;時報錯,原因是()。

A.沒有給表employees和表departments加別名
B.沒有給列department_id加別名
C.不能用employees.department_id=departments.department_id作為條件
D.SELECT后面的department_id沒有指定是哪個表


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題有個員工表employees,該表中有職務列。你想檢查哪些員工的信息中沒有填寫職務一欄,應該使用()。

A.Select*from employees where職務=NULL
B.Select*from employees where職務=‘NULL’
C.Select*from employees where職務ISNULL
D.Select*from employees where職務IS‘NULL’

2.單項選擇題學生信息表Student如下所示:學號姓名所在省市0001李輝北京0002張明上海0003王小玉北京0004李淑華湖南0005趙靜上海查詢所有學生來自于哪幾個省市使用的語句為()。

A.Select unique所在省市from Student
B.Select所在省市from Student
C.Select only所在省市from Student
D.Select distinct所在省市from Student