十二.行业比较 ◆ 市场表现排名 ┌────┬────┬──────┬────┬─────┬─────┬─────┬─────┬─────┐ │ 排名 │股票代码│ 股票名称 │周涨跌幅│1月涨跌幅 │3月涨跌幅 │6月涨跌幅 │1年涨跌幅 │3年涨跌幅 │ │ │ │ │(%) │ (%) │(%) │(%) │(%) │(%) │ ├────┼────┼──────┼────┼─────┼─────┼─────┼─────┼─────┤ │ 1 │ 00440 │ 大新金融 │ 5.86│ 22.77│ 25.30│ 64.74│ 26.31│ 178.38│ ├────┼────┼──────┼────┼─────┼─────┼─────┼─────┼─────┤ │ 2 │ 02356 │大新银行集团│ 4.23│ 8.19│ 12.80│ 33.26│ 13.08│ 159.03│ ├────┼────┼──────┼────┼─────┼─────┼─────┼─────┼─────┤ │ 3 │ 03698 │ 徽商银行 │ 0.59│ 0.00│ 2.93│ 2.93│ -│ -│ ├────┴────┴──────┴────┴─────┴─────┴─────┴─────┴─────┤ ├───────────────────────────────────────────────────┤ │市场统计 │ ├────┬────┬──────┬────┬─────┬─────┬─────┬─────┬─────┤ │ 排名 │股票代码│ 股票名称 │周涨跌幅│1月涨跌幅 │3月涨跌幅 │6月涨跌幅 │1年涨跌幅 │3年涨跌幅 │ │ │ │ │(%) │ (%) │(%) │(%) │(%) │(%) │ ├────┼────┼──────┼────┼─────┼─────┼─────┼─────┼─────┤ │市场指数│ 999999 │ 恒生指数 │ -1.66│ -5.55│ 2.46│ 8.59│ 2.54│ 34.52│ ├────┼────┼──────┼────┼─────┼─────┼─────┼─────┼─────┤ │市场最大│ 00876 │ 永利控股 │ 711.68│ 1,102.16│ 1,102.16│ 101.45│ 101.45│ 18,189.47│ ├────┼────┼──────┼────┼─────┼─────┼─────┼─────┼─────┤ │市长最小│ 01159 │中国绿能科技│ -80.00│ -80.00│ -38.90│ -2.46│ 52.33│ 131.67│ └────┴────┴──────┴────┴─────┴─────┴─────┴─────┴─────┘ ◆ 公司规模排名 ┌────┬────┬──────┬─────┬─────┬─────┬─────┬─────┬─────┐ │ 排名 │股票代码│ 股票名称 │港股市值 │ 总市值 │香港上市股│已发行股本│ 总收入 │ 总资产 │ │ │ │ │(亿元) │ (亿元) │本(亿元)│(亿元) │ (亿元) │ (亿元) │ ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤ │ 1 │ 00005 │ 汇丰控股 │ 15,745.16│ 15,743.16│ 191.52 │ 191.52│ 5,013.21│213,458.09│ ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤ │ 2 │ 00939 │ 建设银行 │ 13,559.54│ 14,055.61│ 2,404.17 │ 2,500.11│ 6,495.62│206,572.49│ ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤ │ 3 │ 01398 │ 工商银行 │ 4,357.06│ 16,209.08│ 867.94 │ 3,515.03│ 7,356.73│255,746.03│ ├────┴────┴──────┴─────┴─────┴─────┴─────┴─────┴─────┤ ├────────────────────────────────────────────────────┤ │行业统计 │ ├────┬────┬──────┬─────┬─────┬─────┬─────┬─────┬─────┤ │ 排名 │股票代码│ 股票名称 │ 港股市值 │ 总市值 │香港上市股│已发行股本│ 总收入 │ 总资产 │ │ │ │ │ (亿元) │ (亿元) │本(亿元)│(亿元) │ (亿元) │ (亿元) │ ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤ │行业平均│ │ │ 2,104.09│ 3,654.91│ 227.00│ 605.80│ 1,608.72│ 58,770.36│ ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤ │行业最大│ 00005 │ 汇丰控股 │ 15,743.16│ 15,743.16│ 191.52│ 191.52│ 5,013.21│213,458.09│ ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤ │行业最小│ 00145 │香港建屋贷款│ 6.05│ 6.05│ 10.26│ 10.26│ 0.00│ 26.62│ ├────┴────┴──────┴─────┴─────┴─────┴─────┴─────┴─────┤ ├────────────────────────────────────────────────────┤ │市场统计 │ ├────┬────┬──────┬─────┬─────┬─────┬─────┬─────┬─────┤ │ 排名 │股票代码│ 股票名称 │ 港股市值 │ 总市值 │香港上市股│已发行股本│ 总收入 │ 总资产 │ │ │ │ │ (亿元) │ (亿元) │本(亿元)│(亿元) │ (亿元) │ (亿元) │ ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤ │市场平均│ │ │ 155.94│ 217.34│ 29.94│ 40.99│ 194.76│ 1,249.81│ ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤ │市场最大│ 00941 │ 中国移动 │ 19,168.01│ 19,168.01│ 203.70│ 203.70│ 8,008.35│ 15,671.57│ ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤ │市场最小│ 00770 │ SHANGHAI │ │ │ │ │ │ │ │ │ │ GROWTH │ 0.14│ 0.14│ 0.09│ 0.09│ 0.00│ 1.15│ └────┴────┴──────┴─────┴─────┴─────┴─────┴─────┴─────┘ ◆ 公司估值排名 ┌────┬────┬─────┬────┬─────┬─────┬─────┬─────┐ │ 排名 │股票代码│ 股票名称 │最新收盘│市盈率ttm │市净率mrq │市销率ttm │PEG(倍) │ │ │ │ │价(元)│ (倍) │(倍) │(倍) │ │ ├────┼────┼─────┼────┼─────┼─────┼─────┼─────┤ │ 1 │ 02888 │ 渣打集团 │ 150.90│ 11.27│ 1.01│ 2.67│ -│ ├────┼────┼─────┼────┼─────┼─────┼─────┼─────┤ │ 2 │ 00011 │ 恒生银行 │ 128.30│ 14.71│ 2.28│ 15.12│ 0.69│ ├────┼────┼─────┼────┼─────┼─────┼─────┼─────┤ │ 3 │ 00302 │ 永亨银行 │ 121.80│ 17.78│ 1.68│ 8.46│ 1.71│ ├────┴────┴─────┴────┴─────┴─────┴─────┴─────┤ ├────────────────────────────────────────────┤ │行业统计 │ ├────┬────┬─────┬────┬─────┬─────┬─────┬─────┤ │ 排名 │股票代码│ 股票名称 │最新收盘│市盈率ttm │市净率mrq │市销率ttm │PEG(倍) │ │ │ │ │价(元)│ (倍) │(倍) │(倍) │ │ ├────┼────┼─────┼────┼─────┼─────┼─────┼─────┤ │行业平均│ │ │ 27.80│ 5.96│ 0.98│ 2.34│ 0.46│ ├────┼────┼─────┼────┼─────┼─────┼─────┼─────┤ │行业最大│ 02888 │ 渣打集团 │ 150.91│ 11.27│ 1.01│ 2.67│ -│ ├────┼────┼─────┼────┼─────┼─────┼─────┼─────┤ │行业最小│ 00605 │ 中国金融 │ │ │ │ │ │ │ │ │ 投资管理 │ 0.51│ 6.90 │ 0.74│ 3.41│ 0.06│ ├────┴────┴─────┴────┴─────┴─────┴─────┴─────┤ ├────────────────────────────────────────────┤ │市场统计 │ ├────┬────┬─────┬────┬─────┬─────┬─────┬─────┤ │ 排名 │股票代码│ 股票名称 │最新收盘│市盈率ttm │市净率mrq │市销率ttm │PEG(倍) │ │ │ │ │价(元)│ (倍) │(倍) │(倍) │ │ ├────┼────┼─────┼────┼─────┼─────┼─────┼─────┤ │市场平均│ │ │ 5.40│ 9.47│ 1.25│ 1.11│ 3.09│ ├────┼────┼─────┼────┼─────┼─────┼─────┼─────┤ │市场最大│ 02378 │ 保诚 │ 180.80│ 16.50│ 3.39│ -│ -│ ├────┼────┼─────┼────┼─────┼─────┼─────┼─────┤ │市场最小│ 00261 │ 中建置地 │ 0.01│ -│ 1.49│ 0.60│ -│ └────┴────┴─────┴────┴─────┴─────┴─────┴─────┘ ◆ 公司财务状态排名 ┌────┬────┬──────┬─────┬─────┬──────┬─────┬─────┐ │ 排名 │股票代码│ 股票名称 │每股收益 │每股净资产│股东权益回报│毛利率 │三年复合增│ │ │ │ │ttm(元) │mrq(元) │率ttm(%) │ttm(%) │ 长率(%)│ ├────┼────┼──────┼─────┼─────┼──────┼─────┼─────┤ │ 1 │00001 │长江实业 │18.6485 │166.7176 │ 11.19 │ - │ 10.02 │ ├────┼────┼──────┼─────┼─────┼──────┼─────┼─────┤ │ 2 │00026 │中华汽车 │14.6166 │160.6156 │ 9.10 │ - │ 0.11 │ ├────┼────┼──────┼─────┼─────┼──────┼─────┼─────┤ │ 3 │00016 │鸿基地产 │12.2985 │152.1836 │ 8.08 │ 40.09 │ -11.34 │ ├────┴────┴──────┴─────┴─────┴──────┴─────┴─────┤ ├───────────────────────────────────────────────┤ │行业统计 │ ├────┬────┬──────┬─────┬─────┬──────┬─────┬─────┤ │ 排名 │股票代码│ 股票名称 │每股收益 │每股净资产│股东权益回报│毛利率 │三年复合增│ │ │ │ │ttm(元) │mrq(元) │率ttm(%) │ttm(%) │ 长率(%)│ ├────┼────┼──────┼─────┼─────┼──────┼─────┼─────┤ │行业平均│ │ │1.0705 │12.7027 │ -17.30 │ 44.43 │ -14.71 │ ├────┼────┼──────┼─────┼─────┼──────┼─────┼─────┤ │行业最大│00001 │长江实业 │18.6485 │166.7176 │ 11.19 │ - │ 10.02 │ ├────┼────┼──────┼─────┼─────┼──────┼─────┼─────┤ │行业最小│02088 │西王置业 │-0.8205 │0.7010 │ -117.04 │ 48.28 │-266.33 │ ├────┴────┴──────┴─────┴─────┴──────┴─────┴─────┤ ├───────────────────────────────────────────────┤ │市场统计 │ ├────┬────┬──────┬─────┬─────┬──────┬─────┬─────┤ │ 排名 │股票代码│ 股票名称 │每股收益 │每股净资产│股东权益回报│毛利率 │三年复合增│ │ │ │ │ttm(元) │mrq(元) │率ttm(%) │ttm(%) │ 长率(%)│ ├────┼────┼──────┼─────┼─────┼──────┼─────┼─────┤ │市场平均│ │ │0.4145 │4.6808 │ -81.68 │ 28.32 │ -36.90 │ ├────┼────┼──────┼─────┼─────┼──────┼─────┼─────┤ │市场最大│00006 │电能实业 │29.4889 │56.8450 │ 51.88 │ 63.57 │ 15.78 │ ├────┼────┼──────┼─────┼─────┼──────┼─────┼─────┤ │市场最小│00847 │哈萨克铜业-S│-17.2331 │64.6705 │ -26.65 │ 9.34 │ -211.87 │ └────┴────┴──────┴─────┴─────┴──────┴─────┴─────┘ ☆──@sys.code,wid(6) @{sys.abb,free}──☆ @// @// 十二.行业比较 @// @// ◆ 市场表现排名 (截止:@t1.uptime)@// @// ┌────┬────┬──────┬────┬─────┬─────┬─────┬─────┬─────┐@// │ 排名 │股票代码│ 股票名称 │周涨跌幅│1月涨跌幅 │3月涨跌幅 │6月涨跌幅 │1年涨跌幅 │3年涨跌幅 │@// │ │ │ │(%) │ (%) │(%) │(%) │(%) │(%) │@// @for f1:t1{ ├────┼────┼──────┼────┼─────┼─────┼─────┼─────┼─────┤@// │@f1._1,wid(8)+hm│@f1.a,wid(8)+hm│@f1.b,wid(12)+hm│@f1.c │@f1.d │@f1.e │@f1.f │@f1.g │@f1.h │@// @} ├────┴────┴──────┴────┴─────┴─────┴─────┴─────┴─────┤@// ├───────────────────────────────────────────────────┤@// │市场统计 │@// ├────┬────┬──────┬────┬─────┬─────┬─────┬─────┬─────┤@// │ 排名 │股票代码│ 股票名称 │周涨跌幅│1月涨跌幅 │3月涨跌幅 │6月涨跌幅 │1年涨跌幅 │3年涨跌幅 │@// │ │ │ │(%) │ (%) │(%) │(%) │(%) │(%) │@// ├────┼────┼──────┼────┼─────┼─────┼─────┼─────┼─────┤@// │市场指数│@t4.a,wid(8)+hm│@t4.b,wid(12)+hm│@t4.ctw │@t4.ctm │@t4.ct3m │@t4.ct6m │@t4.ctyr │@t4.ct3yrs│@// ├────┼────┼──────┼────┼─────┼─────┼─────┼─────┼─────┤@// │市场最大│@t2.a,wid(8)+hm│@t2.b,wid(12)+hm│@t2.ctw │@t2.ctm │@t2.ct3m │@t2.ct6m │@t2.ctyr │@t2.ct3yrs│@// ├────┼────┼──────┼────┼─────┼─────┼─────┼─────┼─────┤@// │市场最小│@t3.a,wid(8)+hm│@t3.b,wid(12)+hm│@t3.ctw │@t3.ctm │@t3.ct3m │@t3.ct6m │@t3.ctyr │@t3.ct3yrs│@// └────┴────┴──────┴────┴─────┴─────┴─────┴─────┴─────┘@// @// @// ◆ 公司规模排名 (截止:@t5.uptime)@// @// ┌────┬────┬──────┬─────┬─────┬─────┬─────┬─────┬─────┐@// │ 排名 │股票代码│ 股票名称 │ 港股市值 │ 总市值 │香港上市股│已发行股本│ 总收入 │ 总资产 │@// │ │ │ │(亿元) │ (亿元) │本(亿股)│(亿股) │ (亿元) │ (亿元) │@// @for f2:t5{ ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │@f2._1,wid(8)+hm│@f2.a,wid(8)+hm│@f2.b,wid(12)+hm│@f2.c │@f2.d │@f2.e │@f2.f │@f2.g │@f2.h │@// @} ├────┴────┴──────┴─────┴─────┴─────┴─────┴─────┴─────┤@// ├────────────────────────────────────────────────────┤@// │行业统计 │@// ├────┬────┬──────┬─────┬─────┬─────┬─────┬─────┬─────┤@// │ 排名 │股票代码│ 股票名称 │ 港股市值 │ 总市值 │香港上市股│已发行股本│ 总收入 │ 总资产 │@// │ │ │ │ (亿元) │ (亿元) │本(亿股)│(亿股) │ (亿元) │ (亿元) │@// ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │行业平均│ -- │ -- │@t6.c │@t6.d │@t6.e │@t6.f │@t6.g │@t6.h │@// ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │行业最大│@t7.a,wid(8)+hm│@t7.b,wid(12)+hm│@t7.c │@t7.d │@t7.e │@t7.f │@t7.g │@t7.h │@// ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │行业最小│@t8.a,wid(8)+hm│@t8.b,wid(12)+hm│@t8.c │@t8.d │@t8.e │@t8.f │@t8.g │@t8.h │@// ├────┴────┴──────┴─────┴─────┴─────┴─────┴─────┴─────┤@// ├────────────────────────────────────────────────────┤@// │市场统计 │@// ├────┬────┬──────┬─────┬─────┬─────┬─────┬─────┬─────┤@// │ 排名 │股票代码│ 股票名称 │ 港股市值 │ 总市值 │香港上市股│已发行股本│ 总收入 │ 总资产 │@// │ │ │ │ (亿元) │ (亿元) │本(亿股)│(亿股) │ (亿元) │ (亿元) │@// ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │市场平均│ -- │ -- │@t9.c │@t9.d │@t9.e │@t9.f │@t9.g │@t9.h │@// ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │市场最大│@t10.a,wid(8)+hm│@t10.b,wid(12)+hm│@t10.c │@t10.d │@t10.e │@t10.f │@t10.g │@t10.h │@// ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │市场最小│@t11.a,wid(8)+hm│@t11.b,wid(12)+hm│@t11.c │@t11.d │@t11.e │@t11.f │@t11.g │@t11.h │@// └────┴────┴──────┴─────┴─────┴─────┴─────┴─────┴─────┘@// @// @// ◆ 公司估值排名 (截止:@t12.uptime)@// @// ┌────┬────┬─────┬─────┬─────┬─────┬─────┬─────┐@// │ 排名 │股票代码│ 股票名称 │市盈率ttm │市净率mrq │市销率ttm │PEG(倍) │最新收盘价│@// │ │ │ │ (倍) │(倍) │(倍) │ │ (元) │@// @for f3:t12{ ├────┼────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │@f3._1,wid(8)+hm│@f3.stkcode,wid(8)+hm│@f3.stkabb,wid(10)+hm│@f3.pe2,wid(10)│@f3.pb,wid(10)│@f3.ps,wid(10)│@f3.peg1,wid(10)│@f3.clngpr,wid(10)│@// @} ├────┴────┴─────┴─────┴─────┴─────┴─────┴─────┤@// ├─────────────────────────────────────────────┤@// │行业统计 │@// ├────┬────┬─────┬─────┬─────┬─────┬─────┬─────┤@// │ 排名 │股票代码│ 股票名称 │市盈率ttm │市净率mrq │市销率ttm │PEG(倍) │最新收盘价│@// │ │ │ │ (倍) │(倍) │(倍) │ │ (元) │@// ├────┼────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │行业平均│ -- │ -- │@t15.d │@t15.e │@t15.f │@t15.g │@t15.c │@// ├────┼────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │行业最大│@t13.a,wid(8)+hm│@t13.b,wid(10)+hm│@t13.d │@t13.e │@t13.f │@t13.g │@t13.c │@// ├────┼────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │行业最小│@t14.a,wid(8)+hm│@t14.b,wid(10)+hm│@t14.d │@t14.e │@t14.f │@t14.g │@t14.c │@// ├────┴────┴─────┴─────┴─────┴─────┴─────┴─────┤@// ├─────────────────────────────────────────────┤@// │市场统计 │@// ├────┬────┬─────┬─────┬─────┬─────┬─────┬─────┤@// │ 排名 │股票代码│ 股票名称 │市盈率ttm │市净率mrq │市销率ttm │PEG(倍) │最新收盘价│@// │ │ │ │ (倍) │(倍) │(倍) │ │ (元) │@// ├────┼────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │市场平均│ -- │ -- │@t18.d │@t18.e │@t18.f │@t18.g │@t18.c │@// ├────┼────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │市场最大│@t19.a,wid(8)+hm │@t19.b,wid(10)+hm│@t19.d │@t19.e │@t19.f │@t19.g │@t19.c │@// ├────┼────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │市场最小│@t20.a,wid(8)+hm │@t20.b,wid(10)+hm│@t20.d │@t20.e │@t20.f │@t20.g │@t20.c │@// └────┴────┴─────┴─────┴─────┴─────┴─────┴─────┘@// @// @// ◆ 公司财务状态排名 (截止:@t21.uptime)@// @// ┌────┬────┬──────┬──────┬─────┬─────┬─────┬─────┐@// │ 排名 │股票代码│ 股票名称 │股东权益回报│ 毛利率 │三年复合增│每股收益 │每股净资产│@// │ │ │ │率ttm(%) │ ttm(%) │ 长率(%)│ttm(元) │mrq(元) │@// @for f4:t21{ ├────┼────┼──────┼──────┼─────┼─────┼─────┼─────┤@// │@f4._1,wid(8)+hm│@f4.stkcode,wid(8)+hm│@f4.stkabb,wid(12)+hm│@f4.roe_ttm,wid(12)│@f4.gpm,wid(10)│@f4.cagr3yav,wid(10)│@f4.eps,wid(10)│@f4.bps,wid(10)│@// @} ├────┴────┴──────┴──────┴─────┴─────┴─────┴─────┤@// ├───────────────────────────────────────────────┤@// │行业统计 │@// ├────┬────┬──────┬──────┬─────┬─────┬─────┬─────┤@// │ 排名 │股票代码│ 股票名称 │股东权益回报│ 毛利率 │三年复合增│每股收益 │每股净资产│@// │ │ │ │率ttm(%) │ ttm(%) │ 长率(%)│ttm(元) │mrq(元) │@// ├────┼────┼──────┼──────┼─────┼─────┼─────┼─────┤@// │行业平均│ -- │ -- │@t22.roe_ttm│@t22.gpm │@t22.cagr3│@t22.eps │@t22.bps │@// ├────┼────┼──────┼──────┼─────┼─────┼─────┼─────┤@// │行业最大│@t23.a,wid(8)+hm │@t23.b,wid(12)+hm│@t23.roe_ttm│@t23.gpm │@t23.cagr3│@t23.eps │@t23.bps │@// ├────┼────┼──────┼──────┼─────┼─────┼─────┼─────┤@// │行业最小│@t24.a,wid(8)+hm │@t24.b,wid(12)+hm│@t24.roe_ttm│@t24.gpm │@t24.cagr3│@t24.eps │@t24.bps │@// ├────┴────┴──────┴──────┴─────┴─────┴─────┴─────┤@// ├───────────────────────────────────────────────┤@// │市场统计 │@// ├────┬────┬──────┬──────┬─────┬─────┬─────┬─────┤@// │ 排名 │股票代码│ 股票名称 │股东权益回报│ 毛利率 │三年复合增│每股收益 │每股净资产│@// │ │ │ │率ttm(%) │ ttm(%) │ 长率(%)│ttm(元) │mrq(元) │@// ├────┼────┼──────┼──────┼─────┼─────┼─────┼─────┤@// │市场平均│ -- │ -- │@t25.roe_ttm│@t25.gpm │@t25.cagr3│@t25.eps │@t25.bps │@// ├────┼────┼──────┼──────┼─────┼─────┼─────┼─────┤@// │市场最大│@t26.a,wid(8)+hm│@t26.b,wid(12)+hm │@t26.roe_ttm│@t26.gpm │@t26.cagr3│@t26.eps │@t26.bps │@// ├────┼────┼──────┼──────┼─────┼─────┼─────┼─────┤@// │市场最小│@t27.a,wid(8)+hm│@t27.b,wid(12)+hm │@t27.roe_ttm│@t27.gpm │@t27.cagr3│@t27.eps │@t27.bps │@// └────┴────┴──────┴──────┴─────┴─────┴─────┴─────┘@// ☆──@sys.code,wid(6) @{sys.abb,free}──☆ @// @// 十二.行业比较 @// @// ◆ 市场表现排名 (截止:@t1.uptime)@// @// ┌────┬────┬──────┬────┬─────┬─────┬─────┬─────┬─────┐@// │ 排名 │股票代码│ 股票名称 │周涨跌幅│1月涨跌幅 │3月涨跌幅 │6月涨跌幅 │1年涨跌幅 │3年涨跌幅 │@// │ │ │ │(%) │ (%) │(%) │(%) │(%) │(%) │@// @for f1:t1{ ├────┼────┼──────┼────┼─────┼─────┼─────┼─────┼─────┤@// │@f1._1,wid(8)+hm│@f1.a,wid(8)+hm│@f1.b,wid(12)+hm│@f1.c │@f1.d │@f1.e │@f1.f │@f1.g │@f1.h │@// @} ├────┴────┴──────┴────┴─────┴─────┴─────┴─────┴─────┤@// ├───────────────────────────────────────────────────┤@// │市场统计 │@// ├────┬────┬──────┬────┬─────┬─────┬─────┬─────┬─────┤@// │ 排名 │股票代码│ 股票名称 │周涨跌幅│1月涨跌幅 │3月涨跌幅 │6月涨跌幅 │1年涨跌幅 │3年涨跌幅 │@// │ │ │ │(%) │ (%) │(%) │(%) │(%) │(%) │@// ├────┼────┼──────┼────┼─────┼─────┼─────┼─────┼─────┤@// │市场指数│@t4.a,wid(8)+hm│@t4.b,wid(12)+hm│@t4.ctw │@t4.ctm │@t4.ct3m │@t4.ct6m │@t4.ctyr │@t4.ct3yrs│@// ├────┼────┼──────┼────┼─────┼─────┼─────┼─────┼─────┤@// │市场最大│@t2.a,wid(8)+hm│@t2.b,wid(12)+hm│@t2.ctw │@t2.ctm │@t2.ct3m │@t2.ct6m │@t2.ctyr │@t2.ct3yrs│@// ├────┼────┼──────┼────┼─────┼─────┼─────┼─────┼─────┤@// │市场最小│@t3.a,wid(8)+hm│@t3.b,wid(12)+hm│@t3.ctw │@t3.ctm │@t3.ct3m │@t3.ct6m │@t3.ctyr │@t3.ct3yrs│@// └────┴────┴──────┴────┴─────┴─────┴─────┴─────┴─────┘@// @// @// ◆ 公司规模排名 (截止:@t5.uptime)@// @// ┌────┬────┬──────┬─────┬─────┬─────┬─────┬─────┬─────┐@// │ 排名 │股票代码│ 股票名称 │港股市值 │ 总市值 │香港上市股│已发行股本│ 总收入 │ 总资产 │@// │ │ │ │(亿元) │ (亿元) │本(亿股)│(亿股) │ (亿元) │ (亿元) │@// @for f2:t5{ ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │@f2._1,wid(8)+hm│@f2.a,wid(8)+hm│@f2.b,wid(12)+hm│@f2.c │@f2.d │@f2.e │@f2.f │@f2.g │@f2.h │@// @} ├────┴────┴──────┴─────┴─────┴─────┴─────┴─────┴─────┤@// ├────────────────────────────────────────────────────┤@// │行业统计 │@// ├────┬────┬──────┬─────┬─────┬─────┬─────┬─────┬─────┤@// │ 排名 │股票代码│ 股票名称 │ 港股市值 │ 总市值 │香港上市股│已发行股本│ 总收入 │ 总资产 │@// │ │ │ │ (亿元) │ (亿元) │本(亿股)│(亿股) │ (亿元) │ (亿元) │@// ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │行业平均│-- │-- │@t6.c │@t6.d │@t6.e │@t6.f │@t6.g │@t6.h │@// ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │行业最大│@t7.a,wid(8)+hm │@t7.b,wid(12)+hm│@t7.c │@t7.d │@t7.e │@t7.f │@t7.g │@t7.h │@// ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │行业最小│@t8.a,wid(8)+hm │@t8.b,wid(12)+hm│@t8.c │@t8.d │@t8.e │@t8.f │@t8.g │@t8.h │@// ├────┴────┴──────┴─────┴─────┴─────┴─────┴─────┴─────┤@// ├────────────────────────────────────────────────────┤@// │市场统计 │@// ├────┬────┬──────┬─────┬─────┬─────┬─────┬─────┬─────┤@// │ 排名 │股票代码│ 股票名称 │ 港股市值 │ 总市值 │香港上市股│已发行股本│ 总收入 │ 总资产 │@// │ │ │ │ (亿元) │ (亿元) │本(亿股)│(亿股) │ (亿元) │ (亿元) │@// ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │市场平均│ -- │ -- │@t9.c │@t9.d │@t9.e │@t9.f │@t9.g │@t9.h │@// ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │市场最大│@t10.a,wid(8)+hm │@t10.b,wid(12)+hm│@t10.c │@t10.d │@t10.e │@t10.f │@t10.g │@t10.h │@// ├────┼────┼──────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │市场最小│@t11.a,wid(8)+hm │@t11.b,wid(12)+hm│@t11.c │@t11.d │@t11.e │@t11.f │@t11.g │@t11.h │@// └────┴────┴──────┴─────┴─────┴─────┴─────┴─────┴─────┘@// @// @// ◆ 公司估值排名 (截止:@t12.uptime)@// @// ┌────┬────┬─────┬─────┬─────┬─────┬─────┬─────┐@// │ 排名 │股票代码│ 股票名称 │市盈率ttm │市净率mrq │市销率ttm │PEG(倍) │最新收盘价│@// │ │ │ │ (倍) │(倍) │(倍) │ │ (元) │@// @for f3:t12{ ├────┼────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │@f3._1,wid(8)+hm│@f3.stkcode,wid(8)+hm│@f3.stkabb,wid(10)+hm│@f3.pe2,wid(10)│@f3.pb,wid(10)│@f3.ps,wid(10)│@f3.peg1,wid(10)│@f3.clngpr,wid(10)│@// @} ├────┴────┴─────┴─────┴─────┴─────┴─────┴─────┤@// ├─────────────────────────────────────────────┤@// │行业统计 │@// ├────┬────┬─────┬─────┬─────┬─────┬─────┬─────┤@// │ 排名 │股票代码│ 股票名称 │市盈率ttm │市净率mrq │市销率ttm │PEG(倍) │最新收盘价│@// │ │ │ │ (倍) │(倍) │(倍) │ │ (元) │@// ├────┼────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │行业平均│ -- │ -- │@t15.d │@t15.e │@t15.f │@t15.g │@t15.c │@// ├────┼────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │行业最大│@t13.a,wid(8)+hm │@t13.b,wid(10)+hm│@t13.d │@t13.e │@t13.f │@t13.g │@t13.c │@// ├────┼────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │行业最小│@t14.a,wid(8)+hm │@t14.b,wid(10)+hm│@t14.d │@t14.e │@t14.f │@t14.g │@t14.c │@// ├────┴────┴─────┴─────┴─────┴─────┴─────┴─────┤@// ├─────────────────────────────────────────────┤@// │市场统计 │@// ├────┬────┬─────┬─────┬─────┬─────┬─────┬─────┤@// │ 排名 │股票代码│ 股票名称 │市盈率ttm │市净率mrq │市销率ttm │PEG(倍) │最新收盘价│@// │ │ │ │ (倍) │(倍) │(倍) │ │ (元) │@// ├────┼────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │市场平均│ -- │ -- │@t18.d │@t18.e │@t18.f │@t18.g │@t18.c │@// ├────┼────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │市场最大│@t19.a,wid(8)+hm│@t19.b,wid(10)+hm│@t19.d │@t19.e │@t19.f │@t19.g │@t19.c │@// ├────┼────┼─────┼─────┼─────┼─────┼─────┼─────┤@// │市场最小│@t20.a,wid(8)+hm│@t20.b,wid(10)+hm│@t20.d │@t20.e │@t20.f │@t20.g │@t20.c │@// └────┴────┴─────┴─────┴─────┴─────┴─────┴─────┘@// @// @// ◆ 公司财务状态排名 (截止:@t21.uptime)@// @// ┌────┬────┬──────┬──────┬─────┬─────┬─────┬─────┐@// │ 排名 │股票代码│ 股票名称 │股东权益回报│经营利润率│三年复合增│每股收益 │每股净资产│@// │ │ │ │率ttm(%) │ttm(%) │ 长率(%)│ttm(元) │mrq(元) │@// @for f4:t21{ ├────┼────┼──────┼──────┼─────┼─────┼─────┼─────┤@// │@f4._1,wid(8)+hm │@f4.stkcode,wid(8)+hm│@f4.stkabb,wid(12)+hm│@f4.roe_ttm,wid(12)│@f4.opemg,wid(10)│@f4.cagr3yav,wid(10)│@f4.eps,wid(10)│@f4.bps,wid(10)│@// @} ├────┴────┴──────┴──────┴─────┴─────┴─────┴─────┤@// ├───────────────────────────────────────────────┤@// │行业统计 │@// ├────┬────┬──────┬──────┬─────┬─────┬─────┬─────┤@// │ 排名 │股票代码│ 股票名称 │股东权益回报│经营利润率│三年复合增│每股收益 │每股净资产│@// │ │ │ │率ttm(%) │ttm(%) │ 长率(%)│ttm(元) │mrq(元) │@// ├────┼────┼──────┼──────┼─────┼─────┼─────┼─────┤@// │行业平均│ -- │ -- │@t22.roe_ttm│@t22.opemg│@t22.cagr3│@t22.eps │@t22.bps │@// ├────┼────┼──────┼──────┼─────┼─────┼─────┼─────┤@// │行业最大│@t23.a,wid(8)+hm │@t23.b,wid(12)+hm│@t23.roe_ttm│@t23.opemg│@t23.cagr3│@t23.eps │@t23.bps │@// ├────┼────┼──────┼──────┼─────┼─────┼─────┼─────┤@// │行业最小│@t24.a,wid(8)+hm │@t24.b,wid(12)+hm│@t24.roe_ttm│@t24.opemg│@t24.cagr3│@t24.eps │@t24.bps │@// ├────┴────┴──────┴──────┴─────┴─────┴─────┴─────┤@// ├───────────────────────────────────────────────┤@// │市场统计 │@// ├────┬────┬──────┬──────┬─────┬─────┬─────┬─────┤@// │ 排名 │股票代码│ 股票名称 │股东权益回报│经营利润率│三年复合增│每股收益 │每股净资产│@// │ │ │ │率ttm(%) │ttm(%) │ 长率(%)│ttm(元) │mrq(元) │@// ├────┼────┼──────┼──────┼─────┼─────┼─────┼─────┤@// │市场平均│ -- │ -- │@t25.roe_ttm│@t25.opemg│@t25.cagr3│@t25.eps │@t25.bps │@// ├────┼────┼──────┼──────┼─────┼─────┼─────┼─────┤@// │市场最大│@t26.a,wid(8)+hm │@t26.b,wid(12)+hm│@t26.roe_ttm│@t26.opemg│@t26.cagr3│@t26.eps │@t26.bps │@// ├────┼────┼──────┼──────┼─────┼─────┼─────┼─────┤@// │市场最小│@t27.a,wid(8)+hm │@t27.b,wid(12)+hm│@t27.roe_ttm│@t27.opemg│@t27.cagr3│@t27.eps │@t27.bps │@// └────┴────┴──────┴──────┴─────┴─────┴─────┴─────┘@// @{t2.CODE.comp,free};@{,split}@{t3.ABB.comp,free} @for tm:t3{ ts: @tm.s1 ts2:@tm.s2 | @} -- 行业比较-市场表现排名-行业排名 set @stkcode=00002; set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); set @stkunicode=(select stkunicode from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select a.edate as uptime, -- 截止时间 b.stkcode as a, -- 股票代码 b.stkabb as b, -- 简称 a.prchraterctw as c, -- 近一周涨跌幅 % a.prchraterctm as d, -- 近1月涨跌幅 % a.prchraterct3m as e, -- 近3月涨跌幅 % a.prchraterct6m as f, -- 近6月涨跌幅 % a.prchraterctyr as g, -- 近1年涨跌幅 % a.prchraterct3yrs as h -- 近3年涨跌幅 % from pgenius.hk_idc_stkpfmidc a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.stkunicode=b.stkunicode and b.comunic=c.comunic -- 公司关联 and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级 and a.edate=(select max(edate) from pgenius.hk_idc_stkpfmidc where stkunicode=@stkunicode) order by a.prchraterctw desc
-- 市场最大个股 set @stkunicode=(select stkunicode from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select a.edate as uptime, -- 截止时间 b.stkcode as a, -- 股票代码 b.stkabb as b , -- 简称 a.prchraterctw as ctw, -- 近一周涨跌幅 % a.prchraterctm as ctm, -- 近1月涨跌幅 % a.prchraterct3m as ct3m, -- 近3月涨跌幅 % a.prchraterct6m as ct6m, -- 近6月涨跌幅 % a.prchraterctyr as ctyr, -- 近1年涨跌幅 % a.prchraterct3yrs as ct3yrs -- 近3年涨跌幅 % from pgenius.hk_idc_stkpfmidc a, pgenius.hk_stkcode b where a.stkunicode=b.stkunicode and b.stktyrefc=1 and b.lssturefc=1 and a.prchraterctw is not null and a.edate=(select max(edate) from pgenius.hk_idc_stkpfmidc where stkunicode=@stkunicode) order by prchraterctw desc limit 1
-- 市场最小个股 set @stkunicode=(select stkunicode from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select a.edate as uptime, -- 截止时间 b.stkcode as a, -- 股票代码 b.stkabb as b, -- 简称 a.prchraterctw as ctw, -- 近一周涨跌幅 % a.prchraterctm as ctm, -- 近1月涨跌幅 % a.prchraterct3m as ct3m, -- 近3月涨跌幅 % a.prchraterct6m as ct6m, -- 近6月涨跌幅 % a.prchraterctyr as ctyr, -- 近1年涨跌幅 % a.prchraterct3yrs as ct3yrs-- 近3年涨跌幅 % from pgenius.hk_idc_stkpfmidc a, pgenius.hk_stkcode b where a.stkunicode=b.stkunicode and b.stktyrefc=1 and b.lssturefc=1 and a.prchraterctw is not null and a.edate=(select max(edate) from pgenius.hk_idc_stkpfmidc where stkunicode=@stkunicode) order by prchraterctw asc limit 1
-- 市场指数 select trdate as uptime, -- 截止时间 'hsi.hk' as a, '恒生指数' as b, prchraterctw as ctw, -- 近一周涨跌幅 % prchraterctm as ctm, -- 近1月涨跌幅 % prchraterct3m as ct3m, -- 近3月涨跌幅 % prchraterct6m as ct6m, -- 近6月涨跌幅 % prchraterctyr as ctyr, -- 近1年涨跌幅 % prchraterct3yrs as ct3yrs -- 近3年涨跌幅 % from pgenius.hk_idc_idxpfmidc where trdate =(select max(trdate) from pgenius.hk_idc_idxpfmidc where idxunic=115000012) and idxunic=115000012 -- 恒生指数
-- 公司规模排名 set @stkcode =00002; -- 香港中华煤气 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select curdate() as uptime, -- 截止时间 b.stkcode as a,-- 股票代码 b.stkabb as b, -- 股票名称 a.tmkcap as c, -- 港股市值(亿元) a.mkcapflsh as d, -- 总市值(亿元) a.share3 as e, -- 香港上市股本(亿股) a.share4 as f, -- 已发行股本(亿股) a.tto as g, -- 总收入(亿元) a.ta as h-- 总资产(亿元) from hkf10.hk_com_mkt_stat a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.stkunicode=b.stkunicode and b.comunic=c.comunic -- 公司关联 and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级 and a.tmkcap is not null order by a.tmkcap desc
-- 行业平均 set @stkcode =00002; -- 香港中华煤气 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select curdate() as uptime, -- 截止时间 '行业平均', -- 排名 '--' as stkcode,-- 股票代码 '--' as stkabb, -- 股票名称 avg(a.tmkcap) as c, -- 港股市值(亿元) avg(a.mkcapflsh) as d, -- 总市值(亿元) avg(a.share3) as e, -- 香港上市股本(亿股) avg(a.share4) as f, -- 已发行股本(亿股) avg(a.tto) as g, -- 总收入(亿元) avg(a.ta) as h -- 总资产(亿元) from hkf10.hk_com_mkt_stat a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.stkunicode=b.stkunicode and b.comunic=c.comunic -- 公司关联 and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级
-- 行业最大 set @stkcode =00002; -- 香港中华煤气 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select curdate() as uptime, -- 截止时间 '行业最大', -- 排名 b.stkcode as a,-- 股票代码 b.stkabb as b, -- 股票名称 a.tmkcap as c, -- 港股市值(亿元) a.mkcapflsh as d, -- 总市值(亿元) a.share3 as e, -- 香港上市股本(亿股) a.share4 as f, -- 已发行股本(亿股) a.tto as g, -- 总收入(亿元) a.ta as h-- 总资产(亿元) from hkf10.hk_com_mkt_stat a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.stkunicode=b.stkunicode and b.comunic=c.comunic -- 公司关联 and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级 and a.tmkcap is not null order by a.tmkcap desc limit 1
-- 行业最小 set @stkcode =00002; -- 香港中华煤气 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select curdate() as uptime, -- 截止时间 '行业最小', -- 排名 b.stkcode as a,-- 股票代码 b.stkabb as b, -- 股票名称 a.tmkcap as c, -- 港股市值(亿元) a.mkcapflsh as d, -- 总市值(亿元) a.share3 as e, -- 香港上市股本(亿股) a.share4 as f, -- 已发行股本(亿股) a.tto as g, -- 总收入(亿元) a.ta as h-- 总资产(亿元) from hkf10.hk_com_mkt_stat a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.stkunicode=b.stkunicode and b.comunic=c.comunic -- 公司关联 and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级 and a.tmkcap is not null order by a.tmkcap asc limit 1
-- 市场统计 -- 平均 select curdate() as uptime, -- 截止时间 '市场平均', -- 排名, '--' as stkcode, -- 股票代码 '--' as stkabb, -- 股票名称 avg(tmkcap) as c, -- 港股市值(亿元) avg(mkcapflsh) as d, -- 总市值(亿元) avg(share3)as e, -- 香港上市股本(亿股) avg(share4) as f, -- 已发行股本(亿股) avg(tto) as g, -- 总收入(亿元) avg(ta) as h -- 总资产(亿元) from hkf10.hk_com_mkt_stat a, pgenius.hk_stkcode b where 1=1 and a.stkunicode=b.stkunicode and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股
-- 市场最大 select curdate() as uptime, -- 截止时间 '市场最大' as 排名, b.stkcode as a,-- 股票代码 b.stkabb as b, -- 股票名称 a.tmkcap as c, -- 港股市值(亿元) a.mkcapflsh as d, -- 总市值(亿元) a.share3 as e, -- 香港上市股本(亿股) a.share4 as f, -- 已发行股本(亿股) a.tto as g, -- 总收入(亿元) a.ta as h-- 总资产(亿元) from hkf10.hk_com_mkt_stat a, pgenius.hk_stkcode b where 1=1 and a.stkunicode=b.stkunicode and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and a.tmkcap is not null order by a.tmkcap desc limit 1
-- 市场最小 select curdate() as uptime, -- 截止时间 '市场最小' as 排名, b.stkcode as a,-- 股票代码 b.stkabb as b, -- 股票名称 a.tmkcap as c, -- 港股市值(亿元) a.mkcapflsh as d, -- 总市值(亿元) a.share3 as e, -- 香港上市股本(亿股) a.share4 as f, -- 已发行股本(亿股) a.tto as g, -- 总收入(亿元) a.ta as h-- 总资产(亿元) from hkf10.hk_com_mkt_stat a, pgenius.hk_stkcode b where 1=1 and a.stkunicode=b.stkunicode and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and a.tmkcap is not null order by a.tmkcap asc limit 1
-- 公司估值排名 set @stkcode =00002; -- 香港中华煤气 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); set @stkunicode=(select stkunicode from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select a.EDATE as uptime , -- 截止时间 b.stkcode, -- 股票代码 b.stkabb, -- 简称 a.clngpr, -- 最新收盘价 a.pe2, -- 市盈率ttm a.pb , -- 市净率ttm 倍 a.ps , -- 市销率ttm a.peg1 -- peg from pgenius.hk_idc_stkvidc a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.stkunicode=b.stkunicode and b.comunic=c.comunic -- 关联 and a.EDATE=(select max(EDATE) from pgenius.hk_idc_stkvidc where STKUNICODE=@STKUNICODE) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级 order by a.pe2 desc
-- 行业统计 set @stkcode =00003; -- 香港中华煤气 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); set @stkunicode=(select stkunicode from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select a.EDATE as uptime , -- 截止时间 '行业最大', -- 排名 b.stkcode as a, -- 股票代码 b.stkabb as b, -- 简称 a.clngpr as c, -- 最新收盘价 a.pe2 as d, -- 市盈率ttm a.pb as e, -- 市净率ttm 倍 a.ps as f, -- 市销率ttm a.peg1 as g-- peg from pgenius.hk_idc_stkvidc a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.stkunicode=b.stkunicode and b.comunic=c.comunic and a.EDATE=(select max(EDATE) from pgenius.hk_idc_stkvidc where STKUNICODE=@STKUNICODE) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级 and a.pe2 is not null order by a.pe2 desc limit 1
-- 行业最小 set @stkcode =00002; -- 香港中华煤气 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); set @stkunicode=(select stkunicode from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select a.EDATE as uptime , -- 截止时间 '行业最小' , -- 排名 b.stkcode as a, -- 股票代码 b.stkabb as b, -- 简称 a.clngpr as c, -- 最新收盘价 a.pe2 as d, -- 市盈率ttm a.pb as e, -- 市净率ttm 倍 a.ps as f, -- 市销率ttm a.peg1 as g-- peg from pgenius.hk_idc_stkvidc a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.stkunicode=b.stkunicode and b.comunic=c.comunic -- 关联 and a.EDATE=(select max(EDATE) from pgenius.hk_idc_stkvidc where STKUNICODE=@STKUNICODE) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级 and a.pe2 is not null order by a.pe2 asc limit 1
-- 行业平均--公司估值 set @stkcode =00002; -- 香港中华煤气 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); set @stkunicode=(select stkunicode from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select a.EDATE as uptime , -- 截止时间 '行业平均', -- 排名 '--' as stkcode, -- 股票代码 '--' as stkabb, -- 简称 avg(a.clngpr) as c, -- 最新收盘价 avg(a.pe2) as d, -- 市盈率ttm 倍 avg(a.pb) as e, -- 市净率ttm 倍 avg(a.PS) as f, -- 市销率ttm 倍 avg(a.peg1) as g-- peg from pgenius.hk_idc_stkvidc a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.stkunicode=b.stkunicode and b.comunic=c.comunic -- 关联 and a.EDATE=(select max(EDATE) from pgenius.hk_idc_stkvidc where STKUNICODE=@STKUNICODE) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级
-- 市场平均--公司估值 set @stkunicode=(select stkunicode from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select a.EDATE as uptime , -- 截止时间 '市场平均', -- 排名 '--' as stkcode, -- 股票代码 '--' as stkabb, -- 简称 avg(a.clngpr) as c, -- 最新收盘价 avg(a.pe2) as d, -- 市盈率ttm 倍 avg(a.pb) as e, -- 市净率ttm 倍 avg(a.PS) as f, -- 市销率ttm 倍 avg(a.peg1) as g-- peg from pgenius.hk_idc_stkvidc a, pgenius.hk_stkcode b where 1=1 and a.stkunicode=b.stkunicode -- 关联 and a.EDATE=(select max(EDATE) from pgenius.hk_idc_stkvidc where STKUNICODE=@STKUNICODE) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and a.pe2 is not null
-- 市场最大--公司估值 set @stkunicode=(select stkunicode from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select a.EDATE as uptime , -- 截止时间 '市场最大', -- 排名 b.stkcode as a, -- 股票代码 b.stkabb as b, -- 简称 a.clngpr as c, -- 最新收盘价 a.pe2 as d, -- 市盈率ttm 倍 a.pb as e, -- 市净率ttm 倍 a.PS as f, -- 市销率ttm 倍 a.peg1 as g-- peg from pgenius.hk_idc_stkvidc a, pgenius.hk_stkcode b where 1=1 and a.stkunicode=b.stkunicode -- 关联 and a.EDATE=(select max(EDATE) from pgenius.hk_idc_stkvidc where STKUNICODE=@STKUNICODE) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and a.pe2 is not null order by a.pe2 desc limit 1
-- 市场最小--公司估值 set @stkunicode=(select stkunicode from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select a.EDATE as uptime , -- 截止时间 '市场最小', -- 排名 b.stkcode as a, -- 股票代码 b.stkabb as b, -- 简称 a.clngpr as c, -- 最新收盘价 a.pe2 as d, -- 市盈率ttm 倍 a.pb as e, -- 市净率ttm 倍 a.PS as f, -- 市销率ttm 倍 a.peg1 as g -- peg from pgenius.hk_idc_stkvidc a, pgenius.hk_stkcode b where 1=1 and a.stkunicode=b.stkunicode -- 关联 and a.EDATE=(select max(EDATE) from pgenius.hk_idc_stkvidc where STKUNICODE=@STKUNICODE) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and a.pe2 is not null order by a.pe2 Asc limit 1
-- 1、非金融公司公司财务状况-排名 set @stkcode=00002; set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select (select case when DATE_FORMAT(max(EDATE),'%y%d')>=6030 then CONCAT(year(max(EDATE)),'年度数据') when DATE_FORMAT(max(EDATE),'%y%d')<6030 then CONCAT(year(max(EDATE))-1,'年度数据') end as uptime from pgenius.hk_ana_stk_idx_nfin where COMUNIC=@comunic ) as uptime, b.stkcode, -- 股票代码 b.stkabb, -- 简称 a.epsned_ttm as eps, -- 每股收益ttm 元/每股 a.bpsned_ttm as bps, -- a每股净资产mrq 元/每股 a.roe_ttm, -- 股东权益回报率ttm % a.gpm as gpm, -- 毛利率ttm % a.neapacom_cagr3yav as cagr3yav -- 三年复合增长率 % from pgenius.hk_ana_stk_idx_nfin a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.comunic=b.comunic and a.comunic=c.comunic -- 公司关联 and a.RPTSOUREFC=17 and a.EDATE=(select max(EDATE) from pgenius.hk_ana_stk_idx_nfin where COMUNIC=a.COMUNIC and RPTSOUREFC=17) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级 order by a.roe_ttm desc
-- 2、金融公司公司财务状况-排名 set @stkcode =01988; set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select (select case when DATE_FORMAT(max(EDATE),'%y%d')>=6030 then CONCAT(year(max(EDATE)),'年度数据') when DATE_FORMAT(max(EDATE),'%y%d')<6030 then CONCAT(year(max(EDATE))-1,'年度数据') end as uptime from pgenius.hk_ana_stk_idx_fin where COMUNIC=@comunic ) as uptime, b.stkcode, -- 股票代码 b.stkabb, -- 简称 a.epsned_ttm as eps, -- 每股收益ttm 元/每股 a.bpsned_ttm as bps, -- a每股净资产mrq 元/每股 a.roe_ttm, -- 股东权益回报率ttm % a.opemg_ttm as opemg, -- 经营利润率ttm % a.neapacom_cagr3yav as cagr3yav -- 三年复合增长率 % from pgenius.hk_ana_stk_idx_fin a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.comunic=b.comunic and a.comunic=c.comunic -- 公司关联 and a.RPTSOUREFC=17 and a.EDATE=(select max(EDATE) from pgenius.hk_ana_stk_idx_fin where COMUNIC=a.comunic and RPTSOUREFC=17) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级 order by a.roe_ttm desc
-- 非金融公司公司财务状况--行业平均 set @stkcode=00002; set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select (select case when DATE_FORMAT(max(EDATE),'%y%d')>=6030 then CONCAT(year(max(EDATE)),'年度数据') when DATE_FORMAT(max(EDATE),'%y%d')<6030 then CONCAT(year(max(EDATE))-1,'年度数据') end as uptime from pgenius.hk_ana_stk_idx_nfin where COMUNIC=@comunic ) as uptime, '行业平均', -- 排名 '--' as stkcode, -- 股票代码 '--' as stkabb, -- 简称 avg(a.epsned_ttm) as eps, -- 每股收益ttm 元/每股 avg(a.bpsned_ttm) as bps, -- a每股净资产mrq 元/每股 avg(a.roe_ttm) as roe_ttm, -- 股东权益回报率ttm % avg(a.gpm) as gpm, -- 毛利率ttm % avg(a.neapacom_cagr3yav) as cagr3 -- 三年复合增长率 % from pgenius.hk_ana_stk_idx_nfin a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.comunic=b.comunic and a.comunic=c.comunic -- 公司关联 and a.RPTSOUREFC=17 and a.EDATE=(select max(EDATE) from pgenius.hk_ana_stk_idx_nfin where COMUNIC=a.COMUNIC and RPTSOUREFC=17) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级
-- 金融公司公司财务状况--行业平均 set @stkcode =03328; -- 香港中华煤气 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select (select case when DATE_FORMAT(max(EDATE),'%y%d')>=6030 then CONCAT(year(max(EDATE)),'年度数据') when DATE_FORMAT(max(EDATE),'%y%d')<6030 then CONCAT(year(max(EDATE))-1,'年度数据') end as uptime from pgenius.hk_ana_stk_idx_fin where COMUNIC=@comunic ) as uptime, '行业平均', -- 排名 '--' stkcode, -- 股票代码 '--' tkabb, -- 简称 avg(a.epsned_ttm) as eps, -- 每股收益ttm 仙/股 avg(a.bpsned_ttm) as bps, -- a每股净资产mrq 元/每股 avg(a.roe_ttm) as roe_ttm, -- 股东权益回报率ttm % avg(a.opemg_ttm) as opemg, -- 经营利润率ttm % avg(a.neapacom_cagr3yav) as cagr3 -- 三年复合增长率 % from pgenius.hk_ana_stk_idx_fin a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.comunic=b.comunic and a.comunic=c.comunic -- 公司关联 and a.RPTSOUREFC=17 and a.EDATE=(select max(EDATE) from pgenius.hk_ana_stk_idx_fin where COMUNIC=a.comunic and RPTSOUREFC=17) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级
-- 非金融公司公司财务状况--行业最大 set @stkcode=00002; set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select (select case when DATE_FORMAT(max(EDATE),'%y%d')>=6030 then CONCAT(year(max(EDATE)),'年度数据') when DATE_FORMAT(max(EDATE),'%y%d')<6030 then CONCAT(year(max(EDATE))-1,'年度数据') end as uptime from pgenius.hk_ana_stk_idx_nfin where COMUNIC=@comunic ) as uptime, '行业最大', -- 排名 b.stkcode as a, -- 股票代码 b.stkabb as b, -- 简称 a.epsned_ttm as eps, -- 每股收益ttm 元/每股 a.bpsned_ttm as bps, -- a每股净资产mrq 元/每股 a.roe_ttm, -- 股东权益回报率ttm % a.gpm as gpm, -- 毛利率ttm % a.neapacom_cagr3yav as cagr3 -- 三年复合增长率 % from pgenius.hk_ana_stk_idx_nfin a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.comunic=b.comunic and a.comunic=c.comunic -- 公司关联 and a.RPTSOUREFC=17 and a.EDATE=(select max(EDATE) from pgenius.hk_ana_stk_idx_nfin where COMUNIC=a.COMUNIC and RPTSOUREFC=17) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级 order by a.roe_ttm desc limit 1
-- 金融公司公司财务状况--行业最大 set @stkcode =03328; -- 香港中华煤气 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select (select case when DATE_FORMAT(max(EDATE),'%y%d')>=6030 then CONCAT(year(max(EDATE)),'年度数据') when DATE_FORMAT(max(EDATE),'%y%d')<6030 then CONCAT(year(max(EDATE))-1,'年度数据') end as uptime from pgenius.hk_ana_stk_idx_fin where COMUNIC=@comunic ) as uptime, '行业最大', -- 排名 b.stkcode as a, -- 股票代码 b.stkabb as b, -- 简称 a.epsned_ttm as eps, -- 每股收益ttm 元/每股 a.bpsned_ttm as bps, -- a每股净资产mrq 元/每股 a.roe_ttm, -- 股东权益回报率ttm % a.opemg_ttm as opemg, -- 经营利润率ttm % a.neapacom_cagr3yav as cagr3 -- 三年复合增长率 % from pgenius.hk_ana_stk_idx_fin a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.comunic=b.comunic and a.comunic=c.comunic -- 公司关联 and a.RPTSOUREFC=17 and a.EDATE=(select max(EDATE) from pgenius.hk_ana_stk_idx_fin where COMUNIC=a.comunic and RPTSOUREFC=17) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级 order by a.roe_ttm desc limit 1
-- 非金融公司公司财务状况--行业最小 set @stkcode=00002; set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select (select case when DATE_FORMAT(max(EDATE),'%y%d')>=6030 then CONCAT(year(max(EDATE)),'年度数据') when DATE_FORMAT(max(EDATE),'%y%d')<6030 then CONCAT(year(max(EDATE))-1,'年度数据') end as uptime from pgenius.hk_ana_stk_idx_nfin where COMUNIC=@comunic ) as uptime, '行业最小', -- 排名 b.stkcode as a, -- 股票代码 b.stkabb as b, -- 简称 a.epsned_ttm as eps, -- 每股收益ttm 元/每股 a.bpsned_ttm as bps, -- a每股净资产mrq 元/每股 a.roe_ttm, -- 股东权益回报率ttm % a.gpm as gpm, -- 毛利率ttm % a.neapacom_cagr3yav as cagr3 -- 三年复合增长率 % from pgenius.hk_ana_stk_idx_nfin a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.comunic=b.comunic and a.comunic=c.comunic -- 公司关联 and a.RPTSOUREFC=17 and a.EDATE=(select max(EDATE) from pgenius.hk_ana_stk_idx_nfin where COMUNIC=a.COMUNIC and RPTSOUREFC=17) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级 order by a.roe_ttm asc limit 1
-- 金融公司公司财务状况--行业最小 set @stkcode =03328; -- 香港中华煤气 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select (select case when DATE_FORMAT(max(EDATE),'%y%d')>=6030 then CONCAT(year(max(EDATE)),'年度数据') when DATE_FORMAT(max(EDATE),'%y%d')<6030 then CONCAT(year(max(EDATE))-1,'年度数据') end as uptime from pgenius.hk_ana_stk_idx_fin where COMUNIC=@comunic ) as uptime, '行业最小', -- 排名 b.stkcode as a, -- 股票代码 b.stkabb as b, -- 简称 a.epsned_ttm as eps, -- 每股收益ttm 元/每股 a.bpsned_ttm as bps, -- a每股净资产mrq 元/每股 a.roe_ttm, -- 股东权益回报率ttm % a.opemg_ttm as opemg, -- 经营利润率ttm % a.neapacom_cagr3yav as cagr3 -- 三年复合增长率 % from pgenius.hk_ana_stk_idx_fin a, pgenius.hk_stkcode b, hkf10.hk_indchcom c where 1=1 and a.comunic=b.comunic and a.comunic=c.comunic -- 公司关联 and a.RPTSOUREFC=17 and a.EDATE=(select max(EDATE) from pgenius.hk_ana_stk_idx_fin where COMUNIC=a.comunic and RPTSOUREFC=17) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 and left(c.indu_code,6)=(select left(indu_code,6) indu_code from hkf10.hk_indchcom where comunic=@comunic) -- 同行业恒生2级 order by a.roe_ttm Asc limit 1
-- 非金融公司公司财务状况--市场平均 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select (select case when DATE_FORMAT(max(EDATE),'%y%d')>=6030 then CONCAT(year(max(EDATE)),'年度数据') when DATE_FORMAT(max(EDATE),'%y%d')<6030 then CONCAT(year(max(EDATE))-1,'年度数据') end as uptime from pgenius.hk_ana_stk_idx_nfin where COMUNIC=@comunic ) as uptime, '市场平均', -- 排名 '--' as stkcode, -- 股票代码 '--' as stkabb, -- 简称 avg(a.epsned_ttm) as eps, -- 每股收益ttm 元/每股 avg(a.bpsned_ttm) as bps, -- a每股净资产mrq 元/每股 avg(a.roe_ttm) as roe_ttm, -- 股东权益回报率ttm % avg(a.gpm) as gpm, -- 毛利率ttm % avg(a.neapacom_cagr3yav) as cagr3 -- 三年复合增长率 % from pgenius.hk_ana_stk_idx_nfin a, pgenius.hk_stkcode b where 1=1 and a.comunic=b.comunic -- 公司关联 and a.RPTSOUREFC=17 and a.EDATE=(select max(EDATE) from pgenius.hk_ana_stk_idx_nfin where COMUNIC=a.COMUNIC and RPTSOUREFC=17) and b.stktyrefc=1 and b.lssturefc=1; -- 在市普通股
-- 金融公司公司财务状况--市场平均 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select (select case when DATE_FORMAT(max(EDATE),'%y%d')>=6030 then CONCAT(year(max(EDATE)),'年度数据') when DATE_FORMAT(max(EDATE),'%y%d')<6030 then CONCAT(year(max(EDATE))-1,'年度数据') end as uptime from pgenius.hk_ana_stk_idx_fin where COMUNIC=@comunic ) as uptime, '市场平均', -- 排名 '--' stkcode, -- 股票代码 '--' tkabb, -- 简称 avg(a.epsned_ttm) as eps, -- 每股收益ttm 仙/股 avg(a.bpsned_ttm) as bps, -- a每股净资产mrq 元/每股 avg(a.roe_ttm) as roe_ttm, -- 股东权益回报率ttm % avg(a.opemg_ttm) as opemg, -- 经营利润率ttm % avg(a.neapacom_cagr3yav) as cagr3 -- 三年复合增长率 % from pgenius.hk_ana_stk_idx_fin a, pgenius.hk_stkcode b where 1=1 and a.comunic=b.comunic and a.RPTSOUREFC=17 and a.EDATE=(select max(EDATE) from pgenius.hk_ana_stk_idx_fin where COMUNIC=a.comunic and RPTSOUREFC=17) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股
-- 非金融公司公司财务状况--市场最大 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select (select case when DATE_FORMAT(max(EDATE),'%y%d')>=6030 then CONCAT(year(max(EDATE)),'年度数据') when DATE_FORMAT(max(EDATE),'%y%d')<6030 then CONCAT(year(max(EDATE))-1,'年度数据') end as uptime from pgenius.hk_ana_stk_idx_nfin where COMUNIC=@comunic ) as uptime, '市场最大', -- 排名 b.stkcode as a, -- 股票代码 b.stkabb as b, -- 简称 a.epsned_ttm as eps, -- 每股收益ttm 元/每股 a.bpsned_ttm as bps, -- a每股净资产mrq 元/每股 a.roe_ttm, -- 股东权益回报率ttm % a.gpm as gpm, -- 毛利率ttm % a.neapacom_cagr3yav as cagr3 -- 三年复合增长率 % from pgenius.hk_ana_stk_idx_nfin a, pgenius.hk_stkcode b where 1=1 and a.comunic=b.comunic -- 公司关联 and a.RPTSOUREFC=17 and a.EDATE=(select max(EDATE) from pgenius.hk_ana_stk_idx_nfin where COMUNIC=a.COMUNIC and RPTSOUREFC=17) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 order by a.roe_ttm desc limit 1
-- 金融公司公司财务状况--市场最大 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select (select case when DATE_FORMAT(max(EDATE),'%y%d')>=6030 then CONCAT(year(max(EDATE)),'年度数据') when DATE_FORMAT(max(EDATE),'%y%d')<6030 then CONCAT(year(max(EDATE))-1,'年度数据') end as uptime from pgenius.hk_ana_stk_idx_fin where COMUNIC=@comunic ) as uptime, '市场最大', -- 排名 b.stkcode as a, -- 股票代码 b.stkabb as b, -- 简称 a.epsned_ttm as eps, -- 每股收益ttm 元/每股 a.bpsned_ttm as bps, -- a每股净资产mrq 元/每股 a.roe_ttm, -- 股东权益回报率ttm % a.opemg_ttm as opemg, -- 经营利润率ttm % a.neapacom_cagr3yav as cagr3 -- 三年复合增长率 % from pgenius.hk_ana_stk_idx_fin a, pgenius.hk_stkcode b where 1=1 and a.comunic=b.comunic and a.RPTSOUREFC=17 and a.EDATE=(select max(EDATE) from pgenius.hk_ana_stk_idx_fin where COMUNIC=a.comunic and RPTSOUREFC=17) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 order by a.roe_ttm desc limit 1
-- 非金融公司公司财务状况--市场最小 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select (select case when DATE_FORMAT(max(EDATE),'%y%d')>=6030 then CONCAT(year(max(EDATE)),'年度数据') when DATE_FORMAT(max(EDATE),'%y%d')<6030 then CONCAT(year(max(EDATE))-1,'年度数据') end as uptime from pgenius.hk_ana_stk_idx_nfin where COMUNIC=@comunic ) as uptime, '市场最小', -- 排名 b.stkcode as a, -- 股票代码 b.stkabb as b, -- 简称 a.epsned_ttm as eps, -- 每股收益ttm 元/每股 a.bpsned_ttm as bps, -- a每股净资产mrq 元/每股 a.roe_ttm, -- 股东权益回报率ttm % a.gpm as gpm, -- 毛利率ttm % a.neapacom_cagr3yav as cagr3 -- 三年复合增长率 % from pgenius.hk_ana_stk_idx_nfin a, pgenius.hk_stkcode b where 1=1 and a.comunic=b.comunic -- 公司关联 and a.RPTSOUREFC=17 and a.EDATE=(select max(EDATE) from pgenius.hk_ana_stk_idx_nfin where COMUNIC=a.COMUNIC and RPTSOUREFC=17) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 order by a.roe_ttm asc limit 1
-- 金融公司公司财务状况--市场最小 set @comunic=(select comunic from pgenius.hk_stkcode where stkcode=@stkcode and lssturefc=1); select (select case when DATE_FORMAT(max(EDATE),'%y%d')>=6030 then CONCAT(year(max(EDATE)),'年度数据') when DATE_FORMAT(max(EDATE),'%y%d')<6030 then CONCAT(year(max(EDATE))-1,'年度数据') end as uptime from pgenius.hk_ana_stk_idx_fin where COMUNIC=@comunic ) as uptime, '市场最小', -- 排名 b.stkcode as a, -- 股票代码 b.stkabb as b, -- 简称 a.epsned_ttm as eps, -- 每股收益ttm 元/每股 a.bpsned_ttm as bps, -- a每股净资产mrq 元/每股 a.roe_ttm, -- 股东权益回报率ttm % a.opemg_ttm as opemg, -- 经营利润率ttm % a.neapacom_cagr3yav as cagr3 -- 三年复合增长率 % from pgenius.hk_ana_stk_idx_fin a, pgenius.hk_stkcode b where 1=1 and a.comunic=b.comunic and a.RPTSOUREFC=17 and a.EDATE=(select max(EDATE) from pgenius.hk_ana_stk_idx_fin where COMUNIC=a.comunic and RPTSOUREFC=17) and b.stktyrefc=1 and b.lssturefc=1 -- 在市普通股 order by a.roe_ttm asc limit 1