Link to home
Create AccountLog in
Avatar of davetough
davetough

asked on

create crosstab query form table

i have table with zone, pounds, cost, qty
is it possible w/ crosstab query to have
zone be field names
pounds be rows
and cost and qty be calculated for each zone?
thank you - i attached table
example22.mdb
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

is this what you want

TRANSFORM Sum(tbl1.qty) AS SumOfqty
SELECT tbl1.pounds, Sum(tbl1.qty) AS [Total Of qty]
FROM tbl1
GROUP BY tbl1.pounds
PIVOT tbl1.zone;
ASKER CERTIFIED SOLUTION
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of davetough
davetough

ASKER

Thanks cap