Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 375 Bytes

adults_only_sql_for_beginners_№1.md

File metadata and controls

15 lines (11 loc) · 375 Bytes

Description

In your application, there is a section for adults only. You need to get a list of names and ages of users from the users table, who are 18 years old or older.

users table schema

  • name
  • age

My Solution

SELECT name, age FROM users
WHERE age >= 18;