일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- seaborn
- 다중 JOIN
- 데이터시각화
- MySQL
- not in
- SQLite
- airflow.cfg
- solvesql
- TRUNCATE
- GROUPBY
- SUM
- 프로그래머스
- 결측값
- 데이터분석
- 파이썬
- hackerrank
- airflow 설치
- Oracle
- join
- Limit
- 머신러닝
- 데이터리안 웨비나
- pandas
- 전처리
- Round
- 그로스해킹
- having
- SQL
- PostgreSQL
- matplotlib
Archives
- Today
- Total
Milky's note
[HackerRank](E) Weather Observation Station 11 본문
https://www.hackerrank.com/challenges/weather-observation-station-11/problem?isFullScreen=true
Weather Observation Station 11 | HackerRank
Query a list of CITY names not starting or ending with vowels.
www.hackerrank.com
[문제]
Query the list of CITY names from STATION that either do not start with vowels or do not end with vowels. Your result cannot contain duplicates.
Input Format
The STATION table is described as follows:
![](https://blog.kakaocdn.net/dn/bc7I5B/btrv7QMOKbr/DnxKq7BBIt7AF4WNkQv2VK/img.jpg)
where LAT_N is the northern latitude and LONG_W is the western longitude.
[답]
-mysql
select distinct(city) from station
where left(city,1) not in ('a','e','i','o','u')
or right(city,1) not in ('a','e','i','o','u');
처음과 끝 모두에 포함하지 않는 모음들을 조회하는 조건을 추가하면 된다.
'SQL > SQL 코딩 테스트-HackerRank' 카테고리의 다른 글
[HackerRank](E) Higher Than 75 Marks (0) | 2022.03.18 |
---|---|
[HackerRank](E) Weather Observation Station 12 (0) | 2022.03.16 |
[HackerRank](E) Weather Observation Station 10 (0) | 2022.03.16 |
[HackerRank](E) Weather Observation Station 9 (0) | 2022.03.16 |
[HackerRank](E) Weather Observation Station 8 (0) | 2022.03.16 |
Comments