[1407] Top Travellers
·
SQL/LeetCode
Top Travellers - LeetCode 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 문제 조건 유저별 이동한 거리를 출력하시오 travelled_distance를 기준으로 내림차순하고, 같을 경우 name을 기준으로 오름차순 정렬하시오. # LEFT JOIN SELECT name, SUM(COALESCE(R.distance,0)) AS travelled_distance FROM Users U LEFT JOIN Rides R ON U.id = R.user_id GROUP..
[626] Exchange Seats
·
SQL/LeetCode
Exchange Seats - LeetCode 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 Table: Seat +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | name | varchar | +-------------+---------+ id is the primary key column for this table. Each row of this table indi..
[614#] Second Degree Follower
·
SQL/LeetCode
보호되어 있는 글입니다.
[1378#] Replace Employee ID With The Unique Identifier
·
SQL/LeetCode
보호되어 있는 글입니다.
[1350#] Students With Invalid Departments
·
SQL/LeetCode
보호되어 있는 글입니다.
[1327#] List the Products Ordered in a Period
·
SQL/LeetCode
보호되어 있는 글입니다.
[612#] Shortest Distance in a Plane
·
SQL/LeetCode
보호되어 있는 글입니다.
[608] Tree Node
·
SQL/LeetCode
Tree Node - LeetCode 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 Table: Tree +-------------+------+ | Column Name | Type | +-------------+------+ | id | int | | p_id | int | +-------------+------+ id is the primary key column for this table. Each row of this table contains information a..