• 2022-06-07 问题

    按类别查询图书的平均价格,以下语句正确的是()。(选择一项) A: selectavg(price),typefrombookgroupbytype B: selectcount(price),typefrombookgroupbyprice C: selectavg(price),typefrombookgroupbyprice D: selectcount(price),typefrombookgroupbytype

    按类别查询图书的平均价格,以下语句正确的是()。(选择一项) A: selectavg(price),typefrombookgroupbytype B: selectcount(price),typefrombookgroupbyprice C: selectavg(price),typefrombookgroupbyprice D: selectcount(price),typefrombookgroupbytype

  • 2022-06-15 问题

    按系别统计学生的平均年龄,并将列恰当命名Selectavg(sage)平均年龄fromstudentgroup()sdept

    按系别统计学生的平均年龄,并将列恰当命名Selectavg(sage)平均年龄fromstudentgroup()sdept

  • 2022-06-07 问题

    列出薪水高于所在部门平均工资的员工信息() A: selectdeptno,ename,salfromempawheresal>(selectavg(a.sal)fromempwheredeptno=a.deptno); B: selectdeptno,ename,salfromempawheresal>(selectavg(sal)fromempwheredeptno=a.deptno); C: selecta.deptno,a.ename,a.salfromempa,empbwherea.deptno=b.deptnoanda.sal>avg(b.sal); D: selecta.deptno,a.ename,a.salfromempa,empbwherea.deptno=b.deptnoandb.sal>avg(a.sal);

    列出薪水高于所在部门平均工资的员工信息() A: selectdeptno,ename,salfromempawheresal>(selectavg(a.sal)fromempwheredeptno=a.deptno); B: selectdeptno,ename,salfromempawheresal>(selectavg(sal)fromempwheredeptno=a.deptno); C: selecta.deptno,a.ename,a.salfromempa,empbwherea.deptno=b.deptnoanda.sal>avg(b.sal); D: selecta.deptno,a.ename,a.salfromempa,empbwherea.deptno=b.deptnoandb.sal>avg(a.sal);

  • 2022-06-08 问题

    在以下语句中,哪个语句可以用来查询() A: selectaverage(销售金额)from订单groupby品类; B: selectavg(销售金额)from订单groupby品类; C: selectaverage(销售金额)groupby订单from品类; D: selectavg(销售金额)groupby品类from订单;

    在以下语句中,哪个语句可以用来查询() A: selectaverage(销售金额)from订单groupby品类; B: selectavg(销售金额)from订单groupby品类; C: selectaverage(销售金额)groupby订单from品类; D: selectavg(销售金额)groupby品类from订单;

  • 2022-06-07 问题

    查询001号学生选课成绩的平均分,总分,最高分,最低分Selectavg(grade),()(grade),max(grade),min(grade)fromscwheresno=’001’

    查询001号学生选课成绩的平均分,总分,最高分,最低分Selectavg(grade),()(grade),max(grade),min(grade)fromscwheresno=’001’

  • 2022-06-07 问题

    查询每门课的平均分,并将平均分大于80分的显示输出Selectavg(grade)fromscgroupbycno()avg(grade)>=80

    查询每门课的平均分,并将平均分大于80分的显示输出Selectavg(grade)fromscgroupbycno()avg(grade)>=80

  • 2022-06-07 问题

    设表SC中存放了学生的学号(Sno)、课程号(Cno)和成绩(Grade),现需要查询选修1号课程的学生平均成绩,下面SQL语句正确的是()。 A: SELECTGrade(AVG) FROM SC WHERE Cno=’1’ B: SELECTGrade(AVG) FROM SC WHERE Sno=’1’ C: SELECTAVG(Grade) FROM SC WHERE Sno=’1’ D: SELECTAVG(Grade) FROM SC WHERE Cno=’1’

    设表SC中存放了学生的学号(Sno)、课程号(Cno)和成绩(Grade),现需要查询选修1号课程的学生平均成绩,下面SQL语句正确的是()。 A: SELECTGrade(AVG) FROM SC WHERE Cno=’1’ B: SELECTGrade(AVG) FROM SC WHERE Sno=’1’ C: SELECTAVG(Grade) FROM SC WHERE Sno=’1’ D: SELECTAVG(Grade) FROM SC WHERE Cno=’1’

  • 2022-06-07 问题

    下列哪个查询语句属于列级子查询? A: select*fromstudentswhereage>(selectavg(age)fromstudents); B: selectnamefromclasseswhereidin(selectcls_idfromstudents); C: select*fromstudentswhere(heght,age)=(selectmax(heght),max(age)fromstudents);

    下列哪个查询语句属于列级子查询? A: select*fromstudentswhereage>(selectavg(age)fromstudents); B: selectnamefromclasseswhereidin(selectcls_idfromstudents); C: select*fromstudentswhere(heght,age)=(selectmax(heght),max(age)fromstudents);

  • 2022-06-07 问题

    以下语句错误的是() A: SELECTrank,AVG(salary)FROMpeopleGROUPBYrankHAVINGAVG(salary)>1000 B: SELECTrank,AVG(salary)FROMpeopleHAVINGAVG(salary)>1000GROUPBYrank; C: SELECTAVG(salary)FROMpeopleGROUPBYrankHAVINGAVG(salary)>1000; D: SELECTrank,AVG(salary)FROMpeopleGROUPBYrankWHEREAVG(salary)>1000;

    以下语句错误的是() A: SELECTrank,AVG(salary)FROMpeopleGROUPBYrankHAVINGAVG(salary)>1000 B: SELECTrank,AVG(salary)FROMpeopleHAVINGAVG(salary)>1000GROUPBYrank; C: SELECTAVG(salary)FROMpeopleGROUPBYrankHAVINGAVG(salary)>1000; D: SELECTrank,AVG(salary)FROMpeopleGROUPBYrankWHEREAVG(salary)>1000;

  • 2022-06-07 问题

    查询员工表中所有比平均工资高的员工的信息 A: select*from员工where薪金>(selectavg(薪金)from员工) B: select*from员工where薪金>avg(薪金) C: select*from员工where薪金>平均薪金 D: select*from员工where薪金>(select平均薪金from员工)

    查询员工表中所有比平均工资高的员工的信息 A: select*from员工where薪金>(selectavg(薪金)from员工) B: select*from员工where薪金>avg(薪金) C: select*from员工where薪金>平均薪金 D: select*from员工where薪金>(select平均薪金from员工)

  • 1 2