SQL Query help on limiting decimal places

  • Thread starter Matt's Challenge.com
  • Start date
M

Matt's Challenge.com

Could someone reply inserting the code to limit the result to show only 1
decimal place.
Thanks

--
SELECT Registrant_Information.Gender,
(Avg([Date_of_Diagnosis]-[Date_of_Birth])/365) AS GAveDxAge,
(Avg([Walk_End_Date]-[Date_of_Diagnosis])/30) AS GAveDxWalk,
(Avg([Talk_End_Date]-[Date_of_Diagnosis])/30) AS GAveDxTalk,
(Avg([Eat_End_Date]-[Date_of_Diagnosis])/30) AS GAveDxEat,
(Avg([Breath_End_Date]-[Date_of_Diagnosis])/30) AS GAveDxBreath,
(Avg([Date_of_Death]-[Date_of_Diagnosis])/30) AS GAveDxLive
FROM Registrant_Information
GROUP BY Registrant_Information.Gender
ORDER BY Registrant_Information.Gender;
 
K

Kathleen Anderson [MVP - FP]

See the reply from Jim Buyens to your post in the client newsgroup and
please don't multi-post - thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top