Using the NOT Operator
メニューを表示するにはスワイプしてください
In order to cancel the condition, you need to use the keyword NOT.
The NOT operator is essential when you want to exclude certain records from your query results. It allows you to specify conditions that should not be met, effectively filtering out unwanted data. This can be particularly useful in scenarios where you need to focus on a subset of data that does not meet specific criteria.
First, let's look at the syntax:
SELECT columns
FROM table
WHERE NOT condition;
Now let's look at the example:
123SELECT name, capital FROM country WHERE NOT continent='Asia';
The NOT operator rejects the condition here; hence, it matches the continent to anything that is not Asia.
すべて明確でしたか?
フィードバックありがとうございます!
セクション 4. 章 5
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください
セクション 4. 章 5