In SQL
, there isn't really a predefined order of operations within the WHERE
clause, but you can enforce an order using parentheses (()
). The operator inside parentheses will always be applied first.
To filter data, we use the WHERE
clause with the SELECT/ FROM
statement. As a result, the data will be displayed only if the condition in the WHERE
clause is True
. For example, if you wanted to select students whose attendance count is greater than 80
, you'd write the following query for this table.

xxxxxxxxxx
SELECT StudentName FROM Class WHERE Attendance > 80
OUTPUT
:001 > Cmd/Ctrl-Enter to run, Cmd/Ctrl-/ to comment