标准SQL基本查询模块的结构是______。
A: SELECT…FROM…ORDER BY
B: SELECT…1WHERE…GROUP BY
C: SELECT…WHERE…HAVING
D: SELECT…FROM…WHERE
A: SELECT…FROM…ORDER BY
B: SELECT…1WHERE…GROUP BY
C: SELECT…WHERE…HAVING
D: SELECT…FROM…WHERE
举一反三
- 以下SQL子句的撰写顺序表达正确的是: A: SELECT、FROM、WHERE、GROUP BY、HAVING、ORDER BY B: SELECT、FROM、WHERE、HAVING、GROUP BY、ORDER BY C: SELECT、FROM、WHERE、ORDER BY、HAVING、GROUP BY D: SELECT、FROM、ORDER BY、WHERE、GROUP BY、HAVING
- 下列各题A)、B)、C)、D)四个选项中,只有一个选项是正确的。 标准SQL基本查询模块的结构是______。 A: SELECT…FROM…ORDER BY B: SELECT…WHERE…GROUP BY C: SELECT…WHERE…HAVING D: SELECT…FROM…WHERE
- 把查询语句的各个子句按执行的先后顺序排列,正确的是( ) A: FROM→WHERE→GROUP BY→SELECT→ORDER BY B: SELECT→FROM→WHERE→GROUP BY→ORDER BY C: WHERE→FROM→SELECT→GROUP BY→ORDER BY D: FROM→WHERE→SELECT→ORDER BY→GROUP BY
- 设数据库中职工表的结构为(职工号,姓名,部门号,出生日期),如果要查询姓名相同的职工信息,则正确的SQL语句是( )。 A: SELECT*FROM职工WHERE姓名IN; (SELECT姓名FROM职工GROUP BY姓名HAVING COUNT(*)>l) B: SELECT*FROM职工WHERE职工号IN; (SELECT职工号FROM职工GROUP BY姓名HAVING COUNT(*)>1) C: SELECT*FROM职工WHERE姓名IN; (SELECT姓名FROM职工GROUP BY职工号HAVING COUNT(*)>1) D: SELECT*FROM职工WHERE职工号IN;(SELECT职工号FROM职工GROUP BY职工号HAVINC COUNT(*)>1)
- 下面哪一条语句是正确的() A: select from b B: select sno from a where sno 2000 C: select * from a order by sno where age>20 D: select * from B group by cno where cno>1