由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - another 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!
相关话题的讨论汇总
话题: serialno话题: lifespan话题: query话题: min话题: select
进入Database版参与讨论
1 (共1页)
s****s
发帖数: 42
1
List the serial number of the car which has the shortest life span.
My code like this:
select serialno, min(lifespan)
from
(select d.serialno as serialno,
(d.ddate - c.pyear) as lifespan
from destruction d, car c
where d.serialno = c.serialno)
result
group by serialno;
It displayed the following table, but the query required to only display the
third row. How to make it?
SERIALNO MIN(LIFESPAN)
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?
相关话题的讨论汇总
话题: serialno话题: lifespan话题: query话题: min话题: select