You are viewing a single comment's thread. Return to all 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;
Seems like cookies are disabled on this browser, please enable them to open this website
Draw The Triangle 1
You are viewing a single comment's thread. Return to all 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;