列名acct_month ,acct_year,表名acct_vouch查询最大、小月,最小月要对应最小年select min(acct_month) as start_month from acct_vouch where acct_year=(select min(acct_year) from acct_vouch) select max(acct_month) as cur_month from acct_
来源:学生作业帮助网 编辑:作业帮 时间:2024/05/13 16:39:43
列名acct_month ,acct_year,表名acct_vouch查询最大、小月,最小月要对应最小年
select min(acct_month) as start_month from acct_vouch where acct_year=(select min(acct_year) from acct_vouch)
select max(acct_month) as cur_month from acct_vouch where acct_year=(select max(acct_year) from acct_vouch)
select max(acct_year)as cur_year,min(acct_year)as start_year from acct_vouch 我只会分3句写 求高手一句sql查询 最大最小月
拿去直接可以用
select t.cur_year as 最大年份,t.start_year as 最小年份,t.am as 最大月份,x.xm as 最小月份 from (
select max(acct_year)as cur_year,min(acct_year)as start_year,MAX(acct_month) as am from acct_vouch) t ,(
select min(acct_year)as cur_year,min(acct_year)as start_year,min(acct_month) as xm from acct_vouch) x
列名acct_month ,acct_year,表名acct_vouch查询最大、小月,最小月要对应最小年select min(acct_month) as start_month from acct_vouch where acct_year=(select min(acct_year) from acct_vouch) select max(acct_month) as cur_month from acct_
SQL中DISTINCT的位置2张表 DISTINCT 表名.列名 还是 表名.DISTINCT 列名
把五岳中的山名和所在地列出来.
sql server中如何理解:isnull(列名,0) 和 isnull(列名,0)0 的区别,能举例说明,
每两名同学握手一次,共210次,设有学生x名,列方程
俄国画家列宾的名画有哪些?俄国画家列宾的名画作
30名同学站排,站成不同的几列,每列人数相同,有几种站法?
30名同学站排,站不同的几列,每列人数相同,有几种战法?
如何列算式计算14名同学排成一排,从左数小娟是第11名,从右数小静是第7名,她们中间有几名同学?这个如何列式子?
4名男同学和2名女同学进行乒乓球比赛,如果任意一名男同学和每名女同学都要打一局,一共要打几局?怎么列算式
SQL语句select * from 表名 group by 列名--不是 GROUP BY 表达式RTselect * from 表名 group by 列名----- 报错 ORA-00979:不是 GROUP BY 表达式数据库:oracle10g* 换成 列名也不行
请列举出10名物理学家的发明创造10名物理学家应是在初中课本上出现的
有10名男生排成一列,每两名男生之间插一名女生,可以插几名女生?算式怎么列?
校合唱队共有63名队员,女生比男生多四分之一,女生有多少名?(不要方程,列算式)
六一班有男同学25名,女同学20名.男同学人数是女同学的几倍?应该怎样列算式
在一排10名男生队伍中,每2名男生之间插进1名女生,请问能插进多少女生算式怎么列
9名男生排成一队,每2名男生中间插1名女生,一共可以插几名女生,怎样列式?
五2班有48名同学,女生是男生的0.6倍,五2班有男生多少名?女生多少名?列方程