Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End sql help Re: sql help

#80298
cybershot
Participant

this query added the dollar sign to the money

SELECT ‘$’ + CONVERT(CHAR(5), cost, 0)
FROM PART;

I had to convert the results of the cost column and the zero means to add two decimal places. This is what the query returned

$0.59
$0.66
$5.77
$6.12
$0.88
$0.94
$0.74
$2.09
$1.87
$1.96
$3.55
$3.65
$3.58