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

Combine multiple columns into one column

Status
Not open for further replies.

serino64

Programmer
Feb 25, 2003
32
US
Hello Everyone,
How do I combine three columns into one column. I have one Table Called "SalesSource" with Four Fields.

Source
TotalAdvertise
Total ColdCalls
Total Website.

Source TotalAdvertise TotalColdCalls TotalWebsite
Advertising $4,000.00
ColdCalls 7,500.00
Website 10,0000

I would Like to join them to one column.

Source Total
Advertising $4,000.00
ColdCalls $7,500.00
Website $10,000.00

I Appreciate your assistance...
 
As in:

Total: Nz([TotalAdvertise])+ Nz([TotalColdCalls]) + Nz([ TotalWebsite])

?
 
SQL code:
Code:
SELECT Source, Sum(Nz(TotalAdvertise,0)+Nz(TotalColdCalls,0)+Nz(TotalWebsite,0)) AS Total
FROM SalesSource
GROUP BY Source

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top