第1个回答 2009-10-20
1、select 电影 from 出演 where 明星='John Black’
2、select 明星 from 出演
where 电影 in (select 电影 from 出演 where 明星 ='John Black’)
and 明星<> ''John Black'
3、select sum(数量) from 赚钱 where 电影 in(
select 电影 from 出演 where 明星 = ‘Sue Purple’ 电影 in
(select 电影 from 出演 where 明星 = ‘Tim Brown' ))
4、情侣表?
5、情侣表?
第2个回答 2009-10-20
1.select 电影 from 出演 where 明星='John Black'
2.select 明星 from 出演 where (电影 in ( select 电影 from 出演 where 明星='John Black'))
3.select sum(数量)from 赚钱 where ( 电影 in ( select 电影 from 出演 where 明星='John Black'and 明星='Tim Brown' 你都没的关于钱的字段怎么算?
直接并不明白了,你这个怎么设计的,光就情侣号怎么知道是哪两个明星怎么样啊,难道在一起有关系的情侣号还一致,有点晕!
第3个回答 2009-10-20
select 电影 from 出演 where 明星 = 'John Black'
select 明星 from 出演 where 电影 in(select 电影 from 出演 where 明星 = 'John Black')
第4个回答 2009-10-20
什么破设计啊
情侣号代表谁和谁?
你的表和表之间难道都是独立存在的吗