手边星辰

博客园 首页 新随笔 联系 订阅 管理

select * from (
select 'finish_order_info' as table_name,count(1)as num from fraudorder.finish_order_info where crt_dt between to_date('2014-12-24:00:00:00','yyyy-mm-dd,hh24:mi:ss') and to_date('2014-12-25:00:00:00') group by 'finish' union all
select 'discard_order_info' as table_name, count(1)as num from FRAUDORDER.discard_order_info where crt_dt between to_date('2014-12-24:00:00:00','yyyy-mm-dd,hh24:mi:ss') and to_date('2014-12-25:00:00:00')union all
select 'raw_air_order_info' as table_name, count(1)as num from FRAUDORDER.raw_air_order_info where crt_dt between to_date('2014-12-24:00:00:00','yyyy-mm-dd,hh24:mi:ss') and to_date('2014-12-25:00:00:00')union all
select 'app_air_order_info' as table_name, count(1)as num from FRAUDORDER.app_air_order_info where crt_dt between to_date('2014-12-24:00:00:00','yyyy-mm-dd,hh24:mi:ss') and to_date('2014-12-25:00:00:00')union all
select 'unkown_order_info' as table_name, count(1)as num from FRAUDORDER.unkown_order_info where crt_dt between to_date('2014-12-24:00:00:00','yyyy-mm-dd,hh24:mi:ss') and to_date('2014-12-25:00:00:00')
);

posted on 2014-12-25 13:52  手边星辰  阅读(5986)  评论(0编辑  收藏  举报