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

How to sum columns

Status
Not open for further replies.

JavaToPerlNowVB

Programmer
Joined
Jul 14, 2005
Messages
84
Location
US
I have a query and I want to sum up all the columns, This is the sql query that I have
Code:
SELECT CountSwitchGearInspectionByYear.[Inspection Year], CountSwitchDeficienciesByYear.Maint, CountSwitchGearInspectionByYear.[Units Inspected]
FROM CountSwitchGearInspectionByYear INNER JOIN CountSwitchDeficienciesByYear ON CountSwitchGearInspectionByYear.[Inspection Year] = CountSwitchDeficienciesByYear.[Inspection Date];

Should i use the create or replace view but since I just want the total at the end of the each column I think I have to use someother way.
Thanks for all the help
 
do a search on these (Tek-Tips) fora with the term basRowSet or basRowSum.



MichaelRed


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top