SQL语句每个月的最大日期
答案:3 悬赏:0 手机版
解决时间 2021-11-11 20:34
- 提问者网友:藍了天白赴美
- 2021-11-11 15:45
SQL语句每个月的最大日期
最佳答案
- 五星知识达人网友:低音帝王
- 2021-11-11 16:46
SQL语句每个月的最大日期
select a.* from table1,
(select max(日期) 日期 from table1 where price is not null group by extract(month from 日期)) b
where a.日期=b.日期
select a.* from table1,
(select max(日期) 日期 from table1 where price is not null group by extract(month from 日期)) b
where a.日期=b.日期
全部回答
- 1楼网友:渡鹤影
- 2021-11-11 19:05
select top 1 * from 表名 where price!=NULL order by date desc
- 2楼网友:狂恋
- 2021-11-11 17:35
select a.* from table1,
(select max(日期) 日期 from table1 where price is not null group by extract(month from 日期)) b
where a.日期=b.日期
(select max(日期) 日期 from table1 where price is not null group by extract(month from 日期)) b
where a.日期=b.日期
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯