June 3, 2010 at 1:54 pm
June 3, 2010 at 2:06 pm
I still would use NUMERIC(?,1).
Assume two version numbers: 10.1 and 4.1.
Try to select the max. version number...
DECLARE @tbl TABLE
(
num NUMERIC(4,1),
stri VARCHAR(4)
)
INSERT INTO @tbl
SELECT 4.1, '4.1' UNION ALL
SELECT 10.1,'10.1'
SELECT MAX(num) FROM @tbl
SELECT MAX(stri) FROM @tbl
June 3, 2010 at 2:08 pm
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply