I have the following query:
SELECT a.AnimalID, a.RamID, a.AlleleA AS Allele, d .NumberDoses / 2 AS NumberDoses, d .StorageDate, a.AlleleA + '/' + a.Alleleb AS Genotype,
a.StorageTarget / 2 AS AlleleTarget
FROM dbo.VwArkAnimals a INNER JOIN
dbo.VwArkReportAnimalDoses d ON a.AnimalID = d .AnimalID
WHERE (a.AlleleA <> a.AlleleB) AND (a.AlleleA <> 'ARR') AND (a.AlleleB <> 'ARR')
I can not get the divided number to go to two dec places. ie when i put in ROUND(d .NumberDoses / 2,2) the resulting figure does not change.
What am I doing wrong?????
Any help appreciated. Thanks Mark
SELECT a.AnimalID, a.RamID, a.AlleleA AS Allele, d .NumberDoses / 2 AS NumberDoses, d .StorageDate, a.AlleleA + '/' + a.Alleleb AS Genotype,
a.StorageTarget / 2 AS AlleleTarget
FROM dbo.VwArkAnimals a INNER JOIN
dbo.VwArkReportAnimalDoses d ON a.AnimalID = d .AnimalID
WHERE (a.AlleleA <> a.AlleleB) AND (a.AlleleA <> 'ARR') AND (a.AlleleB <> 'ARR')
I can not get the divided number to go to two dec places. ie when i put in ROUND(d .NumberDoses / 2,2) the resulting figure does not change.
What am I doing wrong?????
Any help appreciated. Thanks Mark