-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbamazon.sql
More file actions
51 lines (34 loc) · 1.12 KB
/
bamazon.sql
File metadata and controls
51 lines (34 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
DROP DATABASE IF EXISTS Bamazon_db;
CREATE DATABASE Bamazon_db
use Bamazon_db;
create table products (
ItemID integer(90) not null,
ProductName varchar(255) not null,
DepartmentName varchar(255) not null,
Price DECIMAL(5,2) not null,
StockQuanitiy integer(100) not null
);
INSERT INTO products
VALUES (01, "Purse-blk", "ladies", 89.99, 15);
INSERT INTO products
VALUES (02, "Velvet", "crafts", 12, 39);
INSERT INTO products
VALUES (03, "The Catcher in the Rye", "books", 14.99, 59);
INSERT INTO products
VALUES (04, "Staples", "office", 0.99, 380);
INSERT INTO products
VALUES (05, "i-Phone", "electronics", 799.00, 3);
INSERT INTO products
VALUES (06, "Go Pro Camera", "electronics", 599, 48);
INSERT INTO products
VALUES (07, "X-Box 360", "electronics", 199, 38);
INSERT INTO products
VALUES (08, "Girl with the Dragon tattoo", "books", 16.99, 38);
INSERT INTO products
VALUES (09, "Wooden spindle", "crafts", 3.99, 69);
INSERT INTO products
VALUES (10, "Dress", "ladies", 980.00, 3);
INSERT INTO products
VALUES (11, "Pants", "ladies", 25, 94);
INSERT INTO products
VALUES (12, "Pens", "office", 3.99, 93);