工作——宏观部分用到的SQL语句

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/anxixiaomu/article/details/62043641
周查询:
select f1_4001,f2_4001,f3_4001,f10_4001,a.z
from (select f1_4002,max(f2_4002) z from tb_object_4002 group by f1_4002 ) a,tb_object_4001 
where f10_4001='000017_6'
and f1_4001=a.f1_4002
order by f3_4001


月查询:
select f1_4001,f2_4001,f3_4001,f10_4001,a.z
from (select f1_4002,max(f2_4002) z from tb_object_4002 group by f1_4002 ) a,tb_object_4001 
where f10_4001='000017_3'
and f1_4001=a.f1_4002
order by f3_4001



select * from tb_object_4001 where f1_4001=

猜你喜欢

转载自blog.csdn.net/anxixiaomu/article/details/62043641
今日推荐