标签:
T1.MONTH_KEY,round(T1.KPI1,2)
T1:表别名
MONTH_KEY:列名
2:精确位数
eg:
SELECT
T1.CITY_KEY,
T2.CITY_ZHNAME,
T1.MONTH_KEY,round(T1.KPI1,2),round(T1.KPI2,2),round(T1.KPI3,2),round(T1.KPI4,2),round(T1.KPI5,2),round(T1.KPI6,2),round(T1.KPI7,2)
FROM
npm_ads.A_FT_TRANS_HEALTH_MN T1,npm_ads.DW_DM_CO_CITY T2
WHERE 1=1
AND T1.CITY_KEY=T2.CITY_KEY
标签:
原文地址:http://www.cnblogs.com/vicky-upc/p/5724575.html