SELECT ''' result column ''' FROM Table_name_1 pdr, Table_name_2 pi, Table_name_3 pti WHERE pdr.productid = pi.id AND pi.fundcode = pti.fundcode GROUPBY pti.fundcode, pti.NAME
二级列表sql语句
SELECT ''' result column ''' FROM ( SELECT ''' result column ''' FROM table_name_1 pdr INNERJOIN table_name_2 piON pi.id = pdr.productid INNERJOIN table_name_3 pti ON pti.fundcode = pi.fundcode INNERJOIN table_name_4 o ON o.pay_detail_raiser_pkid = pdr.pkid LEFTJOIN table_name_5 pdp ON pdp.orderid = o.id WHEREAND pi.fundcode = 'DM001' ) t GROUPBY t.request_date, t.vendor
三级列表sql语句
SELECT ''' result column ''' FROM table_name_1 pi LEFTJOIN table_name_2 pdr ON pdr.productid = pi.id LEFTJOIN table_name_3 pti ON pi.fundcode = pti.fundcode LEFTJOIN table_name_4 pr ON pti.product_raiser_pkid = pr.pkid WHERE pi.transferable = '1' AND pr.investor_type = '01' AND pi.fundcode IN ( 'DM001' ) AND pi.vendor IN ( '02' ) AND pdr.request_date IN ( '2019-03-11' ) GROUPBY pi.id, pi.NAM