보통사람

[8kyu] SQL Basics: Simple DISTINCT 본문

Codewars/SQL

[8kyu] SQL Basics: Simple DISTINCT

pej4303 2020. 8. 23. 02:38

1. 조건

 

이 챌린지를 위해 간단한 DISTINCT 문을 만들어야하며 모든 고유 한 연령을 찾으려고합니다.

 

people 테이블

id
name
age

 

2. 해결

SELECT DISTINCT age
  FROM people