作业帮 > 综合 > 作业

请教SQL高手: 请帮忙分析说明一下两题的答案,并加以分析说明。万分感谢!

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/03 11:04:08
请教SQL高手: 请帮忙分析说明一下两题的答案,并加以分析说明。万分感谢!
1.You are formulating a SQL statement to retrieve date from Qracle . Which of the following SQL statements are invalid ?
A.select NAME , Jersey_No where Jersey_No=6
B.select NAME , Jersey_No from PLAYERS
C.select * from PLAYERS where Jersey_No=6
D.select Jersey_No from PLAYERS
2.Inspect the following SQL statement:
Select COW_NAME , MOD(CARTON , FILL_STATUS)
From COW_MILK
Group by COW_NAME ;
Which of following lines contains an error ?
A.select COW_NAME ;
B.mod(CARTON , FILL_STATUS) ;
C.from COW_MILK ;
D.group by COW_NAME ;
E.There are no errors in this statement ;
1.A
2.B
1.You are formulating a SQL statement to retrieve date from Qracle . Which of the following SQL statements are invalid ?
A.select NAME , Jersey_No where Jersey_No=6
缺少From子句,不正确
B.select NAME , Jersey_No from PLAYERS
C.select * from PLAYERS where Jersey_No=6
D.select Jersey_No from PLAYERS
2.Inspect the following SQL statement:
Select COW_NAME , MOD(CARTON , FILL_STATUS)
From COW_MILK
Group by COW_NAME ;
Which of following lines contains an error ?
A.select COW_NAME ;
B.mod(CARTON , FILL_STATUS) ;
mod不是聚合函数,CARTON,FILL_STATUS又没有出现在Group by子句里,非法
C.from COW_MILK ;
D.group by COW_NAME ;
E.There are no errors in this statement ;