select * from WTKCASCPROFILE;
WTKCASCPROFILEID PROFILENM PROFILEDSC ACTIVESW UPDATEDBYUSRACCTID UPDATEDTM VERSIONCNT
1 经理级联政策 NULL 1 -1 2015-04-16 18:04:38.947 3
51 香港级联政策 NULL 1 -1 2015-04-16 20:09:42.220 1
52 普通级联政策 NULL 1 -1 2015-04-16 20:10:20.710 1
select a.PAYCODEID, a.NAME
, b.NAME,b.PAYCODEID
from PAYCAT1MM m, PAYCODE a, PAYCODE b
where m.PAYCODEID=a.PAYCODEID
and m.GRANDPAYCODEID=b.PAYCODEID