I have a problem when i create a table in SQL Server
once i chose DOUBLE as the data type, the error jumped on my face !!!
THIS is the following code :
CREATE TABLE BATCH
( Product_Name VARCHAR(200) NOT NULL,
Product_Brand VARCHAR(100) NOT NULL,
CONSTRAINT Price_FK FOREIGN KEY (Product_Name,Product_Brand)REFERENCES Product (Product_Name,Product_Brand),
BATCH_Date AS GETDATE(),
BATCH_OriginalPrice DOUBLE NOT NULL DEFAULT 0,
BATCH_TAX DOUBLE NOT NULL DEFAULT 0,
BATCH_ProductCost DOUBLE NOT NULL DEFAULT 0 ,
)
The error is like this after each double Incorrect syntax near the keyword 'NOT'
and when i pass the mouse over it, it says " Incorrect syntax near 'NOT'. Expecting ID "
Can someone tell me what's the problem !!!