DROP TABLE IF EXISTS RETAIL_ORDER; CREATE TABLE RETAIL_ORDER ( OrderNumber INTEGER PRIMARY KEY, StoreNumber INTEGER NOT NULL, StoreZIP VARCHAR(9) NOT NULL, OrderMonth VARCHAR(12) NOT NULL, OrderYear SMALLINT NOT NULL, OrderTotal DECIMAL(11,2) NOT NULL ) ENGINE=INNODB;
SELECT * FROM WAREHOUSE;
INSERT INTO ORDER_ITEM (OrderNumber, SKU, Quantity, Price, ExtendedPrice) VALUES (1000, 201000,1,300.00,300.00), (1000, 202000,1,130,130);
CREATE USER 's743916s'@'localhost' IDENTIFIED BY 'xxxxxxxx'; GRANT USAGE ON * . * TO 's743916s'@'localhost' IDENTIFIED BY 'xxxxxxxxx' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0; CREATE DATABASE IF NOT EXISTS `s743916s`; GRANT ALL PRIVILEGES ON `s743916s` . * TO 's743916s'@'localhost'; DROP DATABASE IF EXISTS s743916s; DROP USER 's743916s'@'localhost';