반응형
알고리즘 문제 및 풀이사이트
LeetCode - The World's Leading Online Programming Learning Platform
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
leetcode.com
sql 문제풀이
- Leetcode 595. Big Countries: https://leetcode.com/problems/big-countries/
- Leetcode 620. Not Boring Movies: https://leetcode.com/problems/not-boring-movies/
- Leetcode 182. Duplicate Emails: https://leetcode.com/problems/duplicate-emails/
- Leetcode 175. Combine Two Tables: https://leetcode.com/problems/combine-two-tables/
- 답안
Leetcode 595
SELECT name, population, area FROM World
WHERE area >= 3000000
OR population >= 25000000
Leetcode 620
select id, movie, description, rating
from Cinema
WHERE id%2 =1 #홀수 판별
AND description !='boring'
order by rating desc
Leetcode 182
#중복이메일 찾기
SELECT email #,count(*)
FROM Person
GROUP BY email
having count(*) > 1
Leetcode 175
SELECT P.firstName, P.lastName , A.city, A.state
FROM Person P
LEFT JOIN Address A
on P.personId = A.personId
'SQL' 카테고리의 다른 글
[중급 SQL 문제풀이] HackerRank 문제 및 풀이(2) (0) | 2022.01.17 |
---|---|
[중급 SQL 문제풀이] HackerRank 문제 및 풀이(1) (0) | 2022.01.13 |
[중급 SQL문제풀이]MySQL 숫자를 다루는 함수, 문자열을 다루는 함수 (0) | 2022.01.10 |
[SQLD] 2022 시험일정 및 시험범위 (0) | 2022.01.06 |
SQL 쿼리연습- IS NULL, JOIN(feat.프로그래머스, SQL고득점 KIT) (0) | 2022.01.06 |