https://www.hackerrank.com/challenges/draw-the-triangle-1/problem
SET @NUMBER = 21;
SELECT REPEAT('* ', @NUMBER := @NUMBER - 1 )
FROM INFORMATION_SCHEMA.TABLES LIMIT 20;
'Algorithm > SQL' 카테고리의 다른 글
[SQL][프로그래머스] 모든 레코드 조회하기 (0) | 2020.06.14 |
---|---|
[SQL][HackerRank] Draw The Triangle 2 (0) | 2020.06.14 |
[SQL][HackerRank] Average Population of Each Continent (0) | 2020.06.13 |
[SQL][HackerRank]African Cities (0) | 2020.06.13 |
[SQL][HackerRank] Asian Population (0) | 2020.06.13 |