the order# is first. we need for a report how many cartons per order. the carton col is PHBNO#. IN SQL I want to get a result of PHORD# and PHBNO# for the final tally that is for example 05360237 5
PHORD# PHSFX# PHBNO# PHPKGN
05360207 000 1 CUSTOM
05360220 000 1 CUSTOM
05360225 000 1 CUSTOM
05360237 000 1 CUSTOM
05360237 000 2 CUSTOM
05360237 000 3 CUSTOM
05360237 000 4 CUSTOM
05360237 000 5 CUSTOM
05360249 000 1 CUSTOM
05360249 000 2 CUSTOM
05360249 000 3 CUSTOM
05360260 000 1 CUSTOM
05360260 000 2 CUSTOM
05360269 000 1 CUSTOM
05360315 000 1 CUSTOM
05360323 000 1 CUSTOM