数据库SQI中的SELECT题目,求答案~

数据库SQI中的SELECT题目,求答案~,第1张

select c_name,s_no,s_name from class,stu

where c_id = s_cid and c_stu>20 and sno like '[^not null]006%'

order by s_no desc

[^not null] 与--写法不同但含义 应该是相同的

1.select Sno,Sname from student

2.select sno from sc where score is not null or score<>0

3.select sno,score from sc where score<60

4.select sname,sno from student where sdept in('化学系','计算机系')

5.select sname,sno from students where sdept not in('化学系,'计算机系')

6.select sname,sno,ssex from student where sname like '金%'

7.select sname,sno,ssex from student where sname like '金%' and len(sname)=3

8.select Cno,Ccredit from course where cname='DB-DESIGN'

9.select sno,cname from students,course,scwhere student.sno=score.sno and course.cno=score.cno and sc.score is null

10.select count(*) from student

ps:可能有出入,没测试,差不多。


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/sjk/9249779.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-26
下一篇 2023-04-26

发表评论

登录后才能评论

评论列表(0条)

保存