-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInserts.sql
145 lines (131 loc) · 14.3 KB
/
Inserts.sql
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
INSERT INTO Region(region_code,name,population1,average_income) VALUES ('290', 'Anthoupoli', 15000, 1200.5)
INSERT INTO Region(region_code,name,population1,average_income) VALUES ('291', 'Petroupoli', 20000, 1789.43)
INSERT INTO Region(region_code,name,population1,average_income) VALUES ('292', 'Sepolia', 9854, 987.54)
INSERT INTO Region(region_code,name,population1,average_income) VALUES ('293', 'Attikh', 16789, 439.8)
INSERT INTO Region(region_code,name,population1,average_income) VALUES ('294', 'Victoria', 12987, 234.54)
INSERT INTO Region(region_code,name,population1,average_income) VALUES ('295', 'Syntagma', 53478, 1289.43)
INSERT INTO Region(region_code,name,population1,average_income) VALUES ('296', 'Dafni', 12098, 1050.43)
INSERT INTO Customer(customer_id,name,surname,customer_address,vap_number,phone_number,geo_id) VALUES (1, 'Despoina', 'Sfetsori', 'Hraklitou_26_Athina', '81791111', '6945673822','290');
INSERT INTO Customer(customer_id,name,surname,customer_address,vap_number,phone_number,geo_id) VALUES (2, 'Apostolis', 'Moustakis', 'Dodekanisou_7_Athina', '98761123', '6956714567','291');
INSERT INTO Customer(customer_id,name,surname,customer_address,vap_number,phone_number,geo_id) VALUES (3, 'Katerina', 'Antonopoulou', 'Idomeneos_9_Athina', '34560909', '6989000722','292');
INSERT INTO Customer(customer_id,name,surname,customer_address,vap_number,phone_number,geo_id) VALUES (4, 'Maria', 'Lianou', 'Hraklitou_12_Athina', '44568964', '6974443567','293');
INSERT INTO Customer(customer_id,name,surname,customer_address,vap_number,phone_number,geo_id) VALUES (5, 'Margarita', 'Palamouti', 'Theodosiou_19_Athina', '87654098', '6957892563','294');
INSERT INTO Customer(customer_id,name,surname,customer_address,vap_number,phone_number,geo_id) VALUES (6, 'Giannis', 'Mpesas', 'Kifisias_56_Athina', '18987650', '6979990437','295');
INSERT INTO Customer(customer_id,name,surname,customer_address,vap_number,phone_number,geo_id) VALUES (7, 'Hlias', 'Kastanos', 'Ravdou__3_Athina', '76905429', '6907635629','296');
INSERT INTO Customer(customer_id,name,surname,customer_address,vap_number,phone_number,geo_id) VALUES (8, 'Gianna', 'Terzi', 'Idomeneos_8_Athina', '93647811', '694111111','291');
INSERT INTO Customer(customer_id,name,surname,customer_address,vap_number,phone_number,geo_id) VALUES (9, 'Nikos', 'Kalos', 'Idomeneos_10_Athina', '15647833', '6952222222','291');
INSERT INTO Customer(customer_id,name,surname,customer_address,vap_number,phone_number,geo_id) VALUES (10, 'Katerina', 'Xristaiou', 'Idomeneos_64_Athina', '15672939', '6989890765','291');
INSERT INTO Card1(card_number,date_of_issue,date_of_expirsy,balance,rate,limit,owner1) VALUES (1, '2016-12-22', '2019-01-29', 789.5, 5.7, 2000, 1)
INSERT INTO Card1(card_number,date_of_issue,date_of_expirsy,balance,rate,limit,owner1) VALUES (2, '2016-11-19', '2019-01-28', 30000, 5, 2500, 2)
INSERT INTO Card1(card_number,date_of_issue,date_of_expirsy,balance,rate,limit,owner1) VALUES (3, '2016-10-18', '2019-01-27', 1000, 3.1, 1000, 3)
INSERT INTO Card1(card_number,date_of_issue,date_of_expirsy,balance,rate,limit,owner1) VALUES (4, '2017-10-09', '2019-01-26', 5000.22, 8.9, 2400.5, 4)
INSERT INTO Card1(card_number,date_of_issue,date_of_expirsy,balance,rate,limit,owner1) VALUES (5, '2016-05-21', '2019-01-25', 6789, 3, 2000, 5)
INSERT INTO Card1(card_number,date_of_issue,date_of_expirsy,balance,rate,limit,owner1) VALUES (6, '2017-12-19', '2019-01-24', 1290.44, 7.3,500.5, 6)
INSERT INTO Card1(card_number,date_of_issue,date_of_expirsy,balance,rate,limit,owner1) VALUES (7, '2017-02-27', '2019-01-23', 1394.82, 5.1, 1500.5, 7)
INSERT INTO Card1(card_number,date_of_issue,date_of_expirsy,balance,rate,limit,owner1) VALUES (8, '2016-12-30', '2019-01-22', 9876, 5.7, 2000, 8)
INSERT INTO Card1(card_number,date_of_issue,date_of_expirsy,balance,rate,limit,owner1) VALUES (9, '2016-01-12', '2019-01-21', 10876, 5, 2000, 9)
INSERT INTO Card1(card_number,date_of_issue,date_of_expirsy,balance,rate,limit,owner1) VALUES (10, '2016-12-26', '2019-01-20', 20198, 3.1, 1000, 10)
INSERT INTO Account(account_number,balance,card_number) VALUES (1, 576, 1)
INSERT INTO Account(account_number,balance,card_number) VALUES (2, 49, 2)
INSERT INTO Account(account_number,balance,card_number) VALUES (3, 98.76, 3)
INSERT INTO Account(account_number,balance,card_number) VALUES (4, 1023.89, 4)
INSERT INTO Account(account_number,balance,card_number) VALUES (5, 4560.44, 5)
INSERT INTO Account(account_number,balance,card_number) VALUES (6, 12, 6)
INSERT INTO Account(account_number,balance,card_number) VALUES (7, 10678, 7)
INSERT INTO Account(account_number,balance,card_number) VALUES (8, 9000, 8)
INSERT INTO Account(account_number,balance,card_number) VALUES (9, 2300, 9)
INSERT INTO Account(account_number,balance,card_number) VALUES (10, 789, 10)
INSERT INTO Account(account_number,balance,card_number) VALUES (11, 9800, 1)
INSERT INTO Account(account_number,balance,card_number) VALUES (12, 12.44, 5)
INSERT INTO Account(account_number,balance,card_number) VALUES (13, 1089, 8)
INSERT INTO Ownership1(customer_id1,account_number1) VALUES (1, 1)
INSERT INTO Ownership1(customer_id1,account_number1) VALUES (2, 2)
INSERT INTO Ownership1(customer_id1,account_number1) VALUES (3, 3)
INSERT INTO Ownership1(customer_id1,account_number1) VALUES (4, 4)
INSERT INTO Ownership1(customer_id1,account_number1) VALUES (5, 5)
INSERT INTO Ownership1(customer_id1,account_number1) VALUES (6, 6)
INSERT INTO Ownership1(customer_id1,account_number1) VALUES (7, 7)
INSERT INTO Ownership1(customer_id1,account_number1) VALUES (8, 8)
INSERT INTO Ownership1(customer_id1,account_number1) VALUES (9, 9)
INSERT INTO Ownership1(customer_id1,account_number1) VALUES (10, 10)
INSERT INTO Ownership1(customer_id1,account_number1) VALUES (1, 11)
INSERT INTO Ownership1(customer_id1,account_number1) VALUES (5, 12)
INSERT INTO Ownership1(customer_id1,account_number1) VALUES (8, 13)
INSERT INTO Bank_account(account_number,interest_rate) VALUES (1, 5.2)
INSERT INTO Bank_account(account_number,interest_rate) VALUES (2, 6.3)
INSERT INTO Bank_account(account_number,interest_rate) VALUES (3, 1.2)
INSERT INTO Bank_account(account_number,interest_rate) VALUES (4, 8.1)
INSERT INTO Bank_account(account_number,interest_rate) VALUES (5, 5.0)
INSERT INTO Bank_account(account_number,interest_rate) VALUES (6, 2.6)
INSERT INTO Bank_account(account_number,interest_rate) VALUES (7, 10.9)
INSERT INTO Bank_account(account_number,interest_rate) VALUES (8, 5.8)
INSERT INTO Bank_account(account_number,interest_rate) VALUES (9, 6.1)
INSERT INTO Bank_account(account_number,interest_rate) VALUES (10, 7.2)
INSERT INTO Bank_account(account_number,interest_rate) VALUES (11, 2.1)
INSERT INTO Bank_account(account_number,interest_rate) VALUES (12, 7.0)
INSERT INTO Bank_account(account_number,interest_rate) VALUES (13, 2.7)
INSERT INTO Sight_account(account_number,overdraft_amount) VALUES (1, 50)
INSERT INTO Sight_account(account_number,overdraft_amount) VALUES (2, 40)
INSERT INTO Sight_account(account_number,overdraft_amount) VALUES (3, 200)
INSERT INTO Sight_account(account_number,overdraft_amount) VALUES (4, 50)
INSERT INTO Sight_account(account_number,overdraft_amount) VALUES (5, 60.5)
INSERT INTO Sight_account(account_number,overdraft_amount) VALUES (6, 5.5)
INSERT INTO Sight_account(account_number,overdraft_amount) VALUES (7, 107.5)
INSERT INTO Sight_account(account_number,overdraft_amount) VALUES (8, 5)
INSERT INTO Sight_account(account_number,overdraft_amount) VALUES (9, 40.89)
INSERT INTO Sight_account(account_number,overdraft_amount) VALUES (10, 20.90)
INSERT INTO Sight_account(account_number,overdraft_amount) VALUES (11, 500)
INSERT INTO Sight_account(account_number,overdraft_amount) VALUES (12, 600.5)
INSERT INTO Sight_account(account_number,overdraft_amount) VALUES (13, 5.95)
INSERT INTO Store(store_code,name,service_number,region_code) VALUES (2019, 'store1', 1, '290')
INSERT INTO Store(store_code,name,service_number,region_code) VALUES (3021, 'store2', 3, '291')
INSERT INTO Store(store_code,name,service_number,region_code) VALUES (1083, 'store3', 2, '292')
INSERT INTO Store(store_code,name,service_number,region_code) VALUES (8765, 'store4', 1, '293')
INSERT INTO Store(store_code,name,service_number,region_code) VALUES (2234, 'store5', 1, '294')
INSERT INTO Store(store_code,name,service_number,region_code) VALUES (8298, 'store6', 1, '295')
INSERT INTO Store(store_code,name,service_number,region_code) VALUES (7182, 'store7', 2, '296')
INSERT INTO Store(store_code,name,service_number,region_code) VALUES (1625, 'store8', 3, '291')
INSERT INTO Store(store_code,name,service_number,region_code) VALUES (5543, 'store9', 3, '294')
INSERT INTO Store(store_code,name,service_number,region_code) VALUES (5690, 'store10', 2, '296')
INSERT INTO Payment(customer_number,date1,payment_amount,customer_id) VALUES (100, '2018-10-23', 5.5, 1)
INSERT INTO Payment(customer_number,date1,payment_amount,customer_id) VALUES (101, '2017-11-12', 300, 2)
INSERT INTO Payment(customer_number,date1,payment_amount,customer_id) VALUES (102, '2017-10-07', 520, 3)
INSERT INTO Payment(customer_number,date1,payment_amount,customer_id) VALUES (103, '2017-07-24', 234, 4)
INSERT INTO Payment(customer_number,date1,payment_amount,customer_id) VALUES (104, '2016-07-09', 34.7, 5)
INSERT INTO Payment(customer_number,date1,payment_amount,customer_id) VALUES (105, '2016-07-22', 98.5, 6)
INSERT INTO Payment(customer_number,date1,payment_amount,customer_id) VALUES (106, '2017-07-12', 23.5, 7)
INSERT INTO Payment(customer_number,date1,payment_amount,customer_id) VALUES (107, '2018-08-23', 890, 8)
INSERT INTO Payment(customer_number,date1,payment_amount,customer_id) VALUES (108, '2017-02-12', 45.6, 9)
INSERT INTO Payment(customer_number,date1,payment_amount,customer_id) VALUES (109, '2017-01-07', 5200.5, 10)
INSERT INTO Payment(customer_number,date1,payment_amount,customer_id) VALUES (110, '2017-06-04', 89, 1)
INSERT INTO Payment(customer_number,date1,payment_amount,customer_id) VALUES (111, '2016-09-09', 78.9, 5)
INSERT INTO Payment(customer_number,date1,payment_amount,customer_id) VALUES (112, '2016-07-02', 399.99, 5)
INSERT INTO Payment(customer_number,date1,payment_amount,customer_id) VALUES (113, '2017-05-12', 456.7, 9)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (1, 1, '2017-05-12', '09:43:00', 78.5, 1, 2019)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (2, 1, '2017-05-14', '10:41:10', 522.45, 4, 2019)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (3, 1, '2017-05-16', '23:59:23', 78, 9, 3021)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (4, 1, '2017-05-17', '21:03:10', 32, 4, 3021)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (5, 1, '2017-05-18', '12:32:00', 5.4, 2, 2019)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (6, 2, '2017-06-01', '04:12:21', 98.3, 4, 3021)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (7, 1, '2017-06-30', '08:31:44', 100.5, 1, 3021)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (8, 3, '2017-06-08', '10:47:00', 79, 3, 3021)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (9, 3, '2017-06-25', '11:21:10', 543, 2, 3021)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (10, 3, '2017-06-24', '23:00:13', 98, 9, 3021)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (11, 3, '2017-07-07', '21:23:10', 38.89, 1, 7182)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (12, 2, '2017-07-13', '17:32:00', 51.76, 10, 7182)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (13, 2, '2017-07-19', '18:12:21', 100.2, 10, 7182)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (14, 1, '2017-07-02', '19:31:44', 1500, 9, 1083)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (15, 1, '2017-07-01', '20:40:00', 49, 10, 8765)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (16, 2, '2017-01-22', '21:30:10', 78, 1, 2234)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (17, 1, '2016-07-25', '22:53:23', 63, 9, 7182)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (18, 3, '2016-07-07', '23:03:10', 21, 5, 8298)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (19, 1, '2016-07-13', '01:30:30', 50.3, 4, 1625)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (20, 1, '2016-07-19', '08:52:01', 91.3, 3, 5543)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (21, 1, '2017-07-02', '09:31:04', 93.5, 10, 5690)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (22, 1, '2017-11-01', '10:43:00', 21.3, 8, 1083)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (23, 2, '2017-07-22', '10:41:10', 97, 10, 3021)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (24, 1, '2017-09-25', '11:59:53', 94, 4, 7182)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (25, 2, '2017-07-07', '14:03:00', 23.56, 10, 2019)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (26, 2, '2017-07-13', '11:52:50', 450.54, 2, 2019)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (27, 1, '2017-12-19', '17:12:51', 32.54, 2, 7182)
INSERT INTO Transaction1(transaction_code,bank_code,date1,hour1,charge,card_number,store_code) VALUES (28, 3, '2017-07-02', '16:31:44', 58.4, 10, 5690)