由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - How to make this query?
相关主题
关于Acess的简单问题query estimation shows cost 900%?
一个SQL query的问题oracle JDBC thin vs. JDBC OCI
Question 2: distributed database question?再问个excel问题吧
[转载] question about SQL in Access急,SQL2005, 怎么查过去一小时里run过的所有query?
[转载] Can anyone interpret this simple SQL?Late afternoon 腦不好使
请教一个query请教一个mssql的问题
A sql questionparameterized queries with no inputs
how to make query faster?Re: Recordset - I stuck! Help!
相关话题的讨论汇总
话题: jone话题: query话题: make话题: owned话题: dealer
进入Database版参与讨论
1 (共1页)
s****s
发帖数: 42
1
List the car dealers who have owned all the car models which have been owned
by Jone dealeaship in Oracle?
dealer model
t*******y
发帖数: 57
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

g*****g
发帖数: 34805
3
typical exam question

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

s***e
发帖数: 284
4
nod
must be homework or exam in previous years

【在 g*****g 的大作中提到】
: typical exam question
s*****n
发帖数: 29
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

1 (共1页)
进入Database版参与讨论
相关主题
Re: Recordset - I stuck! Help![转载] Can anyone interpret this simple SQL?
A SQL query never stop running is bothering me: help needed (转载)请教一个query
能不能用一个query 显示最高和最低A sql question
请教怎么来log duration of a MYSQL procedure?how to make query faster?
关于Acess的简单问题query estimation shows cost 900%?
一个SQL query的问题oracle JDBC thin vs. JDBC OCI
Question 2: distributed database question?再问个excel问题吧
[转载] question about SQL in Access急,SQL2005, 怎么查过去一小时里run过的所有query?
相关话题的讨论汇总
话题: jone话题: query话题: make话题: owned话题: dealer