1 | insert 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 |
|
---|
15 | insert into dostavuvaci (korisnicko_ime) values
|
---|
16 | ('ivona'),('matej'),('nikola'),('dejan');
|
---|
17 |
|
---|
18 |
|
---|
19 | insert into vraboteni (korisnicko_ime) values
|
---|
20 | ('marko'),('mila'), ('biljance'),('dejanco');
|
---|
21 |
|
---|
22 | insert into kupuvaci (korisnicko_ime) values
|
---|
23 | ('mirjana'),('goran'),('filip'),('kosta');
|
---|
24 |
|
---|
25 |
|
---|
26 | insert into naracki (korisnicko_ime, suma, status) values
|
---|
27 | ('mirjana',2000, default),
|
---|
28 | ('mirjana',3250, default),
|
---|
29 | ('goran',2000, default),
|
---|
30 | ('filip',2000, default);
|
---|
31 |
|
---|
32 |
|
---|
33 | update naracki
|
---|
34 | set nacin_na_plakanje='vo gotovo'
|
---|
35 | where korisnicko_ime like 'mirjana';
|
---|
36 |
|
---|
37 |
|
---|
38 | insert into dostavuvanja (data_na_dostavuvanje, korisnicko_ime,id_naracka) values
|
---|
39 | (now(),'ivona',1),
|
---|
40 | (now(),'matej',2),
|
---|
41 | (now(),'nikola',3),
|
---|
42 | (now(),'dejan',4);
|
---|
43 |
|
---|
44 |
|
---|
45 | insert into kompanija (ime) values
|
---|
46 | ('razer'),
|
---|
47 | ('logitech'),
|
---|
48 | ('rampage'),
|
---|
49 | ('msi');
|
---|
50 |
|
---|
51 |
|
---|
52 |
|
---|
53 | insert into proizvodi (kolicina, ime_proizvod, ime) values
|
---|
54 | (20, 'slusalki', 'rampage'),
|
---|
55 | (13, 'tastatura', 'razer'),
|
---|
56 | (14, 'monitor', 'msi'),
|
---|
57 | (23, 'gluvce', 'logitech');
|
---|
58 |
|
---|
59 | insert into parce(id_proizvod) values
|
---|
60 | (1),
|
---|
61 | (2),
|
---|
62 | (3),
|
---|
63 | (4);
|
---|
64 |
|
---|
65 | insert into kategorii (ime, id_proizvod) values
|
---|
66 | ('audio',1),
|
---|
67 | ('komponenti',2),
|
---|
68 | ('komponenti',4);
|
---|
69 |
|
---|
70 | insert into cena ( datum_na_cena, popust, iznos,id_proizvod) values
|
---|
71 | (now(),20,14000,1),
|
---|
72 | (now(),20,32000,4),
|
---|
73 | (now(),20,300,2),
|
---|
74 | (now(),20,4500,3);
|
---|
75 |
|
---|
76 | insert into garancija(datum_do,datum_od,id_proizvod) values
|
---|
77 | (now()+interval '2 month',now(),1),
|
---|
78 | (now()+interval '4 month',now(),2),
|
---|
79 | (now()+interval '6 month',now(),3),
|
---|
80 | (now()+interval '1 month',now(),4);
|
---|
81 |
|
---|
82 | insert into komentari(id_proizvod, korisnicko_ime, tekst) values
|
---|
83 | (1,'mirjana','zadovolna sum od proizvodot'),
|
---|
84 | (2,'goran','ne sum zadovolen od proizvodot'),
|
---|
85 | (3,'filip','ne sum zadovolen od proizvodot'),
|
---|
86 | (4,'kosta','ne sum zadovolen od proizvodot');
|
---|
87 |
|
---|
88 | insert into magacini (lokacija, korisnicko_ime) values
|
---|
89 | ('Pero Nakov','marko'),
|
---|
90 | ('Pero Nakov','biljance'),
|
---|
91 | ('Rudzer Boskovic','dejanco'),
|
---|
92 | ('Rudzer Boskovic','mila');
|
---|
93 |
|
---|
94 |
|
---|
95 | insert into parce_e_del_od_naracki (id_parce, id_naracka) values
|
---|
96 | (1,2) ,
|
---|
97 | (2,3),
|
---|
98 | (3,4);
|
---|
99 |
|
---|
100 | insert into parce_dostapno_vo_magacini (id_parce, id_magacin) values
|
---|
101 | (1,2),
|
---|
102 | (2,2),
|
---|
103 | (3,2);
|
---|
104 |
|
---|
105 | insert into komentar_na_proizvod (korisnicko_ime, id_proizvod ) values
|
---|
106 | ('mirjana',1),
|
---|
107 | ('filip',3),
|
---|
108 | ('goran',2);
|
---|