AND Operator
Last updated
SELECT true AND true AS result;result
--------
t
(1 row)SELECT true AND false AS result;result
--------
f
(1 row)SELECT true AND null AS result;result
--------
null
(1 row)SELECT false AND false AS result;result
--------
f
(1 row)SELECT false AND null AS result;result
--------
f
(1 row)SELECT
title,
length,
rental_rate
FROM
film
WHERE
length > 180
AND rental_rate < 1;title | length | rental_rate
--------------------+--------+-------------
Catch Amistad | 183 | 0.99
Haunting Pianist | 181 | 0.99
Intrigue Worst | 181 | 0.99
Love Suicides | 181 | 0.99
Runaway Tenenbaums | 181 | 0.99
Smoochy Control | 184 | 0.99
Sorority Queen | 184 | 0.99
Theory Mermaid | 184 | 0.99
Wild Apollo | 181 | 0.99
Young Language | 183 | 0.99
(10 rows)