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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combine lines of totals into one line with totals

Status
Not open for further replies.

ajhts

Technical User
May 1, 2001
84
US
I have a query that pulls total minutes by payor type. It looks like this:

Day# PartA PartB Other
1 65
1 20
1 36

How do I make this one line with the totals, example

Day# PartA PartB Other
1 65 36 20

Any Ideas?

Thank you very much!
AJ

 
one way:
Code:
Select Day, Sum(nz(PartA,0), Sum(Nz(PartB...
group by Day

traingamer
 
Where do I place this code? Where in the query?

Sorry to bother you again,

AJ
 
switch to the SQL view of a query, copy & paste the SQL, change the table and field names and then run the query.

Leslie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top