본문 바로가기

weather observation station10

[MYSQL] Weather Observation Station 13 ▶ SQL > Aggregation > Weather Observation Station 13 Problem Query the sum of Northern Latitudes (LAT_N) from STATION having values greater than 38.7880 and less than 137.2345. Truncate your answer to 4 decimal places. → 38.7880보다 크고 137.2345보다 작은 LAT_N의 합을 구하고 4번째 자리에서 내림(turncate)해라 Input Format The STATION table is described as follows: My Answer SELECT TRUNCATE(SUM(LAT_N), 4) FROM STATION WH.. 2021. 8. 16.
[MySQL] Weather Observation Station 10 ▶ SQL > Basic Select > Weather Observation Station 10 Problem Query the list of CITY names from STATION that do not end with vowels. Your result cannot contain duplicates. The STATION table is described as follows: → 모음으로 끝나지 않는 CITY names, 중복X My Answer SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP '[^aeiou]$' * REGEXP에 대한 내용은 Weather Observation Station 6 포스팅 참고 2021. 4. 5.
[MySQL] Weather Observation Station 9 ▶ SQL > Basic Select > Weather Observation Station 9 Problem Query the list of CITY names from STATION that do not start with vowels. Your result cannot contain duplicates. The STATION table is described as follows: → 모음으로 시작하지 않는 CITY names, 중복X My Answer SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP '^[^aeiou]' * REGEXP에 대한 내용은 Weather Observation Station 6 포스팅 참고 2021. 4. 5.
[MySQL] Weather Observation Station 8 ▶ SQL > Basic Select > Weather Observation Station 8 Problem 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 duplicates. The STATION table is described as follows: My Answer SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP '^[aeiou]' AND CITY REGEXP '[aeiou]$' * REGEXP에 대한 내용은 Weather Obs.. 2021. 4. 3.
[MySQL] Weather Observation Station 7 ▶ SQL > Basic Select > Weather Observation Station 7 Problem Query the list of CITY names ending with vowels (a, e, i, o, u) from STATION. Your result cannot contain duplicates. The STATION table is described as follows: My Answer SELECT DISTINCT CITY FROM STATION WHERE CITY REGEXP '[aeiou]$' * REGEXP에 대한 내용은 이전 포스팅 참고 2021. 4. 2.
[MySQL] Weather Observation Station 6 ▶ SQL > Basic Select > Weather Observation Station 6 Problem Query the list of CITY names starting with vowels (i.e., a, e, i, o, or u) from STATION. Your result cannot contain duplicates. → 중복X The STATION table is described as follows: My Answer SELECT DISTINCT CITY FROM STATION WHERE (CITY LIKE 'a%' OR CITY LIKE 'e%' OR CITY LIKE 'i%' OR CITY LIKE 'o%' OR CITY LIKE 'u%') SELECT DISTINCT CITY .. 2021. 4. 1.
728x90