Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Using the OR operator | Advanced Data Filtering
Introduction to SQL (60/40)

bookUsing the OR operator

メニューを表示するにはスワイプしてください

The OR operator is used to filter records based on more than one condition, like if you want to return all countries from Asia but also those from Europe.

Here is the syntax of using the OR operator:

SELECT columns
FROM table
WHERE column = 'first_option' OR column = 'second_option';

Let's look at the example:

123
SELECT name, population, continent, region FROM country WHERE continent = 'Asia' OR continent = 'Europe';
copy

1. Which SQL query correctly uses the OR operator to select countries from either Asia or Europe

2. Which query will return countries with population greater than 50 million or surface area less than 100000

question mark

Which SQL query correctly uses the OR operator to select countries from either Asia or Europe

正しい答えを選んでください

question mark

Which query will return countries with population greater than 50 million or surface area less than 100000

正しい答えを選んでください

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 4.  3

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 4.  3
some-alt