I have the following query to select a record, but I want to format a column in the result set.
SELECT
COALESCE(dbo.tblMitchellLandscapeID.PatchSize,0) as PatchSize,
dbo.tblMitchellLandscape.MitchellLandscapeName
FROM tblMitchellLandscapeID
INNER JOIN dbo.tblMitchellLandscape
ON dbo.tblMitchellLandscapeID.MitchellLandscapeID=dbo.tblMitchellLandscape.MitchellLandscapeID
WHERE AssessmentVersionID = @AssessmentVersionID
"PatchSize" is a decimal value, so it is always stored as two decimal places "15.10". All that I try to format to one decimal when executing the select statement, I want to populate a result set, for example, "15.1", and not 15.10.
source
share