SELECT OI_CHARGES.RESP_GUAR_NBR,OI_CHARGES.APPL_SOURCE,OI_CHARGES.POST_DT,OI_CHARGES.PERF_PHYS_NBR,
OI_CHARGES.PERF_DEPT_CD,OI_CHARGES.SERV_LOCATION,OI_CHARGES.SERV_SITE,OI_CHG_ERROR.AGC_CD,OI_CHG_ERROR.DT_OF_SERVICE,
OI_STATEMENT.FIN_CLASS
FROM OI_CHARGES, OI_CHG_ERROR, OI_STATEMENT,
WHERE OI_CHARGES.RESP_GUAR_NBR=OI_CHG_ERROR.RESP_GUAR_NBR=OI_STATEMENT.RESP_GUAR_NBR,AND
OI_CHARGES.APPL_SOURCE='EC', AND OI_CHARGES.POST_DT>='20070101'
ORDER BY OI_CHARGES.POST_DT DESC;
WHY WILL THIS NOT WORK? I AM TRYING TO USE 3 TABLES TO PULL INFORMATION WITH THE DATE >= 01/01/2007 (THE FORMAT IN THE DATABASE IS AS I HAVE IN THE QUERY AND WITH THE APPL SOURCE EQUL TO EC. I AM NEW TO THIS CAN YOU HELP? THANKS! LISA
OI_CHARGES.PERF_DEPT_CD,OI_CHARGES.SERV_LOCATION,OI_CHARGES.SERV_SITE,OI_CHG_ERROR.AGC_CD,OI_CHG_ERROR.DT_OF_SERVICE,
OI_STATEMENT.FIN_CLASS
FROM OI_CHARGES, OI_CHG_ERROR, OI_STATEMENT,
WHERE OI_CHARGES.RESP_GUAR_NBR=OI_CHG_ERROR.RESP_GUAR_NBR=OI_STATEMENT.RESP_GUAR_NBR,AND
OI_CHARGES.APPL_SOURCE='EC', AND OI_CHARGES.POST_DT>='20070101'
ORDER BY OI_CHARGES.POST_DT DESC;
WHY WILL THIS NOT WORK? I AM TRYING TO USE 3 TABLES TO PULL INFORMATION WITH THE DATE >= 01/01/2007 (THE FORMAT IN THE DATABASE IS AS I HAVE IN THE QUERY AND WITH THE APPL SOURCE EQUL TO EC. I AM NEW TO THIS CAN YOU HELP? THANKS! LISA