Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I can not run this Quary

Status
Not open for further replies.

ancheswaroop

Programmer
Apr 25, 2006
12
US
select
substr(TEDCLZ.CA_AUTH_DLY_FILE.LG3_DATE,5,2) || substr(TEDCLZ.CA_AUTH_DLY_FILE.LG3_DATE,7,2)
|| substr(TEDCLZ.CA_AUTH_DLY_FILE.LG3_DATE,3,2) as CHDATE,
TEDCLZ.CA_AUTH_DLY_FILE.LG3_TIME,
TEDCLZ.CA_AUTH_DLY_FILE.LG3_TRANSACTION_AMOUNT,
TEDCLZ.CA_AUTH_DLY_FILE.LG3_APPROVAL_CODE,
TEDCLZ.CA_AUTH_DLY_FILE.LG3_MERCHANT_ID,
TEDCLZ.CA_AUTH_DLY_FILE.HASH_SRC_CRCD_I
from
TEDCLZ.CA_AUTH_DLY_FILE
left join
TEDCLZ.NEW_DAILY_AUTH_REC_IN
on
CHDATE = TEDCLZ.NEW_DAILY_AUTH_REC_IN.IN_TRANSACTION_TIME
and TEDCLZ.CA_AUTH_DLY_FILE.LG3_TRANSACTION_AMOUNT = TEDCLZ.NEW_DAILY_AUTH_REC_IN.IN_TRANSACTION_AMOUNT
and TEDCLZ.CA_AUTH_DLY_FILE.LG3_APPROVAL_CODE = TEDCLZ.NEW_DAILY_AUTH_REC_IN.IN_APPROVAL_CODE
and TEDCLZ.CA_AUTH_DLY_FILE.LG3_MERCHANT_ID = TEDCLZ.NEW_DAILY_AUTH_REC_IN.IN_MERCHANT_ID
and TEDCLZ.CA_AUTH_DLY_FILE.HASH_SRC_CRCD_I = TEDCLZ.NEW_DAILY_AUTH_REC_IN.HASH_SRC_CRCD_I
and TEDCLZ.CA_AUTH_DLY_FILE.BATCH_LOAD_NUMBER = TEDCLZ.NEW_DAILY_AUTH_REC_IN.BATCH_LOAD_NUMBER
where TEDCLZ.CA_AUTH_DLY_FILE.BATCH_LOAD_NUMBER =1100
and TEDCLZ.NEW_DAILY_AUTH_REC_IN.BATCH_LOAD_NUMBER =1100

and this is the error message

DB2 SQL error: SQLCODE: -206, SQLSTATE: 42703, SQLERRMC: CHDATE
Message: "CHDATE" is not valid in the context where it is used. 
 
Are you sure you're in the right forum? This is an Oracle forum and it appears you are using DB2.
 
Hi,
Why a DB2 error from Oracle?
Are you using the hetergenous connection method to a DB2 database from Oracle?





[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Then why are you asking DB2 questions in an Oracle forum?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top