SQL & DDL: V1.1__data_init.txt.txt

File V1.1__data_init.txt.txt, 1.7 KB (added by 213231, 3 weeks ago)

V1.1data_init.txt

Line 
1-- Customer
2INSERT INTO Customer (CustomerID, CustomerName, CustomerSurName, Email, Address, CustomerContact) VALUES
3(1, 'Marko', 'Markovski', 'marko@example.com', 'Street 123, Skopje', '070123456'),
4(2, 'Elena', 'Stojanova', 'elena@example.com', 'Boulevard 45, Bitola', '071987654');
5
6-- Employee
7INSERT INTO Employee (EmployeeID, EmployeeName, EmployeeSurName, Position, Department) VALUES
8(1, 'Ivan', 'Petrov', 'Sales Manager', 'Sales'),
9(2, 'Ana', 'Kostova', 'Maintenance Specialist', 'Maintenance');
10
11-- Product
12INSERT INTO Product (ProductID, Model, Price, LicensePlate, Status) VALUES
13(1, 'Volvo FH16', 120000.00, 'SK-1234-AB', 'available'),
14(2, 'Scania R500', 95000.00, 'BT-5678-CD', 'rented'),
15(3, 'Kögel Trailer', 30000.00, 'SK-2468-EF', 'available');
16
17-- Truck
18INSERT INTO Truck (ProductID, HP) VALUES
19(1, 750),
20(2, 500);
21
22-- Trailer
23INSERT INTO Trailer (ProductID, Capacity) VALUES
24(3, 20.5);
25
26-- Procurement
27INSERT INTO Procurement (TransactionID, EmployeeID, CustomerID, ProductID, ProcurementDate, Quantity) VALUES
28(1, 1, 1, 1, '2025-04-01', 1),
29(2, 1, 2, 2, '2025-04-10', 1);
30
31-- T_Type
32INSERT INTO T_Type (TransactionID, Type, Duration, MonthlyPay, TotalPrice) VALUES
33(1, 'Buy', NULL, NULL, 120000.00),
34(2, 'Rent', 12, 3000.00, NULL);
35
36-- Customer Feedback
37INSERT INTO CustomerFeedback (FeedbackID, CustomerID, ProductID, Rating, Comment, FeedbackDate) VALUES
38(1, 1, 1, 5, 'Odlichen kamion, mnogu zadovolen!', '2025-04-05'),
39(2, 2, 2, 4, 'Dobar kamion, no malo skapo.', '2025-04-15');
40
41-- Maintenance
42INSERT INTO Maintenance (MainID, EmployeeID, ProductID, MainDate) VALUES
43(1, 2, 1, '2025-04-20'),
44(2, 2, 2, '2025-04-22');
45
46-- Views
47INSERT INTO Views (CustomerID, ProductID) VALUES
48(1, 1),
49(2, 2),
50(1, 3);