sql - I am looking to put a comma after two digits from right -
i looking put comma after 2 digits right. example have 250$ , in sql want select return 2,50$. example2: 500$ should 5.00$. 1000$. should 10,00$. how can done in select. have column holds value in sql database. in advance help. column data type bigint
ironically, can same way in database:
select cast( (col / 100.0) decimal(20, 2))
Comments
Post a Comment