Hello all,
i am a beginner in Oracle PL/SQL and Forms, so please have patience with me
I am developing under Forms 6i, and an Oracle 8i database.
At the moment i am working on filling a record block dynamically depending on the users wishes.
I have the tables a and b(more will come later to that), and im using as datasource a FROM clausel in Forms to fill this block.
Table a looks like that:
id number
zip varchar2
region varchar2
city varchar2
title varchar2
Table b looks like that:
release date
a_id number (id of table a)
other unimportant fields..
When i now do a statement:
SELECT a.id, a.zip, a.region, a.city, a.title, b.release
FROM pt a, rs b
WHERE a.id = b.a_id
AND b.release =
(SELECT MAX(b.release) FROM RS WHERE a.id = b.a_id)
Forms is telling me:
ORA-00904: invalid column name
I already checked the right order of the fields in the record block, and the fields in the record block are the same like in the select statement. The only difference is that all fields in the record block are varchars2.
Does anyone have an idea, what the problem could be? Or maybe know some sources about Forms where i could learn more about Forms 6i?
Thank you for your help.
Helge.
i am a beginner in Oracle PL/SQL and Forms, so please have patience with me
I am developing under Forms 6i, and an Oracle 8i database.
At the moment i am working on filling a record block dynamically depending on the users wishes.
I have the tables a and b(more will come later to that), and im using as datasource a FROM clausel in Forms to fill this block.
Table a looks like that:
id number
zip varchar2
region varchar2
city varchar2
title varchar2
Table b looks like that:
release date
a_id number (id of table a)
other unimportant fields..
When i now do a statement:
SELECT a.id, a.zip, a.region, a.city, a.title, b.release
FROM pt a, rs b
WHERE a.id = b.a_id
AND b.release =
(SELECT MAX(b.release) FROM RS WHERE a.id = b.a_id)
Forms is telling me:
ORA-00904: invalid column name
I already checked the right order of the fields in the record block, and the fields in the record block are the same like in the select statement. The only difference is that all fields in the record block are varchars2.
Does anyone have an idea, what the problem could be? Or maybe know some sources about Forms where i could learn more about Forms 6i?
Thank you for your help.
Helge.