Oracle SQL - How do I repeat a character based on a value in a column Oracle SQL - How do I repeat a character based on a value in a column oracle oracle

Oracle SQL - How do I repeat a character based on a value in a column


RPAD should work (you may need to adjust the rounding a little):

select rpad('$', round(salary/1000), '$') as "Graphic" from employees