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). MS-SQL에서는 무지 쉽다. DECLARE @NUM INT = 20 WHILE @NUM > 0 BEGIN SELECT REPLICATE('* ',@NUM) SET @NUM = @NUM - 1 END MYSQL은 뭔지 몰라서 한참 찾았다. LPAD 또는 RPAD를 사용하면 되는데 중요한 것은 2번째 인자이다. REPLICATE는 특별하게 생각할 필요없이 반복한 숫자를 넣어주면 되지만 LPAD/RPAD는 최종 문자열의 길이를 정해줘야 한다. 즉, '*'만 찍어야 하는 것이..
Samantha interviews many candidates from different colleges using coding challenges and contests. Write a query to print the contest_id, hacker_id, name, and the sums of total_submissions, total_accepted_submissions, total_views, and total_unique_views for each contest sorted by contest_id. Exclude the contest from the result if all four sums are . Note: A specific contest can be used to screen ..
- Total
- Today
- Yesterday
- python3
- 경구치료제
- hackerrank
- MSSQL
- Weather Observation Station
- DATABASE
- insert
- list
- 매매일지
- 동국알앤에스
- TSQL
- MS SQL Server
- 미중무역전쟁
- SQL Server
- 넥스트BT
- 에코캡
- string
- 테슬라
- python
- mysql
- 몰누피라비르
- 리비안
- Tableau
- tensorflow
- 대원화성
- 코로나19
- 분석탭
- 넷플릭스
- 해커랭크
- HK이노엔
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |