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.
| Author |
Topic |
|
Peet
Starting Member
3 Posts |
Posted - 2007-07-24 : 08:46:25
|
| Guys,I'm using the following code and I just want display all glcodes that have a count less than 2:select glcode,sum(abs(sysvalue)) 'Movement',count(glcode) 'Occurances'from jetgroup by glcodeorder by occurancesThe following sytax works i know i need to use the where function. Does anyone know the syntax?CheersMichael |
|
|
jimf
Master Smack Fu Yak Hacker
2875 Posts |
Posted - 2007-07-24 : 08:50:43
|
| select glcode,sum(abs(sysvalue)) 'Movement',count(glcode) 'Occurances'from jetgroup by glcodeHAVING COUNT(glcode) < 2order by occurancesJim |
 |
|
|
|
|
|