Updated sql
This commit is contained in:
parent
e0310d0410
commit
9425d585bf
2 changed files with 29 additions and 6 deletions
|
@ -26,7 +26,7 @@ CREATE TABLE IF NOT EXISTS orders (
|
|||
-- Recipes for all the cookies (essentially a list of cookies)
|
||||
CREATE TABLE IF NOT EXISTS recipes (
|
||||
recipe_id int PRIMARY KEY,
|
||||
recipe_name varchar(100) -- Cookie name
|
||||
recipe_name varchar(100) UNIQUE -- Cookie name
|
||||
);
|
||||
|
||||
-- "The company has a raw materials warehouse in which
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
-- Inserts here
|
||||
INSERT OR IGNORE INTO
|
||||
customers (customer_id, customer_name, customer_address)
|
||||
INSERT
|
||||
OR IGNORE INTO customers (customer_id, customer_name, customer_address)
|
||||
VALUES
|
||||
(1, 'Bjudkakor AB', 'Ystad'),
|
||||
(2, 'Finkakor AB', 'Helsingborg'),
|
||||
|
@ -11,12 +11,35 @@ VALUES
|
|||
(7, 'Skånekakor AB', 'Perstorp'),
|
||||
(8, 'Småbröd AB', 'Malmö');
|
||||
|
||||
INSERT INTO
|
||||
recipes (recipe_name)
|
||||
INSERT
|
||||
OR IGNORE INTO recipes (recipe_name)
|
||||
VALUES
|
||||
('Nut ring'),
|
||||
('Nut cookie'),
|
||||
('Amneris'),
|
||||
('Tango'),
|
||||
('Almond delight'),
|
||||
('Berliner');
|
||||
('Berliner');
|
||||
|
||||
INSERT
|
||||
OR IGNORE INTO ingredients (ingredient_name, amount, unit)
|
||||
VALUES
|
||||
('Bread crumbs', 500000, 'g'),
|
||||
('Butter', 500000, 'g'),
|
||||
('Chocolate', 500000, 'g'),
|
||||
('Chopped almonds', 500000, 'g'),
|
||||
('Cinnamon', 500000, 'g'),
|
||||
('Egg whites', 500000, 'ml'),
|
||||
('Eggs', 500000, 'g'),
|
||||
('Fine-ground nuts', 500000, 'g'),
|
||||
('Flour', 500000, 'g'),
|
||||
('Ground, roasted nuts', 500000, 'g'),
|
||||
('Icing sugar', 500000, 'g'),
|
||||
('Marzipan', 500000, 'g'),
|
||||
('Potato starch', 500000, 'g'),
|
||||
('Roasted, chopped nuts', 500000, 'g'),
|
||||
('Sodium bicarbonate', 500000, 'g'),
|
||||
('Sugar', 500000, 'g'),
|
||||
('Vanilla', 500000, 'g'),
|
||||
('Vanilla sugar', 500000, 'g'),
|
||||
('Wheat flour', 500000, 'g');
|
Loading…
Reference in a new issue