March 14, 2007 at 3:44 pm
You bet. Thank you for the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
March 21, 2007 at 9:35 am
Hi Jeff,
I encountered a similar problem again, but the same method is not solving a problem.In this there is a table with decimal values and few character value, i have to take the decimal values and sort them and leave them if it is a character type. The column name is asset_tagprefix .
SELECT
* from _asset
ORDER BY CASE
WHEN asset_tagprefix LIKE '[^0-9]%'
THEN asset_tagprefix
ELSE STR(CAST(asset_tagprefix AS decimal(7,4)),20)
END
when i tried using the above query i got the following error message
Arithmetic overflow error converting numeric to data type numeric.
Kindly help.
sree
March 21, 2007 at 4:52 pm
You know the drill, Sree... "Show me the data".
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 3 posts - 16 through 17 (of 17 total)
You must be logged in to reply to this topic. Login to reply