select * from task2a('mixer') as (name varchar, name_sup varchar, title varchar, weight int, price int, date_ date);
name | name_sup | title | weight | price | date_
------+-------------+---------+--------+-------+-----------Z11 | e2e4 | Samsung | 2 | 5000 | 2010-05-05
Z08 | MVideo | Sony | 8 | 18000 | 2011-10-01
Z02 | Eldorado | Zenit | 12 | 10000 | 2011-11-24
Z12 | Eldorado | Gefest | 3 | 6000 | 2011-12-31
Z09 | Sibvez | Tefal | 10 | 20000 | 2012-05-05
Z01 | MVideo | Samsung | 32 | 20000 | 2012-12-24
Z03 | Tehnosity | Tefal | 45 | 40000 | 2013-01-04
Z06 | Mediamarket | Samsung | 6 | 4500 | 2013-03-08
Z10 | Sibvez | Sony | 1 | 2000 | 2013-05-05
Z05 | Sibvez | Gefest | 5 | 6000 | 2013-07-18
Z04 | e2e4 | Sony | 2 | 4000 | 2013-08-04
Z07 | e2e4 | Zenit | 7 | 14000 | 2013-10-01
(12 rows)
select * from task2b('mixer') as (name varchar, name_sup varchar, title varchar, weight int, price int);
name | name_sup | title | weight | price
------+-------------+---------+--------+------Z04 | e2e4 | Sony | 2 | 4000
Z07 | e2e4 | Zenit | 7 | 14000
Z11 | e2e4 | Samsung | 2 | 5000
Z12 | Eldorado | Gefest | 3 | 6000
Z02 | Eldorado | Zenit | 12 | 10000
Z06 | Mediamarket | Samsung | 6 | 4500
Z01 | MVideo | Samsung | 32 | 20000
Z08 | MVideo | Sony | 8 | 18000
Z10 | Sibvez | Sony | 1 | 2000
Z09 | Sibvez | Tefal | 10 | 20000
Z05 | Sibvez | Gefest | 5 | 6000
Z03 | Tehnosity | Tefal | 45 | 40000
(12 rows)
select * from task2c('mixer') as (name varchar, name_sup varchar, title varchar, weight int, price int);
name | name_sup | title | weight | price
------+-------------+---------+--------+-----Z10 | Sibvez | Sony | 1 | 2000
Z11 | e2e4 | Samsung | 2 | 5000
Z04 | e2e4 | Sony | 2 | 4000
Z12 | Eldorado | Gefest | 3 | 6000
Z05 | Sibvez | Gefest | 5 | 6000
Z06 | Mediamarket | Samsung | 6 | 4500
Z07 | e2e4 | Zenit | 7 | 14000
Z08 | MVideo | Sony | 8 | 18000
Z09 | Sibvez | Tefal | 10 | 20000
Z02 | Eldorado | Zenit | 12 | 10000
Z01 | MVideo | Samsung | 32 | 20000
Z03 | Tehnosity | Tefal | 45 | 40000
(12 rows)
select * from task2d('mixer') as (name varchar, name_sup varchar, title varchar, weight int, price int);
name | name_sup | title | weight | price
------+-------------+---------+--------+------Z10 | Sibvez | Sony | 1 | 2000
Z04 | e2e4 | Sony | 2 | 4000
Z06 | Mediamarket | Samsung | 6 | 4500
Z11 | e2e4 | Samsung | 2 | 5000
Z12 | Eldorado | Gefest | 3 | 6000
Z05 | Sibvez | Gefest | 5 | 6000
Z02 | Eldorado | Zenit | 12 | 10000
Z07 | e2e4 | Zenit | 7 | 14000
Z08 | MVideo | Sony | 8 | 18000
Z09 | Sibvez | Tefal | 10 | 20000
Z01 | MVideo | Samsung | 32 | 20000
Z03 | Tehnosity | Tefal | 45 | 40000
(12 rows)
select * from task2e('mixer') as (name varchar, name_sup varchar, title varchar, weight int, price int , date_ date);
name | name_sup | title | weight | price | date_
------+-------------+---------+--------+-------+-----------Z11 | e2e4 | Samsung | 2 | 5000 | 2010-05-05
Уважаемый посетитель!
Чтобы распечатать файл, скачайте его (в формате Word).
Ссылка на скачивание - внизу страницы.