Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ SQL And, Or, Not | Database & Introduction to Syntax
SQL Tutorial for Beginners
セクション 1.  7
single

single

bookSQL And, Or, Not

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

To combine multiple conditions, use AND, OR, and NOT keywords, and also brackets (, ) to set the priority.

For example, you want to select all songs' titles, that were produced between 1970 and 1990 years:

12
SELECT title FROM songs WHERE year >= 1970 AND year <= 1990
copy

Or you can select all records where singer is not Pink Floyd:

12
SELECT * FROM songs WHERE NOT singer = 'Pink Floyd'
copy

You can combine conditions for different columns, but not forget about brackets to define the priority:

12
SELECT * FROM songs WHERE NOT (singer = 'Pink Floyd' AND price = 100)
copy
タスク

スワイプしてコーディングを開始

Find all songs titles and prices of 20th century, where the price is less than 500, or where the singer is AC/DC.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

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

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

セクション 1.  7
single

single

AIに質問する

expand

AIに質問する

ChatGPT

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

some-alt