A.selecttop5*fromcourse
B.selecttop(5)fromcourse
C.selecttop5fromcourse
D.selecttop(5*)fromcourse
第1题
A.CREATE
B.UPDATE
C.DELETE
D.INSERT
第2题
A.selectfirstname+'.'+lastnameas'name'fromemployee
B.selectfirstname+'.'+lastname='name'fromemployee
C.select'name'=firstname+'.'+lastnamefromemployee
D.selectfirstname,lastnamefromemployee
第3题
A.selectclassid,count(*)asnumfromshopgroupbyclassid
B.selectclassid,count(*)asnumfromshopgroupbyname
C.selectclassid,sum(*)asnumfromshopgroupbyaddress
D.selectclassid,sum(*)asnumfromshopgroupbyclassid
第4题
现有学生表,课程表和成绩表,三表中的字段如下:
student表:id,student_name
course表:id,course_name
score表:student_id,course_id,score
前提:每个学生都会参加多门课程的考试,每门课程的成绩在score表中都是一条数据
现若要查询出 平均分在60分以上的学生id和学生姓名以及平均分,以下哪个sql语句是正确的? ()
A.select student_id,student_name,avg(score) av from student s join score sc on s.id=sc.student_id;
B.select student_id,student_name,avg(score) av from student s join score sc on s.id=sc.student_id where av>60;
C.select student_id,student_name,avg(score) av from student s join score sc on s.id=sc.student_id where av>60 group by student_id;
D.select student_id,student_name,avg(score) av from student s join score sc on s.id=sc.student_id group by student_id having av>60;
第5题
A.覆盖现有数据库
B.保留复制设置
C.还原每个备份之前进行提示
D.限制访问还原的数据库
第6题
现有课程表(课程号,课程名,学分,开课学期,课程性质),课程号为主码。该表数据量较大。设经常要对该表执行类似下面的查询:
SELECT*FROM课程表WHERE课程名:
数据库原理,
为提高这类查询的执行效率,下列物理设计方案中,正确且最为合理的是______。
A) 为课程名列建立一个主索引
B) 为课程名列建立一个位图索引
C) 为课程名列建立一个辅索引
D) 此表上不需要建任何索引
第7题
A.Select stu_name from student_info where stu_grade=80 order by stu_id desc
B.Select stu_name from student_info where stu_grade=80 order by stu_id
C.Select stu_name from student_info where stu_grade like 80 group by stu_id
D.Select stu_name from student_info where stu_grade=80 order by stu_id asc
第8题
现有如下程序段 #include"stdio.h" main() { int k[30]={12,324,45,6,768,98,21,34,453,456}; int count=0,i=0; while(k[i]) { if(k[i]%2==0‖k[i]%5==0)count++; i++; } printf("%d,%d\n",count,i);} 则程序段的输出结果为
A.7,8
B.8,8
C.7,10
D.8,10
第9题
A.为课程名列建立一个主索引
B.为课程名列建立一个位图索引
C.为课程名列建立一个辅索引
D.此表上不需要建任何索引
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!