Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.
sql4us Starting Member
24 Posts
ehorn Master Smack Fu Yak Hacker
1632 Posts
SELECT state, SUM(val1) val1, SUM(val2) val2, SUM(val3) val3, SUM(val4) val4FROM <table>GROUP BY state
quote:Originally posted by ehornHow about something like;SELECT state, SUM(val1) val1, SUM(val2) val2, SUM(val3) val3, SUM(val4) val4FROM <table>GROUP BY state
SQLTeam.com Articles via RSS
SQLTeam.com Weblog via RSS
- Advertisement -
Articles
Forums
Blogs
Contact Us
About the Site