Help for this page

Select Code to Download


  1. or download this
    select category||type as grp, max(category) as cat, max(type) as typ,
           sum(quantity) as qty
    from table
    group by category || type
    
  2. or download this
    sub group_by {
        my ($rows, $group_keys) = @_;
    ...
        }
        return @recs;
    }