473,398 Members | 2,120 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Help with an Oracle Error...

When I run the Querry below, I get the following error...

S0022(904)[Microsoft][ODBC driver for Oracle][Oracle]ORA-00904: "DEPOSIT_ITEM_AMT": invalid identifier (0.13 secs)

Can anyone tell me where my error is...

Thanks...


SELECT D.DEPOSIT_ID, D.DEPOSIT_DT, D.EXPECTED_DEPOSIT_AMT,
I.DEPOSIT_ID, I.DEPOSIT_ITEM_DT, I.DEPOSIT_ITEM_AMT
FROM ST2_REINSARAP.DEPOSIT D

FULL JOIN

(SELECT DEPOSIT_ID, DEPOSIT_ITEM_DT, SUM(DEPOSIT_ITEM_AMT)
FROM ST2_REINSARAP.DEPOSIT_ITEM
GROUP BY DEPOSIT_ID, DEPOSIT_ITEM_DT) I

ON D.DEPOSIT_ID = I.DEPOSIT_ID

WHERE

NVL(D.DEPOSIT_ID,0) <> NVL(I.DEPOSIT_ID,0) OR
NVL(DEPOSIT_DT,'0001-01-01') <> NVL(DEPOSIT_ITEM_DT,'0001-01-01') OR
NVL(EXPECTED_DEPOSIT_AMT,0) <> NVL(DEPOSIT_ITEM_AMT,0)
Jan 5 '11 #1
3 2437
Rabbit
12,516 Expert Mod 8TB
You don't have DEPOSIT_ITEM_AMT in your subquery. You have SUM(DEPOSIT_ITEM_AMT).
Jan 5 '11 #2
Brian Connelly
103 100+
I would check the column types again. The error is pointing to the column DEPOSIT_ITEM_AMT. This is caused by either the column does not exist. Im not sure but it could be caused by the joining of the columns where you are using the SUM function for DEPOSIT_ITEM_AMT and your selected join is DEPOSIT_ITEM_AMT. These could be resulting in an alias mistaken. Im not an expert on this though...just finished up a database course.
Jan 5 '11 #3
Thanks!....

I changed SUM(DEPOSIT_ITEM_AMT) to SUM(DEPOSIT_ITEM_AMT) as DEPOSIT_ITEM_AMT and it works...
Jan 5 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Carl | last post by:
Does anyone know what I can do to resolve this problem I have tried everything. I have an identical package and procedure on a different database that works fine. Request Failed...
3
by: tracy | last post by:
hi, guys, I really need ur guidance.I just installed oracle db in my backup server(os is linux) and intent to import an .dmp file to it. I had created tablespace, datafiles, users( inclide abc). ...
1
by: Raghuraman | last post by:
Hi, In my web app , i am using oracle 9i as db.i an open the oracle database but i cant retrieve the data. It tells ORA-00376: file 7 cannot be read at this time ORA-01110: data file 7:...
10
by: Brian Conway | last post by:
I have no idea what is going on. I have a Login screen where someone types in their login information and this populates a datagrid based off of the login. Works great in debug and test through...
2
by: Raghu Raman | last post by:
Hi, In my web app , i am using oracle 9i as db.i an open the oracle database but i cant retrieve the data. It tells ORA-00376: file 7 cannot be read at this time ORA-01110: data file 7:...
5
by: petro | last post by:
Hello all, My asp.net web application works on my machine but I get the following error on our test web server, There is only one oracle home on the test server. Does anyone know how to resolve...
1
by: DHARMESH SOLANKI | last post by:
Microsoft OLE DB Provider for Oracle error '80004005' Data type is not supported. (There is problem found at cursorlocation property of Recordset. we have transfered oracle database server...
3
by: sathikbasha | last post by:
Hi Please help ? I am trying to insert a record in a Oracle table using ASP as front end.In that table, one of feild name Country_ID,for this feild had given the foregin Key ref Country_Master....
1
by: umeshchitta | last post by:
Hi All, Iam getting below error when I click on of the button from front end. Front end pages are developed in PLSQL code. Procedure which is performing button action...
17
by: zombiezoom | last post by:
I need help with error 2448: You can't assign value to this object. What I am trying to do is allow user to select event id and race id from combo option. Once the user selects those, then the id...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.