Hello, help plz, already nothing climbs into the head
Task: 19 (training) For each manufacturer, find the average screen size of the notebook PCs they produce. Output: maker, average screen size.
select ol.maker, AVG(ol.screen) from (select pr.maker as maker, pr.model as model_1, l.model as model_2, l.screen as screen from laptop l, product pr where pr.maker = 'A' and l.model = pr.model ) as OL group by ol.maker union all select ol.maker, AVG(ol.screen) from (select pr.maker as maker, pr.model as model_1, l.model as model_2, l.screen as screen from laptop l, product pr where pr.maker = 'B' and l.model = pr.model ) as OL group by ol.maker union all select ol.maker, AVG(ol.screen) from (select pr.maker as maker, pr.model as model_1, l.model as model_2, l.screen as screen from laptop l, product pr where pr.maker = 'C' and l.model = pr.model ) as OL group by ol.maker union all select ol.maker, AVG(ol.screen) from (select pr.maker as maker, pr.model as model_1, l.model as model_2, l.screen as screen from laptop l, product pr where pr.maker = 'D' and l.model = pr.model ) as OL group by ol.maker union all select ol.maker, AVG(ol.screen) from (select pr.maker as maker, pr.model as model_1, l.model as model_2, l.screen as screen from laptop l, product pr where pr.maker = 'E' and l.model = pr.model ) as OL group by ol.maker Your request returned the correct data on the main database, but did not pass the test on the test database.
- Incorrect number of entries (less than 4)
What am I doing wrong?