HackerRank MySQL - Draw The Triangle 1
P(R) represents a pattern drawn by Julia in R rows. The following pattern represents P(5):
Write a query to print the pattern P(20)
set @number = 21;
select repeat('* ', @number := @number - 1) from information_schema.tables;
Popular HackerRank Mysql Solutions
Codesadda.com is your home of programming solutions, tutorials, video tutorials and much more.
Sign Up for our weekly newsletter to get update about new content.