Beruflich Dokumente
Kultur Dokumente
component. I had to pass these records into other SQL queries to get certain information. For
components, with multiple pages and records chances are that I would overlook upon one or two
records. Hence, I wrote this SQL query to fetch all the records associated with a component.
Another SQL query is below which gives the component name, market, record name with its
record type and description:
SELECT DISTINCT p.pnlgrpname,
cp.market,
cp.descr,
pgf.recname,
r.recdescr,
r.rectype FROM pspnlgrpdefn cp,
pspnlgroup cpg,
pspnldefn pg,
pspnlfield pgf,
psrecdefn r
WHERE cp.pnlgrpname = :1 -- Comp Name AND cp.market = 'GBL'
AND cp.pnlgrpname = cpg.pnlgrpname
AND cp.market = cp.market
AND pg.pnlname = cpg.pnlname
AND pgf.pnlname = pg.pnlname
AND pgf.recname = r.recname;