I have to combine 2 SQL queries in a command and I need to change the content of the field to reflect a certain phrase.
For example I want to change the contents of the "STATUSTABLE"."CODEVE" field to reflect one word, that word is, FILING
Our database contains the following info.
AppNo. Status Date of App
1 App 1/10/2003
2 Pub 1/12/2003
3 Val 2/11/2003
4 App 11/1/2003
I want to replace the status field query results to read filing for all results.
AppNo. Status Date of App
1 Filing 1/1/2003
2 Filing 1/1/2003
3 Filing 1/1/2003
4 Filing 1/1/2003
Our database contains different words (PUB, APP, VAL, DES etc.) in short it all means it's a filing.
#Query 1:
SELECT "DATETABLE"."DATDLV", "APPTABLE"."APPNO", "COUNTRYTABLE"."CODPAY", "STATUSTABLE"."CODEVE"
FROM APPTABLE" "APPTABLE", "COUNTRYTABLE" "COUNTRYTABLE", "STATUSTABLE" "STATUSTABLE", "LOCATIONTABLE" "LOCATIONTABLE", "DATETABLE" "DATETABLE", "TYPEAPPTABLE" "TYPEAPPTABLE"
WHERE ("STATUSTABLE"."IDEEVE" (+)="DATETABLE"."IDEEVE"
AND ("COUNTRYTABLE"."IDEPAY"="DATETABLE"."IDEPAY"
AND ("APPTABLE"."IDEDOS"="DATETABLE"."IDEDOS"
AND
"COUNTRYTABLE"."CODPAY"<>'EP' AND DATETABLE"."DATDLV" IS NOT NULL
I can't change the field from within crystal because the 2nd query uses the same status names but the 2nd query results are not filings, they are grants.
Any suggestions?
For example I want to change the contents of the "STATUSTABLE"."CODEVE" field to reflect one word, that word is, FILING
Our database contains the following info.
AppNo. Status Date of App
1 App 1/10/2003
2 Pub 1/12/2003
3 Val 2/11/2003
4 App 11/1/2003
I want to replace the status field query results to read filing for all results.
AppNo. Status Date of App
1 Filing 1/1/2003
2 Filing 1/1/2003
3 Filing 1/1/2003
4 Filing 1/1/2003
Our database contains different words (PUB, APP, VAL, DES etc.) in short it all means it's a filing.
#Query 1:
SELECT "DATETABLE"."DATDLV", "APPTABLE"."APPNO", "COUNTRYTABLE"."CODPAY", "STATUSTABLE"."CODEVE"
FROM APPTABLE" "APPTABLE", "COUNTRYTABLE" "COUNTRYTABLE", "STATUSTABLE" "STATUSTABLE", "LOCATIONTABLE" "LOCATIONTABLE", "DATETABLE" "DATETABLE", "TYPEAPPTABLE" "TYPEAPPTABLE"
WHERE ("STATUSTABLE"."IDEEVE" (+)="DATETABLE"."IDEEVE"
"COUNTRYTABLE"."CODPAY"<>'EP' AND DATETABLE"."DATDLV" IS NOT NULL
I can't change the field from within crystal because the 2nd query uses the same status names but the 2nd query results are not filings, they are grants.
Any suggestions?