Question

  • how do i do the query for this?

    queries the name of the employee and indicates the ammounts of their salaries through astericks. Each asterick signifies $100. and both of this should be in a column.

    table = emp

    employee name= ename

    salaries = sal

    -> I don't know how to set an asterick to a hundred dollars. and should I concat it for it to be in one column?

    Thanks in advance.

    ling

    eat when you can and not when you cannot.


    eat when you can and not when you cannot.

  • Try something like:

    select ename, replicate('*', isnull((convert(int, sal) / 100),0)) from emp

    Cheers,

    - Mark


    Cheers,
    - Mark

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply