|
@@ -2192,7 +2192,22 @@ from
|
|
|
),
|
|
|
t301 as (
|
|
|
select
|
|
|
- *
|
|
|
+ *,
|
|
|
+ extract(year
|
|
|
+from
|
|
|
+ age(to_date(year_month::varchar,
|
|
|
+ 'YYYYMM'),
|
|
|
+ deng_ji_ri_qi)) || '年' ||
|
|
|
+ extract(month
|
|
|
+from
|
|
|
+ age(to_date(year_month::varchar,
|
|
|
+ 'YYYYMM'),
|
|
|
+ deng_ji_ri_qi)) || '月' ||
|
|
|
+ extract(day
|
|
|
+from
|
|
|
+ age(to_date(year_month::varchar,
|
|
|
+ 'YYYYMM'),
|
|
|
+ deng_ji_ri_qi)) || '天' as che_ling_str
|
|
|
from
|
|
|
t202
|
|
|
where
|
|
@@ -2218,6 +2233,7 @@ year_month,
|
|
|
wei_xiu_rank,
|
|
|
deng_ji_ri_qi,
|
|
|
che_ling,
|
|
|
+ che_ling_str,
|
|
|
year_no,
|
|
|
month_no,
|
|
|
area_no,
|
|
@@ -2245,6 +2261,7 @@ select
|
|
|
wei_xiu_rank,
|
|
|
deng_ji_ri_qi,
|
|
|
che_ling,
|
|
|
+ che_ling_str,
|
|
|
year_no,
|
|
|
month_no,
|
|
|
area_no,
|
|
@@ -2323,7 +2340,22 @@ from
|
|
|
),
|
|
|
t301 as (
|
|
|
select
|
|
|
- *
|
|
|
+ *,
|
|
|
+ extract(year
|
|
|
+from
|
|
|
+ age(to_date(year_month::varchar,
|
|
|
+ 'YYYYMM'),
|
|
|
+ deng_ji_ri_qi)) || '年' ||
|
|
|
+ extract(month
|
|
|
+from
|
|
|
+ age(to_date(year_month::varchar,
|
|
|
+ 'YYYYMM'),
|
|
|
+ deng_ji_ri_qi)) || '月' ||
|
|
|
+ extract(day
|
|
|
+from
|
|
|
+ age(to_date(year_month::varchar,
|
|
|
+ 'YYYYMM'),
|
|
|
+ deng_ji_ri_qi)) || '天' as che_ling_str
|
|
|
from
|
|
|
t202
|
|
|
where
|
|
@@ -2348,6 +2380,7 @@ year_month,
|
|
|
wei_xiu_rank,
|
|
|
deng_ji_ri_qi,
|
|
|
che_ling,
|
|
|
+ che_ling_str,
|
|
|
year_no,
|
|
|
month_no,
|
|
|
area_no,
|
|
@@ -2375,6 +2408,7 @@ select
|
|
|
wei_xiu_rank,
|
|
|
deng_ji_ri_qi,
|
|
|
che_ling,
|
|
|
+ che_ling_str,
|
|
|
year_no,
|
|
|
month_no,
|
|
|
area_no,
|