punjwani
asked on
Number Format in SQL Query Analyzer
Is there any way we can get the formated output in SQL Query Analyzer (SQL2K).
for example Select format("###,###.00",xyz) from xyz
for example Select format("###,###.00",xyz) from xyz
ASKER
it will not put the comma I mean 1000 seprator.
how are you then displaying the data? Can you format the rsult, after the query executes, but BEFORE is is displayed?
AW
AW
ASKER
I want to write a select query which give you the formated results.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, I need some function which format any kind of numeric data like as we use in vb format() any way thanks. I am accepting your answer but if you have or figure out pre build function then let me know.
Thanks
Thanks
select convert(DECIMAL(8,2),xyz,1
AW