everybody, I am relatively new to SQL and I am currently testing my database tables using Oracle Live SQL. I have a table called Customer and a table called Contact. Within the Contact table, I am trying to add a FOREIGN KEY constraint of the Customer_ID column into my Contact table, but keep getting an ORA-00904: "CUSTOMER_ID": invalid identifier, error using the code below:
ALTER TABLE Contact ADD FOREIGN KEY (Customer_ID) REFERENCES Customer(Customer_ID)
Any help would be much appreciated.