Pivot the Occupation column in OCCUPATIONS so that each Name is sorted alphabetically and displayed underneath its corresponding Occupation. The output column headers should be Doctor, Professor, Singer, and Actor, respectively. Note: Print NULL when there are no more names corresponding to an occupation. Input Format The OCCUPATIONS table is described as follows: Occupation will only contain on..
SELECT CONCAT(NAME, '(', LEFT(OCCUPATION,1), ')') FROM OCCUPATIONS ORDER BY NAME; SELECT CONCAT('There are a total of ', COUNT(*), ' ', LOWER(OCCUPATION), 's.') FROM OCCUPATIONS GROUP BY OCCUPATION ORDER BY COUNT(*), OCCUPATION; 11/15일 2차풀이 - 6분
--내가 통과한 코드 SELECT CASE WHEN A+B > C AND B+C > A AND A+C > B THEN CASE WHEN A=B AND B=C AND A=C THEN 'Equilateral' WHEN A!=B AND B!=C AND A!=C THEN 'Scalene' WHEN (A=B AND A!=C) OR (B=C AND B!=A) OR (A=C AND A!=B) THEN 'Isosceles' END ELSE 'Not A Triangle' END FROM TRIANGLES; --훨씬 심플한 코드...; SELECT CASE WHEN A + B > C AND B + C > A AND A + C > B THEN CASE WHEN A = B AND B = C THEN 'Equilateral' ..
Higher Than 75 Marks Query the Name of any student in STUDENTS who scored higher than Marks. Order your output by the last three characters of each name. If two or more students both have names ending in the same last three characters (i.e.: Bobby, Robby, etc.), secondary sort them by ascending ID. Input Format The STUDENTS table is described as follows: The Name column only contains uppercase (..
- Total
- Today
- Yesterday
- 넷플릭스
- TSQL
- MSSQL
- 에코캡
- python3
- Weather Observation Station
- 대원화성
- tensorflow
- Tableau
- 분석탭
- DATABASE
- 테슬라
- MS SQL Server
- hackerrank
- 동국알앤에스
- 리비안
- 넥스트BT
- 해커랭크
- HK이노엔
- 코로나19
- 매매일지
- python
- string
- 미중무역전쟁
- SQL Server
- insert
- 몰누피라비르
- 경구치료제
- list
- mysql
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |