rguillen
Member²
Hi,
I have the following query:
SELECT E.ROWID, E.J_LOCATION_ID, E.J_EVENT_ID, E.J_EVENT_DATE, T.J_EVENTTYPES_NUMBER, E.J_EVENT_MESSAGE, E.J_EVENT_COMMENT, E.J_EVENTSTATUS_ID, S.J_EVENTSTATUS_NUMBER
FROM TSYS.DD_F_EVENTS E, TSYS.DD_L_EVENTTYPES T, TSYS.DD_L_EVENTSTATUS S
WHERE (E.J_EVENTTYPES_ID = T.J_EVENTTYPES_ID) AND (E.J_EVENTSTATUS_ID = S.J_EVENTSTATUS_ID)
ORDER BY E.J_EVEN_DATE DESC
When I tried to define the QBE on Delphi it trow me the error: ORA-00918: column ambiguously defined.
CDAdvisorEvents.QBEDefinition.FieldByName('J_EVENTSTATUS_ID').Value:= ' 5';
I know that table E and table S have the same column J_EVENTSTATUS_ID but in select I'm qualification and refer to table e.
If I try to qualify in QBE definition it trow me an Exception.
Am I doing anything wrong?
Do you have any idea how to avoid this error?
I'm using RAD Studio XE4 Enterprise, DOA 4.1.3.5 with Oracle 11g R2
Thanks
Best Regards.
I have the following query:
SELECT E.ROWID, E.J_LOCATION_ID, E.J_EVENT_ID, E.J_EVENT_DATE, T.J_EVENTTYPES_NUMBER, E.J_EVENT_MESSAGE, E.J_EVENT_COMMENT, E.J_EVENTSTATUS_ID, S.J_EVENTSTATUS_NUMBER
FROM TSYS.DD_F_EVENTS E, TSYS.DD_L_EVENTTYPES T, TSYS.DD_L_EVENTSTATUS S
WHERE (E.J_EVENTTYPES_ID = T.J_EVENTTYPES_ID) AND (E.J_EVENTSTATUS_ID = S.J_EVENTSTATUS_ID)
ORDER BY E.J_EVEN_DATE DESC
When I tried to define the QBE on Delphi it trow me the error: ORA-00918: column ambiguously defined.
CDAdvisorEvents.QBEDefinition.FieldByName('J_EVENTSTATUS_ID').Value:= ' 5';
I know that table E and table S have the same column J_EVENTSTATUS_ID but in select I'm qualification and refer to table e.
If I try to qualify in QBE definition it trow me an Exception.
Am I doing anything wrong?
Do you have any idea how to avoid this error?
I'm using RAD Studio XE4 Enterprise, DOA 4.1.3.5 with Oracle 11g R2
Thanks
Best Regards.