avatar
How to make this query?# Database - 数据库
s*s
1
List the car dealers who have owned all the car models which have been owned
by Jone dealeaship in Oracle?
dealer model
avatar
t*y
2
这个比较难了?
谁设计的这么恶心的数据库?都多对多了,还能体现关系型数据库的优势吗?

【在 s****s 的大作中提到】
: List the car dealers who have owned all the car models which have been owned
: by Jone dealeaship in Oracle?
: dealer model

avatar
g*g
3
typical exam question

【在 t*******y 的大作中提到】
: 这个比较难了?
: 谁设计的这么恶心的数据库?都多对多了,还能体现关系型数据库的优势吗?

avatar
s*e
4
nod
must be homework or exam in previous years

【在 g*****g 的大作中提到】
: typical exam question
avatar
s*n
5
If the dealer/model pair is unique
try this
select * from (select t2.dealer from t t1 join t t2 on
(t1.model = t2.model) where t1.dealer='Jone')
group by dealer having count(*) >=
(select count(*) from t where dealer = 'Jone');
Of course Jone is also selected.

【在 s****s 的大作中提到】
: List the car dealers who have owned all the car models which have been owned
: by Jone dealeaship in Oracle?
: dealer model

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。