전체 글
-
1587. Bank Account Summary II mysqlLeetCode_Study_Plan/SQL 2022. 10. 4. 11:17
https://leetcode.com/problems/bank-account-summary-ii/?envType=study-plan&id=sql-i Bank Account Summary II - 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, tb.sum as balance from (select account, sum(amount) as sum from Transactions group by account having sum(amoun..
-
1050. Actors and Directors Who Cooperated At Least Three Times mysqlLeetCode_Study_Plan/SQL 2022. 10. 4. 11:08
https://leetcode.com/problems/actors-and-directors-who-cooperated-at-least-three-times/?envType=study-plan&id=sql-i Actors and Directors Who Cooperated At Least Three Times - 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 actor_id, director_id from actordirector group by 1,..
-
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..