I have the following SQL instruction that I am trying to run in SQL Server, but I seem to have the format wrong. Why is it not working?
CREATE TABLE Order
(
OrderID NUMBER(11, 0) NOT NULL,
CustomerID NUMBER(11, 0),
OrderDate DATE DEFAULT SYSDATE,
CONSTRAINT Order_PK PRIMARY KEY (OrderID),
CONSTRAINT Order_FK1
FOREIGN KEY (CustomerID) REFERENCES Customer (CustomerID)
);
customerlook like, especially what type iscustomerid?DEFAULT SYSDATEare you sure you are using Microsoft SQL Server, it looks like it is Oracle?