Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grouping by multiple columns - Help?

Status
Not open for further replies.

computergeek

Programmer
May 23, 2001
193
CA
Hello,

How do I group on more than one column and set a selection criteria on the grouped value? For example I would like to implement this SQL group by clause within a Crystal 8.5 report, but it seems you can only set a group on one column? Please tell me this is not the case. I tried changing the SQL statement for the report, but if would not save it?

GROUP BY dbo_v_Transactions_Detail.trans_date, dbo_v_Transactions_Detail.employee, dbo_v_Transactions_Detail.emp_name, dbo_v_Transactions_Detail.project, dbo_v_Transactions_Detail.pjt_entity, dbo_v_Transactions_Detail.Shift, dbo_v_Transactions_Detail.TimeType
HAVING (((Sum(dbo_v_Transactions_Detail.units))<>0));

Thanks! This works fine in MSAccess. : 0 )

Darlene
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top