데이터베이스(42)
-
[HackerRank] Weather Observation Station 3
Query a list of CITY names from STATION for cities that have an even ID number. Print the results in any order, but exclude duplicates from the answer. The STATION table is described as follows: SELECT DISTINCT CITY FROM STATION WHERE ID % 2 = 0;
2021.01.20 -
[HackerRank] Weather Observation Station 1
Query a list of CITY and STATE from the STATION table. The STATION table is described as follows: SELECT CITY, STATE FROM STATION;
2021.01.20 -
[HackerRank] Japanese Cities' Attributes
Query all attributes of every Japanese city in the CITY table. The COUNTRYCODE for Japan is JPN. The CITY table is described as follows: SELECT * FROM CITY WHERE COUNTRYCODE = 'JPN';
2021.01.20 -
[HackerRank] Japanese Cities' Names
Query the names of all the Japanese cities in the CITY table. The COUNTRYCODE for Japan is JPN. The CITY table is described as follows: SELECT NAME FROM CITY WHERE COUNTRYCODE = 'JPN';
2021.01.19 -
[HackerRank] Select By ID
Query all columns for a city in CITY with the ID 1661. The CITY table is described as follows: SELECT * FROM CITY WHERE ID = '1661';
2021.01.19 -
[HackerRank] Select All
Query all columns (attributes) for every row in the CITY table. The CITY table is described as follows: SELECT * FROM CITY
2021.01.19