목록분류 전체보기 (174)
홍동이의 성장일기
안녕하세요! 🖐️ 데이터 분석가 취업을 준비하는 홍동입니다. 저는 최근 인턴, 신입 등 여러 채용을 준비하면서 다양한 회사에 대해 알아보는 일이 많아졌습니다. 서류를 작성하기 위해서 각 회사는 데이터를 비즈니스에 어떻게 활용하는지, 데이터팀은 어떤 목표를 가지고 어떤 성과를 내기 위해 노력하는지를 열심히 서칭해보곤 하는데요. 분석가 취업을 희망하시는 분들과 인사이트을 공유하면 재미도 있고 유익할 것 같아서 저만의 작은 콘텐츠를 만들어보았습니다😊 서류를 탈락해도 글 하나 남겼다는 자기 위안을 할 수 있다는 점에서 여러가지 의의가 있겠죠?🥲 콘텐츠 이름은 데분알 (데이터 분석 알아보기)로 간단하게 지어보았는데요, 더 좋은 이름이 생각나면 추후 변경도 고려해보겠습니다. 여러분과 함께 알아볼 첫번째 회사는 화해..
Movie Rating - LeetCode Can you solve this real interview question? Movie Rating - Table: Movies +---------------+---------+ | Column Name | Type | +---------------+---------+ | movie_id | int | | title | varchar | +---------------+---------+ movie_id is the primary key (column w leetcode.com (SELECT u.name as results FROM movierating mr INNER JOIN users u ON mr.user_id = u.user_id GROUP BY u.na..
Last Person to Fit in the Bus - LeetCode Can you solve this real interview question? Last Person to Fit in the Bus - Table: Queue +-------------+---------+ | Column Name | Type | +-------------+---------+ | person_id | int | | person_name | varchar | | weight | int | | turn | int | +------------- leetcode.com WITH cte_last AS ( SELECT * , SUM(weight) OVER(ORDER BY turn) as total_weight FROM queu..
Monthly Transactions I - LeetCode Can you solve this real interview question? Monthly Transactions I - Table: Transactions +---------------+---------+ | Column Name | Type | +---------------+---------+ | id | int | | country | varchar | | state | enum | | amount | int | | trans_date | date leetcode.com SELECT DATE_FORMAT(trans_date, '%Y-%m') as month , country , COUNT(*) as trans_count , SUM(CAS..
Immediate Food Delivery II - LeetCode Can you solve this real interview question? Immediate Food Delivery II - Table: Delivery +-----------------------------+---------+ | Column Name | Type | +-----------------------------+---------+ | delivery_id | int | | customer_id | int | | order_date | d leetcode.com SELECT ROUND(AVG(order_date = customer_pref_delivery_date)* 100, 2) as immediate_percentag..
Product Price at a Given Date - LeetCode Can you solve this real interview question? Product Price at a Given Date - Table: Products +---------------+---------+ | Column Name | Type | +---------------+---------+ | product_id | int | | new_price | int | | change_date | date | +---------------+---- leetcode.com SELECT product_id , 10 AS price FROM products GROUP BY product_id HAVING MIN(change_dat..
Market Analysis I - LeetCode Can you solve this real interview question? Market Analysis I - Table: Users +----------------+---------+ | Column Name | Type | +----------------+---------+ | user_id | int | | join_date | date | | favorite_brand | varchar | +----------------+---------+ u leetcode.com SELECT u.user_id as buyer_id , u.join_date , IFNULL(COUNT(o.order_date), 0) AS orders_in_2019 FROM ..
안녕하세요 👋 오늘은 2023년 데이터리안 마지막 세미나인 12월 세미나 후기에 대해 이야기해보겠습니다. 저는 데이터리안 SQL 데이터 분석 캠프 실전반을 수강했습니다. 캠프에 참여하게 되면 월간 세미나 참여코드 3개를 제공받게 됩니다. 취업을 준비하며 SQL 코딩테스트에 대해 자세히 알고 싶어서 이번 세미나에 참가하게 되었습니다. [강연] “SQL 코딩테스트의 거의 모든 것: 공부 방법부터 실전 노하우까지” 1부에서 진행된 강연은 SQL 코딩테스트란 무엇인지, 어떤 형식으로 구성되는지, 준비는 어떻게 하면 좋은지 그 외에도 다양한 팁들로 구성되었습니다. 이번 강연의 경우에는 유튜브에 풀영상이 공개되어있으니 SQL 코딩테스트에 대해 알고 싶으신 분들은 참고해보시면 많은 도움이 될 것 같습니다. [패널토크..
Investments in 2016 - LeetCode Can you solve this real interview question? Investments in 2016 - Table: Insurance +-------------+-------+ | Column Name | Type | +-------------+-------+ | pid | int | | tiv_2015 | float | | tiv_2016 | float | | lat | float | | lon | float | +------------- leetcode.com WITH cte_2015 AS ( -- tiv_2015가 동일한 고객이 두 명 이상이어야함 SELECT tiv_2015 , count(*) as tot FROM insuran..
Nth Highest Salary - LeetCode Can you solve this real interview question? Nth Highest Salary - Table: Employee +-------------+------+ | Column Name | Type | +-------------+------+ | id | int | | salary | int | +-------------+------+ id is the primary key (column with unique values) for leetcode.com CREATE FUNCTION getNthHighestSalary(N INT) RETURNS INT BEGIN SET N = N-1; RETURN ( SELECT DISTINCT..