RelationalDesign: insertLaggernet.sql

File insertLaggernet.sql, 2.7 KB (added by 201194, 2 years ago)
Line 
1insert into korisnici(korisnicko_ime,lozinka,e_posta) values
2('ivona','1234','ivona.tapshanovska@gmail.com'),
3('matej','1234','matejco@gmail.com'),
4('nikola','1234','nikola123@gmail.com'),
5('dejan','1234','dejan.123@gmail.com'),
6('marko','1234','marko312@gmail.com'),
7('mila','12341234','milaa@gmail.com'),
8('biljance','1234das','bici@gmail.com'),
9('dejanco','das1234','dejand.13@gmail.com'),
10('mirjana','1234','mira.tapshanovska@gmail.com'),
11('goran','1234','gogo@gmail.com'),
12('filip','1234','ficho32@gmail.com'),
13('kosta','1234','kosta.123@gmail.com');
14
15insert into dostavuvaci (korisnicko_ime) values
16('ivona'),('matej'),('nikola'),('dejan');
17
18
19insert into vraboteni (korisnicko_ime) values
20('marko'),('mila'), ('biljance'),('dejanco');
21
22insert into kupuvaci (korisnicko_ime) values
23('mirjana'),('goran'),('filip'),('kosta');
24
25
26insert into naracki (korisnicko_ime, suma, nacin_na_plakanje, status) values
27('mirjana',2000,'karticka', 'odobrena'),
28('mirjana',3250,'karticka', 'odobrena'),
29('goran',2000,'gotovina', 'dostaveno'),
30('filip',2000,'karticka', 'odobrena');
31
32insert into dostavuvanja (data_na_dostavuvanje, korisnicko_ime,id_naracka) values
33(now(),'ivona',1),
34(now(),'matej',2),
35(now(),'nikola',3),
36(now(),'dejan',4);
37
38
39
40insert into kompanija (ime) values
41('razer'),
42('logitech'),
43('rampage'),
44('acer');
45
46
47
48insert into proizvodi (kolicina, ime_proizvod, ime) values
49(20, 'slusalki', 'rampage'),
50(13, 'tastatura', 'razer'),
51(14, 'laptop', 'acer'),
52(23, 'gluvce', 'logitech');
53
54insert into parce(id_proizvod) values
55(1),
56(2),
57(3);
58
59insert into kategorii (ime, id_proizvod) values
60('audio',1),
61('komponenti',2),
62('komponenti',4);
63
64insert into cena ( datum_na_cena, popust, iznos,id_proizvod) values
65(now(),20,14000,1),
66(now(),20,32000,4),
67(now(),20,300,2),
68(now(),20,4500,3);
69
70insert into garancija(datum_do,datum_od,id_proizvod) values
71(now()+interval '2 month',now(),1),
72(now()+interval '4 month',now(),2),
73(now()+interval '6 month',now(),3),
74(now()+interval '1 month',now(),4);
75
76insert into komentari(id_proizvod, korisnicko_ime, tekst) values
77(1,'mirjana','ahdjuas hduiabsd'),
78(2,'goran','ahdjuaasdassh dsaduiabsd'),
79(3,'filip','ahdjuashdasdui dsaabsd'),
80(4,'kosta','ahdjuaasdasdshduia sadbsd');
81
82insert into magacini (lokacija, korisnicko_ime) values
83('Pero Nakov','marko'),
84('Pero Nakov','biljance'),
85('Rudzer Boskovic','dejanco'),
86('Rudzer Boskovic','mila');
87
88
89insert into parce_e_del_od_naracki (id_parce, id_naracka) values
90(1,2) ,
91(2,3),
92(3,4);
93
94insert into parce_dostapno_vo_magacini (id_parce, id_magacin) values
95(1,2),
96(2,2),
97(3,2);
98
99insert into komentar_na_proizvod (korisnicko_ime, id_proizvod ) values
100('mirjana',1),
101('filip',3),
102('goran',2);