코딩테스트151 [해커랭크/SQL] 14. Weather Observation Station 9 (REGEXP) 👉 https://www.hackerrank.com/challenges/weather-observation-station-9/problem?isFullScreen=true&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen Weather Observation Station 9 | HackerRank Query an alphabetically ordered list of CITY names not starting with vowels. www.hackerrank.com 🤔 문제 분석 1) Query the list of CITY names from STATION that do not start with vowels. Your result cannot contai.. 코딩테스트/해커랭크 SQL 2023. 2. 20. [해커랭크/SQL] 13. Weather Observation Station 8 (REGEXP) 👉 https://www.hackerrank.com/challenges/weather-observation-station-8/problem?isFullScreen=true&h_r=next-challenge&h_v=zen Weather Observation Station 8 | HackerRank Query CITY names that start AND end with vowels. www.hackerrank.com 🤔 문제 분석 1) Query the list of CITY names from STATION which have vowels (i.e., a, e, i, o, and u) as both their first and last characters. Your result cannot contain.. 코딩테스트/해커랭크 SQL 2023. 2. 20. [해커랭크/SQL] 12. Weather Observation Station 7 👉 https://www.hackerrank.com/challenges/weather-observation-station-7/problem?isFullScreen=true Weather Observation Station 7 | HackerRank Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. www.hackerrank.com 🤔 문제 분석 1) Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. Your result cannot contain duplicates. 💡 풀이 SELECT DISTINCT CITY FROM STA.. 코딩테스트/해커랭크 SQL 2023. 2. 20. [해커랭크/SQL] 11. Weather Observation Station 6 👉 https://www.hackerrank.com/challenges/weather-observation-station-6/problem?isFullScreen=true Weather Observation Station 6 | HackerRank Query a list of CITY names beginning with vowels (a, e, i, o, u). www.hackerrank.com 🤔 문제 분석 1) Query the list of CITY names starting with vowels (i.e., a, e, i, o, or u) from STATION. Your result cannot contain duplicates. 💡 풀이 SELECT CITY FROM STATION WHERE.. 코딩테스트/해커랭크 SQL 2023. 2. 15. [해커랭크/SQL] 10. Weather Observation Station 5 👉 https://www.hackerrank.com/challenges/weather-observation-station-5/problem?isFullScreen=true Weather Observation Station 5 | HackerRank Write a query to print the shortest and longest length city name along with the length of the city names. www.hackerrank.com 🤔 문제 분석 1) Query the two cities in STATION with the shortest and longest CITY names, as well as their respective lengths (i.e.: number.. 코딩테스트/해커랭크 SQL 2023. 2. 15. [해커랭크/SQL] 9. Weather Observation Station 4 👉https://www.hackerrank.com/challenges/weather-observation-station-4/problem?isFullScreen=true Weather Observation Station 4 | HackerRank Find the number of duplicate CITY names in STATION. www.hackerrank.com 🤔 문제 분석 1) Find the difference between the total number of CITY entries in the table and the number of distinct CITY entries in the table. 💡 풀이 SELECT COUNT(CITY) - COUNT(DISTINCT CITY) FRO.. 코딩테스트/해커랭크 SQL 2023. 2. 15. [해커랭크/SQL] 8. Weather Observation Station 3 👉https://www.hackerrank.com/challenges/weather-observation-station-3/problem?isFullScreen=true Weather Observation Station 3 | HackerRank Query a list of unique CITY names with even ID numbers. www.hackerrank.com 🤔 문제 분석 1) Query a list of CITY names from STATION for cities that have an even ID number. 2) Print the results in any order, but exclude duplicates from the answer. 💡 풀이 SELECT DISTINC.. 코딩테스트/해커랭크 SQL 2023. 2. 15. [해커랭크/SQL] 7. Japanese Cities' Attributes 👉https://www.hackerrank.com/challenges/japanese-cities-attributes/problem Japanese Cities' Attributes | HackerRank Query the attributes of all the cities in Japan. www.hackerrank.com 🤔 문제 분석 1) Query all attributes of every Japanese city in the CITY table. The COUNTRYCODE for Japan is JPN. 💡 풀이 SELECT * FROM CITY WHERE COUNTRYCODE = "JPN" 코딩테스트/해커랭크 SQL 2023. 2. 15. [리트코드/SQL] 33. Sales Analysis III (1084) 👉https://leetcode.com/problems/sales-analysis-iii/description/ Sales Analysis III - LeetCode Can you solve this real interview question? Sales Analysis III - Table: Product +--------------+---------+ | Column Name | Type | +--------------+---------+ | product_id | int | | product_name | varchar | | unit_price | int | +--------------+---------+ pro leetcode.com 🤔 문제 분석 1) Write an SQL query that .. 코딩테스트/리트코드 SQL 2023. 2. 14. [리트코드/SQL] 32. Bank Account Summary II (1587) 👉https://leetcode.com/problems/bank-account-summary-ii/description/ Bank Account Summary II - LeetCode Bank Account Summary II - Table: Users +--------------+---------+ | Column Name | Type | +--------------+---------+ | account | int | | name | varchar | +--------------+---------+ account is the primary key for this table. Each row of this table contains t leetcode.com 🤔 문제 분석 1) Write an SQL q.. 코딩테스트/리트코드 SQL 2023. 2. 14. [리트코드/SQL] 31. Actors and Directors Who Cooperated At Least Three Times (1050) 👉https://leetcode.com/problems/actors-and-directors-who-cooperated-at-least-three-times/description/ Actors and Directors Who Cooperated At Least Three Times - LeetCode Actors and Directors Who Cooperated At Least Three Times - Table: ActorDirector +-------------+---------+ | Column Name | Type | +-------------+---------+ | actor_id | int | | director_id | int | | timestamp | int | +------------.. 코딩테스트/리트코드 SQL 2023. 2. 14. [프로그래머스/SQL] 68. 자동차 대여 기록에서 장기/단기 대여 구분하기(String, Date - LV. 1) 👉https://school.programmers.co.kr/learn/courses/30/lessons/151138 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 🤔 문제 분석 1) CAR_RENTAL_COMPANY_RENTAL_HISTORY 테이블에서 대여 시작일이 2022년 9월에 속하는 대여 기록에 대해서 2) 대여 기간이 30일 이상이면 '장기 대여' 그렇지 않으면 '단기 대여' 로 표시하는 컬럼(컬럼명: RENT_TYPE)을 추가하여 대여기록을 출력하는 SQL문을 작성해주세요. 3) 결과는 대여 기록 ID를 기준으로 내림차순 정렬해주세요. 💡 .. 코딩테스트/프로그래머스 SQL 2023. 2. 13. 이전 1 2 3 4 5 6 7 ··· 13 다음