기록하는 습관

[SQL] (해커랭크) Select By ID 본문

SQL

[SQL] (해커랭크) Select By ID

Avalla 2023. 8. 15. 16:38

Problem

HackerRank > Prepare > SQL > Basic Select > Select By ID

Query all columns for a city in CITY with the ID 1661.

The CITY table is described as follows:

Solution

더보기
SELECT *
FROM CITY
WHERE 1=1
and ID = 1661
;