The document contains SQL statements to create three database tables: Customer, Flower, and Order. The Customer table stores customer information, Flower stores flower item descriptions and prices, and Order tracks orders with a customer ID, item ID, and transaction date. Sample data is inserted into each table.
The document contains SQL statements to create three database tables: Customer, Flower, and Order. The Customer table stores customer information, Flower stores flower item descriptions and prices, and Order tracks orders with a customer ID, item ID, and transaction date. Sample data is inserted into each table.
The document contains SQL statements to create three database tables: Customer, Flower, and Order. The Customer table stores customer information, Flower stores flower item descriptions and prices, and Order tracks orders with a customer ID, item ID, and transaction date. Sample data is inserted into each table.
( CustomerID INT PRIMARY KEY, FirstName VARCHAR2(250), LastName VARCHAR2(50), Address VARCHAR2(100), City VARCHAR2(250), State VARCHAR2(20), ZipCode INT, PhoneNumber INT );
( ItemID INT PRIMARY KEY, ItemDescription VARCHAR2(250), Price INT(10) );
--INSERT INTO Flower
VALUES (1, 'Red rose lond steam individual', 5); --INSERT INTO Flower VALUES (2, 'Red rose long steam dozen' 40); --INSERT INTO Flower VALUES (3, 'Red and white rose bouquet', 38); --INSERT INTO Flower VALUES (4, 'Bouquet-roses valentines day', 45); --INSERT INTO Flower VALUES (5, 'bouquet-mother''s day small', 29); --CREATE TABLE Order ( OrderID INT PRIMARY KEY, CustomerID INT(10), ItemID INT(10), TransactionDate DATE );
--INSERT INTO Order
VALUES (1, 6, 2, '1/15/2014'); --INSRTT INTO Order VALUES (2, 12, 1, '1/16/2014'); --INSERT INTO Order VALUES (3, 2, 10, '1/16/2014'); --INSERT INTO Order VALUES (4, 2, 6, '5/1/2014'); --INSERT INTO Order VALUES (5, 7, 7, '5/1/2014');