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

File V1.1__data_init.txt.2.txt, 1.8 KB (added by 211301, 13 days ago)
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(3, 1, 2, 3, '2025-05-04', 1);
31
32-- T_Type
33INSERT INTO T_Type (TransactionID, Type, Duration, MonthlyPay, TotalPrice) VALUES
34(1, 'Buy', NULL, NULL, 120000.00),
35(2, 'Rent', 12, 3000.00, NULL);
36(3, 'Buy', NULL, NULL, 30000.00);
37
38-- Customer Feedback
39INSERT INTO CustomerFeedback (FeedbackID, CustomerID, ProductID, Rating, Comment, FeedbackDate, TransactionID) VALUES
40(1, 1, 1, 5, 'Odlichen kamion, mnogu zadovolen!', '2025-04-05', '1'),
41(2, 2, 2, 4, 'Dobar kamion, no malo skapo.', '2025-04-15', '2');
42
43-- Maintenance
44INSERT INTO Maintenance (MainID, EmployeeID, ProductID, MainDate) VALUES
45(1, 2, 1, '2025-04-20'),
46(2, 2, 2, '2025-04-22');
47
48-- Views
49INSERT INTO Views (CustomerID, ProductID) VALUES
50(1, 1),
51(2, 2),
52(1, 3);