• + 0 comments

    SQL Server Solution- with help of CTE

    with cte as (Select 20 as n union all select n-1 from cte where n>1)

    select REPLICATE(' * ',n) from cte;