- or download this
(
FOOID number,
FOOTYPE varchar,
AMOUNT number
- or download this
(
FOOID number,
FOOTYPE varchar,
AMOUNT number,
- or download this
)
- or download this
select sum(amount), footype
from foo
group by footype
- or download this
select sum(amount), footype
from foo
group by footype
- or download this
select sum(sum_amount), footype
from (
...
group by footype
)
group by footype
- or download this
select sum(amount), footype
from foo
where databaseid in (1,2,3)
group by footype
- or download this
------------
:Wq
Not an editor command: Wq