Hopefully this is an easy one. I'm trying to get an average of a length field but the field is varchar(8).
This is my query:
SELECT AVG(CONVERT(varchar(8), pcslength, 0)) AS AvgLength
FROM tag_detail
GROUP BY tagnum
The convert doesn't seem to be working. Is there another way to do this?
This is my query:
SELECT AVG(CONVERT(varchar(8), pcslength, 0)) AS AvgLength
FROM tag_detail
GROUP BY tagnum
The convert doesn't seem to be working. Is there another way to do this?