Question: ` ` ` CREATE TABLE OrderDetails ( order _ detail _ id INT PRIMARY KEY AUTO _ INCREMENT, order _ id INT, book _ id
CREATE TABLE OrderDetails
orderdetailid INT PRIMARY KEY AUTOINCREMENT,
orderid INT,
bookid INT,
quantity INT,
price DECIMAL
subtotal DECIMAL AS quantity price STORED,
FOREIGN KEY orderid REFERENCES Ordersorderid
FOREIGN KEY bookid REFERENCES Booksbookid
;
I tried inserting without null in insert then get a different error. how do I add multiple books in this table. thanks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
