共 4 篇文章 |
|
--选择了课程3,5,2 的学生 intersect 选择课程1,2,4的学生 交集--求选择了课程 2 并且 选择了课程 3 的学生 交集select s.stu_name from students s,couse c,stu_couse sc where s.id=sc.stu_id and sc.couse_id=c.couse_id and c.couse_id=2intersectselect s.stu_name from students s,couse c,stu_couse sc where s.id=sc.stu_id a... 阅19049 转112 评0 公众公开 14-06-15 10:19 |
数据库面试题数据库面试题1.基础知识点:1NF:第一范式。答:select * from ppp where num<=all(select num from ppp) 或者:select top 1 num from ppp order by num。答:复制表(只复制结构,源表名:A,新表名:B): select * into B from A where 1=0 拷贝表(拷贝结构,源表名:A,新表名:B): select * into B from A 四表联查: select * ... 阅8 转自FRANKSXIA 公众公开 14-04-19 22:55 |