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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 decimal to big

Author  Topic 

sgw1963
Starting Member

6 Posts

Posted - 2001-02-05 : 12:32:11
I have a query where i am the showing the ave #of animals per herd, but the decimal is 13 places long. How do I get it down to one?
EX. 45.2
Select
Technician.'Region',
Count(Hrdgen.HerdCode) as NumHerds,
Sum(Hrdgen.CowsInHerd) as NumCows,
Avg(Hrdgen.CowsInHerd) as CowsPerHerd
From
Technician, Hrdgen
Where
Cast(Hrdgen.Technician as Smallint) = Technician.'Tech Number'
AND
Technician.Status <> 'T'
AND
Hrdgen.QuitReason is NULL
Group By
Region
Order By
Region



   

- Advertisement -