분류 전체보기
-
182. Duplicate Emails mysqlLeetCode_Study_Plan/SQL 2022. 10. 4. 10:44
https://leetcode.com/problems/duplicate-emails/?envType=study-plan&id=sql-i Duplicate Emails - 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 select email as Email from person group by email having count(id) >= 2;
-
1158. Market Analysis I mysqlLeetCode_Study_Plan/SQL 2022. 10. 3. 19:12
https://leetcode.com/problems/market-analysis-i/ Market Analysis I - 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 select u.user_id as buyer_id, u.join_date, IFNULL(tb.number, 0) as orders_in_2019 from (select buyer_id, count(order_id) as number from orders where order_date betwe..
-
1393. Capital Gain/Loss mysqlLeetCode_Study_Plan/SQL 2022. 10. 3. 19:03
https://leetcode.com/problems/capital-gainloss/?envType=study-plan&id=sql-i Capital Gain/Loss - 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 select tb.stock_name, sum(price) as capital_gain_loss from (select stock_name, IF(operation = "Buy" , price*(-1), price) as price from sto..
-
1407. Top Travellers mysqlLeetCode_Study_Plan/SQL 2022. 10. 3. 18:53
https://leetcode.com/problems/top-travellers/?envType=study-plan&id=sql-i 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 select u.name, IFNULL(tb.travelled_distance, 0) as travelled_distance from (select user_id, sum(distance) as travelled_distance from rides grou..
-
1741. Find Total Time Spent by Each Employee mysqlLeetCode_Study_Plan/SQL 2022. 10. 2. 15:13
https://leetcode.com/problems/find-total-time-spent-by-each-employee/?envType=study-plan&id=sql-i Find Total Time Spent by Each Employee - 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 select tb.event_day as day, tb.emp_id as emp_id, sum(diff_time) as total_time from (select even..
-
1890. The Latest Login in 2020 mysqlLeetCode_Study_Plan/SQL 2022. 10. 2. 14:58
https://leetcode.com/problems/the-latest-login-in-2020/?envType=study-plan&id=sql-i The Latest Login in 2020 - 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 select user_id, max(time_stamp) as last_stamp from logins where date(time_stamp) between '2020-01-01' and '2020-12-31' grou..