Link to home
Start Free TrialLog in
Avatar of punjwani
punjwaniFlag for United States of America

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
Avatar of Arthur_Wood
Arthur_Wood
Flag of United States of America image

try this:

select convert(DECIMAL(8,2),xyz,1) from yourtable

AW
Avatar of punjwani

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
I want to write a select query which give you the formated results.
ASKER CERTIFIED SOLUTION
Avatar of bufalobk
bufalobk

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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