Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте The WHERE Clause Operators | Section
Practice
Projects
Quizzes & Challenges
Вікторини
Challenges
/
SQL Fundamentals
Секція 1. Розділ 22
single

single

bookThe WHERE Clause Operators

Свайпніть щоб показати меню

SQL supports a lot of conditional statements.

Less Than

Let's look at the examples:
This example lists all countries that have a population of less than 2424200:

123
SELECT name, population FROM country WHERE population < 2424200;
copy

Less Than or Equal to

The following example retrieves all countries with a population less than or equal to 2424200:

123
SELECT name, population FROM country WHERE population <= 2424200;
copy

Not Equal

The following example retrieves all non-Asian countries:

123
SELECT name, continent FROM country WHERE continent<>'Asia';
copy
Завдання

Swipe to start coding

Write an SQL query to retrieve the name, population, region, and capital columns from the country table. Return only the countries where the region is Southern Europe. Make sure to select the columns in the order specified: name, population, region, capital.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 22
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

some-alt