| | |
problems with sum...
Please support our MS SQL advertiser: Intel Parallel Studio Home
![]() |
MS SQL Syntax (Toggle Plain Text)
SELECT TABLE, sum(people) FROM TABLES GROUP BY TABLE
All aggregate functions (sum, max, min, avg, etc) must include a GROUP BY including all columns up-to the aggregate.
If this is a school assignment, I suggest you crack the books and spend time in the lab.
Last edited by Stylish; Apr 3rd, 2009 at 4:13 pm.
I NEED AN ADULT!
![]() |
Similar Threads
- C / C++ FAQ's and Practice problems (C++)
- Prolog nested list sum (Legacy and Other Languages)
- 8086 Assembly Problems Help (Assembly)
- Output problems (C++)
- for specially holly , Qveen and sum other people (Visual Basic 4 / 5 / 6)
- calculating sum, average, highest and lowest grades (Visual Basic 4 / 5 / 6)
- Big-Theta Problems!! HOW? (Computer Science)
- long math problems (C++)
- Icon problems after unlocking desktop (Viruses, Spyware and other Nasties)
- Sharing Problems On Windows XP Pro User Limt? (Windows NT / 2000 / XP)
Other Threads in the MS SQL Forum
- Previous Thread: Need help with SQL update query
- Next Thread: Row postion in sql 2005
| Thread Tools | Search this Thread |






