Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- HTML
- L1정규화
- sql
- 깃헙협업
- programmers
- L2정규화
- Git
- RLIKE
- 선형 모형
- 버전충돌
- coding
- branch
- 코딩공부
- early stopping
- leetcode
- window function
- hackerrank
- github
- CSS
- 교차 엔트로피
- full request
- merge
- AWS
- 온라인협업
- conflict
- elastic net
- PYTHON
- 편향-분산 교환
- 클라우드컴퓨팅
- mysql
Archives
- Today
- Total
Im between cherry
Hackerrank | MySQL | Draw The Triangle 1 본문
Draw The Triangle 1
Higher Than 75 Marks | HackerRank
Query the names of students scoring higher than 75 Marks. Sort the output by the LAST three characters of each name.
www.hackerrank.com
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
LIMIT 20;
-- 변수 설정할때는 @를 꼭 써준다.
SET @num=21;
SELECT REPEAT('* ',@num := @num-1)
FROM information_schema.tables
WHERE @num>1
'데이터분석 > practice_query' 카테고리의 다른 글
Hackerrank | MySQL | Symmetric Pairs (0) | 2020.08.29 |
---|---|
Hackerrank | MySQL | Draw The Triangle 2 (0) | 2020.08.29 |
Hackerrank | MySQL | Average Population of Each Continent (0) | 2020.08.29 |
Hackerrank | MySQL | African Cities (0) | 2020.08.29 |
Hackerrank | MySQL | Asian Population (0) | 2020.08.29 |
Comments