INSERT INTO passenger(name)
VALUES('Kany');
INSERT INTO passenger(name)
VALUES('Mark');
INSERT INTO passenger(name)
VALUES('Rafaelo');
INSERT INTO passenger(name)
VALUES('Stella');
INSERT INTO passenger(name)
VALUES('Ekaterina');
INSERT INTO company(name)
VALUES('Estonia Air');
INSERT INTO company(name)
VALUES('Air Baltic');
INSERT INTO company(name)
VALUES('Turkish');
INSERT INTO company(name)
VALUES('USA Airlines');
INSERT INTO company(name)
VALUES('Russia air');
alter table company
add rating char(3);
update company set rating = 5 where ID_comp = 1;
update company set rating = 4.5 where ID_comp = 2;
update company set rating = 5 where ID_comp = 3;
update company set rating = 5 where ID_comp = 4;
update company set rating = 4.5 where ID_comp = 5;
select count(ID_comp) as number_of_values from company
SELECT plane, COUNT(plane) AS Kogus
FROM Trip
GROUP by plane