Логички и физички дизајн - Креирање база податоци (со SQL DDL): DML.sql

File DML.sql, 1.4 KB (added by 183175, 3 weeks ago)
Line 
1insert into online_shop.customers (email, first_name, last_name, phone, delivery_address, password)
2values
3 ('sanja.petrushevska@example.com', 'Сања', 'Петрушевска', '0771234567', 'Улица Орце Николов, Skopje', 'password123');
4
5insert into online_shop.categories (category_name)
6values
7 ('Аксесоари'),
8 ('Обувки'),
9 ('Мајца');
10
11insert into online_shop.products (id_category, product_name, color, price, description)
12values
13 (1, 'Часовник', 'Црн', 1599, 'Кожен часовник за рака'),
14 (2, 'Патики', 'Бели', 2599, 'Елегантни бели патики'),
15 (3, 'Мајца', 'Црна', 1900, 'Удобна памучна мајца');
16
17insert into online_shop.stock (id_product, size, quantity)
18values
19 (1, 'Onesize', 1),
20 (2, '39', 1),
21 (3, 'M', 1);
22
23insert into online_shop.orders (id_customer, payment_method, status, delivery_price, total_price, invoice_code, order_date)
24values
25 (1, 'Card', 'Completed', 1599, 1599 + 2599 + 1900, 'INV123456', '2024-12-22 14:30:00');
26
27insert into online_shop.delivery (id_order, delivery_address, status)
28values
29 (1, 'Улица Орце Николов, Skopje', 'Shipped');
30
31insert into online_shop."contains" (id_order, id_stock, quantity, size, price)
32values
33 (1, 1, 1, 'Onesize', 1599),
34 (1, 2, 1, '39', 2599),
35 (1, 3, 1, 'M', 1900);
36
37