When I write this, I am receiving the error "ORA-00911: invalid character" and I can't see this character. The code works fine up until the ALTER TABLE, that's where this character is.
CREATE TABLE tbl_orders
(Order_ID NUMBER NOT NULL,
Customer_ID NUMBER NOT NULL,
Order_Date DATE NOT NULL,
Order_Method VARCHAR2(8) CHECK (Order_Method IN ('Internet','Phone','Mail')),
Sub_Total NUMBER NOT NULL,
Delivery_Charge NUMBER NOT NULL,
Dispatch_Date DATE NOT NULL,
Carrier_ID NUMBER NOT NULL,
Grand_Total NUMBER NOT NULL,
CONSTRAINT tbl_orders_pk PRIMARY KEY (Order_ID));
ALTER TABLE tbl_orders ADD CONSTRAINT tbl_orders_fk FOREIGN KEY (Customer_ID) REFERENCES tbl_customers (Customer_ID);
ALTER TABLE tbl_orders ADD CONSTRAINT tbl_orders_fk2 FOREIGN KEY (Carrier_ID) REFERENCES tbl_carriers (Carrier_ID);
All help will be greatly appreciated! Thanks
You have to remove the trailing semi colons at the end of your code.