Please start any new threads on our new
site at http://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Our new SQL Server Forums are live!
Come on over! We've restricted the ability to create new threads on these forums.
Very Important crosS Applying yaK Herder
SELECT AVG( price * 1.0 ) * 100
SELECT SUM( price * 1.0 ),COUNT(price)
quote:Originally posted by aboyseThat's good but it only shows the number of rows which is 10... Doesn't give a average of the money for the rooms.
quote:Originally posted by aboyseyes it gave me the sum of 0 and it counted 10 rows of info: not exactly what I want...
SELECT SUM( ABS(price) * 1.0 ),COUNT(price),AVG(ABS(price) * 1.0)