1321: and column_position
1323:
1324: cursor indexed_views(ent_name varchar2, colmn_name varchar2) is
1325: select 'Y' from dual where
1326: (ent_name,colmn_name)
1327: in (('AS_ACCESSES_ALL', 'CUSTOMER_ID'),('AS_ACCESSES_ALL', 'ADDRESS_ID'),('AS_ACCESSES_ALL', 'PARTNER_CUSTOMER_ID'),
1328: ('AS_ACCESSES_ALL', 'PARTNER_CONT_PARTY_ID'),('AS_ACCESSES_ALL', 'PARTNER_ADDRESS_ID'),('ASG_PARTY_ACC_V', 'PARTY_ID'),
1329: ('OKE_K_FUNDING_SOURCES_PM_HV', 'K_PARTY_ID'),('IGW_PROP_PERSONS_TCA_V', 'PERSON_PARTY_ID'),
1329: ('OKE_K_FUNDING_SOURCES_PM_HV', 'K_PARTY_ID'),('IGW_PROP_PERSONS_TCA_V', 'PERSON_PARTY_ID'),
1330: ('MIS_HZ_MERGE_VETO_PARTIES', 'PARTY_ID'),('MIS_HZ_MERGE_VETO_PARTY_SITES', 'PARTY_SITE_ID'),('JTF_PERZ_QUERY_PARAM','PARAMETER_VALUE'));
1331:
1332: cursor string_column(join_clause varchar2, col_name varchar2) is
1333: select instr(join_clause,col_name) from dual;
1334: i NUMBER :=0;
1335: cols NUMBER:=0;
1336: isView VARCHAR2(1) := null;
1337: BEGIN
1458: partyid := ' to_char(temp.party_id) ';
1459: end if;
1460:
1461: if j1 is not null then
1462: --select decode(instr(j1,'group'),0,' and '||j1,' and '||substr(j1,1,instr(j1,'group')-1)) into p3 from dual;
1463: select decode(instr(j1,'group'),0,j1,substr(j1,1,instr(j1,'group')-1)) into p3 from dual;
1464: else
1465: p3:=' ';
1466: end if;
1459: end if;
1460:
1461: if j1 is not null then
1462: --select decode(instr(j1,'group'),0,' and '||j1,' and '||substr(j1,1,instr(j1,'group')-1)) into p3 from dual;
1463: select decode(instr(j1,'group'),0,j1,substr(j1,1,instr(j1,'group')-1)) into p3 from dual;
1464: else
1465: p3:=' ';
1466: end if;
1467:
1506: partyid := ' to_char(temp.party_id) ';
1507: end if;
1508:
1509: if j2 is not null then
1510: --select decode(instr(j2,'group'),0,' and '||j2,' and '||substr(j1,1,instr(j1,'group')-1)) into p3 from dual;
1511: select decode(instr(j2,'group'),0,j2,substr(j1,1,instr(j1,'group')-1)) into p3 from dual;
1512: else
1513: p3:=' ';
1514: end if;
1507: end if;
1508:
1509: if j2 is not null then
1510: --select decode(instr(j2,'group'),0,' and '||j2,' and '||substr(j1,1,instr(j1,'group')-1)) into p3 from dual;
1511: select decode(instr(j2,'group'),0,j2,substr(j1,1,instr(j1,'group')-1)) into p3 from dual;
1512: else
1513: p3:=' ';
1514: end if;
1515:
1555: end if;
1556: end if;
1557:
1558: if j1 is not null then
1559: --select decode(instr(j1,'group'),0,' and '||j1,' and '||substr(j1,1,instr(j1,'group')-1)) into p7 from dual;
1560: select decode(instr(j1,'group'),0,j1,substr(j1,1,instr(j1,'group')-1)) into p7 from dual;
1561: else
1562: p7:='';
1563: end if;
1556: end if;
1557:
1558: if j1 is not null then
1559: --select decode(instr(j1,'group'),0,' and '||j1,' and '||substr(j1,1,instr(j1,'group')-1)) into p7 from dual;
1560: select decode(instr(j1,'group'),0,j1,substr(j1,1,instr(j1,'group')-1)) into p7 from dual;
1561: else
1562: p7:='';
1563: end if;
1564:
1606: partyid := ' to_char(temp.party_id) ';
1607: end if;
1608:
1609: if j3 is not null then
1610: --select decode(instr(j3,'group'),0,' and '||j3,' and '||substr(j3,1,instr(j3,'group')-1)) into p3 from dual;
1611: select decode(instr(j3,'group'),0,j3,substr(j3,1,instr(j3,'group')-1)) into p3 from dual;
1612: else
1613: p3:='';
1614: end if;
1607: end if;
1608:
1609: if j3 is not null then
1610: --select decode(instr(j3,'group'),0,' and '||j3,' and '||substr(j3,1,instr(j3,'group')-1)) into p3 from dual;
1611: select decode(instr(j3,'group'),0,j3,substr(j3,1,instr(j3,'group')-1)) into p3 from dual;
1612: else
1613: p3:='';
1614: end if;
1615:
1655: end if;
1656:
1657:
1658: if j2 is not null then
1659: --select decode(instr(j2,'group'),0,' and '||j2,' and '||substr(j2,1,instr(j2,'group')-1)) into p7 from dual;
1660: select decode(instr(j2,'group'),0,j2,substr(j2,1,instr(j2,'group')-1)) into p7 from dual;
1661: else
1662: p7:='';
1663: end if;
1656:
1657:
1658: if j2 is not null then
1659: --select decode(instr(j2,'group'),0,' and '||j2,' and '||substr(j2,1,instr(j2,'group')-1)) into p7 from dual;
1660: select decode(instr(j2,'group'),0,j2,substr(j2,1,instr(j2,'group')-1)) into p7 from dual;
1661: else
1662: p7:='';
1663: end if;
1664:
1690: p8:= ' and exists ';
1691: end if;
1692:
1693: if j1 is not null then
1694: --select decode(instr(j1,'group'),0,' and '||j1,' and '||substr(j1,1,instr(j1,'group')-1)) into p11 from dual;
1695: select decode(instr(j1,'group'),0,j1,substr(j1,1,instr(j1,'group')-1)) into p11 from dual;
1696: else
1697: p11:=' ';
1698: end if;
1691: end if;
1692:
1693: if j1 is not null then
1694: --select decode(instr(j1,'group'),0,' and '||j1,' and '||substr(j1,1,instr(j1,'group')-1)) into p11 from dual;
1695: select decode(instr(j1,'group'),0,j1,substr(j1,1,instr(j1,'group')-1)) into p11 from dual;
1696: else
1697: p11:=' ';
1698: end if;
1699: