Logical Operators and Compound Conditions
Learn how to use logical operators and compound conditions.
Let’s start with generating a list of sales corresponding to a particular product, for example, 'Monitor 21in'
.
Press + to interact
-- Write your query here.
Now, let’s enhance the query. Suppose we want to retrieve sales corresponding to monitors with a sales amount higher than 150. The required condition has two parts:
ProductName
=
'Monitor 21in'
SalesAmount
>
150
We must formulate the condition in the WHERE
clause to satisfy both criteria. To achieve ...