I keep getting this error everytime i try to exceute the query . I checked for any syntax errors multiple time, but i cant find any.
Msg 142, Level 15, State 2, Line 0
Incorrect syntax for definition of the 'TABLE' constraint.
CREATE TABLE "hold" (
timePutOnHold TIME(7),
customer_id VARCHAR(13),REFERENCES "Customer",
isbn VARCHAR(13) REFERENCES "Item_Details",
PRIMARY KEY (customer_id, isbn, timePutOnHold)
)
SOLVED! I had to remove a comma after customer_id VARCHAR(13)