CSI 考前帖!

great_day

知名会员
注册
2004-04-12
消息
2,200
荣誉分数
3
声望点数
148
老师POST了 题目 竟然 没答案 真是郁闷! 哪位高手 能POST下 最后题的 SQL怎么写的啊?
 
我明天晚上10点考完psychology,然后我要没死的话就回来贴。
我现在贴先贴选择。
1-5 D E C A B
6-10 B A C E D
 
太强了  谢谢你了 BROTHER 没你我们的帖子就没浏览率了! 
 
(C)Select employee name
From E and EP
Where E.employee number= EP.employee number;


(D)Select department name
From E,D,EP
Where project number=467 and
E.department number= D.department number and
E.employee number= EP.employee number;


PS: E,D,P,EP,分别是table employee,department, project, employee& project
 
可能每个人的table名字不一样,大家能看得懂么,我这里也可能有错,毕竟是自己写的,好像还能用in这个方法写。
 
(c) Develop an SQL query to list the names of the employees participating in project 362
(d) Develop an SQL query to list the department whose employees participate in project 467
 
(D)缺少and连接吧?
我随便说说,不知道你们在学什么,我没上过这门课
 
Thanks to 会飞的鸟, 你说得对,我加了and,然后大家最后注意一定要有分号结束
 
(D)要用distinct去除重复的行吧
还有,如果列名或表名里有空格,列名或表名要用引号包起来
 
那么复杂啊?  那么问一下 那个 SELECT FROM WHERE ORDER这里的 ORDER是什么啊? 不用写的吗?
 
order by XXX是按照XXX排序的
这个题好象没有要求
 
后退
顶部