SQL 语句查询所有参加考试的学生,从Stu表中和Sco表中 10
这个是表的结构,另外我把其他几问也告诉大家,大家帮帮我!!(1)查询stu表中年龄的平均值,最大值,最小值。(2)查询stu表中学生人数。(3)查询stu表中李姓学生的信...
这个是表的结构,另外我把其他几问也告诉大家,大家帮帮我!!
(1) 查询stu表中年龄的平均值,最大值,最小值。
(2) 查询stu表中学生人数。
(3) 查询stu表中李姓学生的信息。(
(4) 查询stu表中李姓学生的姓名和笔试成绩
(5) 查询比‘李斯文’年龄大的学员信息(
(6) 查询实验成绩及格的学生姓名
(7) 查询所有参加考试的学生信息
(8) 查询所有没参加考试的学生信息 展开
(1) 查询stu表中年龄的平均值,最大值,最小值。
(2) 查询stu表中学生人数。
(3) 查询stu表中李姓学生的信息。(
(4) 查询stu表中李姓学生的姓名和笔试成绩
(5) 查询比‘李斯文’年龄大的学员信息(
(6) 查询实验成绩及格的学生姓名
(7) 查询所有参加考试的学生信息
(8) 查询所有没参加考试的学生信息 展开
4个回答
展开全部
select * from stu,sco and stu.stuNo=sco.stuNo
1.select avg(stuAg), max(stuAg),min(stuAg) from stu
2.select count(*) from stu
3.select * from stu where stuName like ‘李%’
4。select stuName writtenExam from stu,sco where stuName like ‘李%’and stu.stuNo=sco.stuNo
5.select * from stu where (stuAge>(select lstuAge from stu where stuName='李斯文' ))//试一下,应该可以
6.select stuName from stu,sco where LabExam>=60 and stu.stuNo=sco.stuNo
7.select * from stu,sco where stu.stuNo=sco.stuNo
8.select * from stu,sco where not(stu.stuNo=sco.stuNo)
1.select avg(stuAg), max(stuAg),min(stuAg) from stu
2.select count(*) from stu
3.select * from stu where stuName like ‘李%’
4。select stuName writtenExam from stu,sco where stuName like ‘李%’and stu.stuNo=sco.stuNo
5.select * from stu where (stuAge>(select lstuAge from stu where stuName='李斯文' ))//试一下,应该可以
6.select stuName from stu,sco where LabExam>=60 and stu.stuNo=sco.stuNo
7.select * from stu,sco where stu.stuNo=sco.stuNo
8.select * from stu,sco where not(stu.stuNo=sco.stuNo)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
1
select avg(stuAge),max(stuAge),min(stuAge) from Stu
2
select count(stuNo) from Stu
3
select * from Stu where stuName='李%'
4
select Stu.stuName,Sco.virttenExam from Stu,Sco where Stu.stuNo=Sco.stuNo and Stu.stuName='李%'
5
select * from Stu where stuAge>(select stuAge from Stu where stuName='李斯文'
6
select Stu.stuName from Stu,Sco where Sco.LabExam>=60
7
select Stu.stuName,Stu.stuNo,Stu.stuSex,Stu.stuSeat,Stu.stuAddress from Sco,Stu
where Sco.stuNO=Stu.stuNo and (vrittenExam is null or LabExam is null)
8
select Stu.stuName,Stu.stuNo,Stu.stuSex,Stu.stuSeat,Stu.stuAddress from Sco,Stu
where Sco.stuNO=Stu.stuNo and vrittenExam is null and LabExam is null
select avg(stuAge),max(stuAge),min(stuAge) from Stu
2
select count(stuNo) from Stu
3
select * from Stu where stuName='李%'
4
select Stu.stuName,Sco.virttenExam from Stu,Sco where Stu.stuNo=Sco.stuNo and Stu.stuName='李%'
5
select * from Stu where stuAge>(select stuAge from Stu where stuName='李斯文'
6
select Stu.stuName from Stu,Sco where Sco.LabExam>=60
7
select Stu.stuName,Stu.stuNo,Stu.stuSex,Stu.stuSeat,Stu.stuAddress from Sco,Stu
where Sco.stuNO=Stu.stuNo and (vrittenExam is null or LabExam is null)
8
select Stu.stuName,Stu.stuNo,Stu.stuSex,Stu.stuSeat,Stu.stuAddress from Sco,Stu
where Sco.stuNO=Stu.stuNo and vrittenExam is null and LabExam is null
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
select sname
from stu,sc
where stu.sno=sc.sno and grade is not null
from stu,sc
where stu.sno=sc.sno and grade is not null
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |