五.股本结构 ◆ 最新股本结构 ┌──────────────────────────┐ │已发行和缴纳股本: │ ├─────────────┬────────────┤ │已发行普通(万股) │3288402.73 │ │ │ │ ├─────────────┼────────────┤ │ 已发行港股普通股(万股)│577798.28 │ ├─────────────┼────────────┤ │ 内资股普通股(万股) │2710604.45 │ ├─────────────┼────────────┤ │ 非H股外资普通股(万股) │- │ ├─────────────┼────────────┤ │已发行优先股(万股) │- │ │─────────────┼────────────┤ │法定股本: │ │ ├─────────────┼────────────┤ │普通股(万股) │- │ ├─────────────┼────────────┤ │优先股(万股) │- │ └─────────────┴────────────┘ ◆ 历年股本变化表 ┌──────┬───────┬────────┬──────┐ │变动日期 │法定股本(股)│已发行股本(股)│变动原因 │ ├──────┼───────┼────────┼──────┤ │2014-4-14 │- │ 34039632051 │配售新股 │ ├──────┼───────┼────────┼──────┤ │2014-6-12 │- │ 29521890743 │ 供股 │ ├──────┼───────┼────────┼──────┤ │2014-5-31 │ │ │ │ ├──────┼───────┼────────┼──────┤ │2014-3-31 │ │ │ │ └──────┴───────┴────────┴──────┘ ☆──@sys.code,wid(6) @{sys.abb,free}──☆ @// @// 六.股本结构 @// @// ◆ 最新股本结构 @// ┌──────────────────────────┐@// │已发行和缴纳股本: │@// ├─────────────┬────────────┤@// │已发行普通(万股) │@t1.tot_shr │@// ├─────────────┼────────────┤@// │ 已发行港股普通股(万股)│@t2(pi=1).num │@//****需要取某行某列的值 01988 ├─────────────┼────────────┤@// │ 内资股普通股(万股) │@t2(pi=2).num │@//****需要取某行某列的值 ├─────────────┼────────────┤@// │ 非H股外资普通股(万股) │@t2(pi=3).num │@//****需要取某行某列的值 ├─────────────┼────────────┤@// │已发行优先股(万股) │@t3.tot_shr │@// │─────────────┼────────────┤@// │法定股本: │ │@// ├─────────────┼────────────┤@// │普通股(万股) │@t4.tot_shr │@// ├─────────────┼────────────┤@// │优先股(万股) │@t5.tot_shr │@// └─────────────┴────────────┘@// @// ◆ 历年股本变化表 @// @if t6..hasdata:else{ ┌──────┬───────┬────────┬──────┐@// │ 变动日期 │ 法定股本 │ 已发行股本 │ 变动原因 │@// │ │ (百万股) │ (百万股) │ │@// @for f1:t6{ ├──────┼───────┼────────┼──────┤@// │@f1.d1,hm │@f1.tot_shr1 │@f1.tot_shr2 │@f1.RSN │@// @} └──────┴───────┴────────┴──────┘@// @} @{t2.CODE.comp,free};@{,split}@{t3.ABB.comp,free} @for tm:t3{ ts: @tm.s1 ts2:@tm.s2 | @} -- 最新股本变动 ------------------- --- -- -- -- 已发行普通股(万股) ---总--- select x.stkcode -- 股票代码 ,sum(x.numpush)/10000 as tot_shr -- 已发行普通股(万股) from (select a.stkcode,b.AREAREFCSHG,b.NUMPUSH from pgenius.hk_stkcode a inner join pgenius.hk_shgstudtlcom b on a.comunic = b.comunic and b.chdate = (select max(chdate) from pgenius.hk_shgstudtlcom where comunic = b.comunic and AREAREFCSHG = b.AREAREFCSHG and REFCSHGTY = b.REFCSHGTY ) where b.REFCSHGTY = 1 and a.lssturefc = 1 and a.stkcode = '00001' ) x group by x.stkcode
-- 已发行普通股(万股) ---明细--- select a.stkcode ,b.AREAREFCSHG as pi -- 所属地域参数 ,b.NUMPUSH/10000 as num -- 普通股(万股) from pgenius.hk_stkcode a inner join pgenius.hk_shgstudtlcom b on a.comunic = b.comunic and b.chdate = (select max(chdate) from pgenius.hk_shgstudtlcom where comunic = b.comunic and AREAREFCSHG = b.AREAREFCSHG and REFCSHGTY = b.REFCSHGTY ) where b.REFCSHGTY = 1 and a.lssturefc = 1 and a.stkcode = '01988'
-- 已发行优先股(万股) ------ select x.stkcode ,sum(x.numpush)/10000 as tot_shr -- 已发行优先股(万股) from (select a.stkcode,b.AREAREFCSHG,b.NUMPUSH from pgenius.hk_stkcode a inner join pgenius.hk_shgstudtlcom b on a.comunic = b.comunic and b.chdate = (select max(chdate) from pgenius.hk_shgstudtlcom where comunic = b.comunic and AREAREFCSHG = b.AREAREFCSHG and REFCSHGTY = b.REFCSHGTY ) where b.REFCSHGTY = 2 and a.lssturefc = 1 and a.stkcode = '00001' ) x group by x.stkcode
-- 法定股本:普通股(万股) ------ select x.stkcode ,sum(x.NUMSTYSH)/10000 as tot_shr -- 法定股本:普通股(万股) from (select a.stkcode,b.AREAREFCSHG,b.NUMSTYSH from pgenius.hk_stkcode a inner join pgenius.hk_shgstudtlcom b on a.comunic = b.comunic and b.chdate = (select max(chdate) from pgenius.hk_shgstudtlcom where comunic = b.comunic and AREAREFCSHG = b.AREAREFCSHG and REFCSHGTY = b.REFCSHGTY ) where b.REFCSHGTY = 1 and a.lssturefc = 1 and a.stkcode = '00001' ) x group by x.stkcode
-- 法定股本:优先股(万股) ------ select x.stkcode ,sum(x.NUMSTYSH)/10000 as tot_shr -- 法定股本:优先股(万股) from (select a.stkcode,b.AREAREFCSHG,b.NUMSTYSH from pgenius.hk_stkcode a inner join pgenius.hk_shgstudtlcom b on a.comunic = b.comunic and b.chdate = (select max(chdate) from pgenius.hk_shgstudtlcom where comunic = b.comunic and AREAREFCSHG = b.AREAREFCSHG and REFCSHGTY = b.REFCSHGTY ) where b.REFCSHGTY = 2 and a.lssturefc = 1 and a.stkcode = '00001' ) x group by x.stkcode
-- 历史股本变化-- -- -- ------------------------ select a.stkcode ,b.chdate as d1 -- 变动日期 ,sum(b.NUMSTYSH)/1000000 as tot_shr1 -- 法定股本 ,sum(b.numpush)/1000000 as tot_shr2 -- 已发行股本 ,b.RSNTYREFCSHGCH as RSN-- 变动原因 from pgenius.hk_stkcode a inner join pgenius.hk_shgstudtlcom b on a.comunic = b.comunic where a.stkcode = '01988' -- 入口参数 and a.lssturefc = 1 group by a.stkcode,b.chdate,b.RSNTYREFCSHGCH order by b.chdate desc
-- 报告货币 --- 金融类公司 select b.stkcode,a.CURUNIC from pgenius.HK_FINBS_NSTD a inner join pgenius.hk_stkcode b on a.comunic = b.comunic where b.stkcode = '01988' and a.edate = (select max(edate) from pgenius.HK_FINBS_NSTD where comunic = a.comunic)