Trying to write an update query that will add some text to beginning of an existing reocord.
Brief table description:
* Tags table holds material identifications that are unique, they are to be placed in a particular location inside the plant.
* PO_Lines table holds line item details for purchase orders.
* PO_Notes is a table that hold different types of notes, there are PO Header notes, PO Line footers, PO Specifications etc. Each of these are identified by a code.
The type of note that I want to add data to is the PO Line Footer which is identified by POLNFTR in the PONO_VTYP_TYPE column of the PO_Notes table.
The Error is:
ORA-00904 "PO_Lines"."POLN_SEQNO": invalid identifier.
I know for a fact that the table and colomn names are valid.
Here is the code...
Update PO_Notes
Set PO_Notes.PONO_Note = 'This Item is Export Controlled. ' || PO_Notes.PONO_Note
WHERE
TAGS.TAGS_EXPORT_CONTROLLED = 1
And PO_lines.POLN_SEQNO = 78121
And Tags.Tags_POLN_SEQNO = PO_LINES.POLN_SEQNO
And PO_LINES.POLN_SEQNO = PO_NOTES.PONO_DATASEQNO
And PO_NOTES.PONO_VTYP_TYPE = 'POLNFTR';
Can anyone explain whats wrong with my SQL statement?
Brief table description:
* Tags table holds material identifications that are unique, they are to be placed in a particular location inside the plant.
* PO_Lines table holds line item details for purchase orders.
* PO_Notes is a table that hold different types of notes, there are PO Header notes, PO Line footers, PO Specifications etc. Each of these are identified by a code.
The type of note that I want to add data to is the PO Line Footer which is identified by POLNFTR in the PONO_VTYP_TYPE column of the PO_Notes table.
The Error is:
ORA-00904 "PO_Lines"."POLN_SEQNO": invalid identifier.
I know for a fact that the table and colomn names are valid.
Here is the code...
Update PO_Notes
Set PO_Notes.PONO_Note = 'This Item is Export Controlled. ' || PO_Notes.PONO_Note
WHERE
TAGS.TAGS_EXPORT_CONTROLLED = 1
And PO_lines.POLN_SEQNO = 78121
And Tags.Tags_POLN_SEQNO = PO_LINES.POLN_SEQNO
And PO_LINES.POLN_SEQNO = PO_NOTES.PONO_DATASEQNO
And PO_NOTES.PONO_VTYP_TYPE = 'POLNFTR';
Can anyone explain whats wrong with my SQL statement?