add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
create table startups(category varchar, valuation integer);
insert into startups(category, valuation) values
('a', 10), ('a', 16), ('a', 8),
('b', 1), ('b', 2), ('b', 100), ('b', 1);
SELECT category, valuation
FROM startups
group by 1;
category valuation
a 10
b 1
SELECT category, avg(valuation)
FROM startups
group by 1;
category avg(valuation)
a 11.333333333333334
b 26