문제 Write a solution to find all dates’ Id with higher temperatures compared to its previous dates (yesterday). Example: Input: Weather table: +----+------------+------...
[프로그래머스, Oracle] 그룹별 조건에 맞는 식당 목록 출력하기
문제 MEMBER_PROFILE와 REST_REVIEW 테이블에서 리뷰를 가장 많이 작성한 회원의 리뷰들을 조회하는 SQL문을 작성해주세요. 회원 이름, 리뷰 텍스트, 리뷰 작성일이 출력되도록 작성해주시고, 결과는 리뷰 작성일을 기준으로 오름차순, 리뷰 작성일이 같다면 리뷰 텍스트를 기준으로 오름차순 정렬해주세요. 예시...
[Leetcode, PostgreSQL] 183. Customers Who Never Order
문제 Write a solution to find all customers who never order anything. Example: Input: Customers table: +----+-------+ | id | name | +----+-------+ | 1 | Joe | ...
[Leetcode, PostgreSQL] 577. Employee Bonus
문제 Write a solution to report the name and bonus amount of each employee with a bonus less than 1000. Example: Input: Employee table: +-------+--------+------------+--...
[Leetcode, PostgreSQL] 570. Managers with at Least 5 Direct Reports
문제 Write a solution to find managers with at least five direct reports. Example: Input: Employee table: +-----+-------+------------+-----------+ | id | name | depa...
[Leetcode, PostgreSQL] 550. Game Play Analysis IV
문제 Write a solution to report the fraction of players that logged in again on the day after the day they first logged in, rounded to 2 decimal places. In other words, you need to count th...
[Leetcode, PostgreSQL] 176. Second Highest Salary & 178. Rank Scores
문제 1 Write a solution to find the second highest salary from the Employee table. If there is no second highest salary, return null (return None in Pandas). Example 1: Inp...
[Leetcode, PostgreSQL] 185. Department Top Three Salaries
문제 A company’s executives are interested in seeing who earns the most money in each of the company’s departments. A high earner in a department is an employee who has a salary in the top th...
[프로그래머스, Oracle] 오프라인/온라인 판매 데이터 통합하기
문제 ONLINE_SALE 테이블과 OFFLINE_SALE 테이블에서 2022년 3월의 오프라인/온라인 상품 판매 데이터의 판매 날짜, 상품ID, 유저ID, 판매량을 출력하는 SQL문을 작성해주세요. OFFLINE_SALE 테이블의 판매 데이터의 USER_ID 값은 NULL 로 표시해주세요. 결과는 판매일을 기준으로 오름차순 정렬해주시고...
[Leetcode, PostgreSQL] 180. Consecutive Numbers
문제 Find all numbers that appear at least three times consecutively. Example 1: Input: Logs table: +----+-----+ | id | num | +----+-----+ | 1 | 1 | | 2 | 1 | | ...