Use parentheses to form complex boolean logic trees.
SQL & Relational Databases
SQL Tutorial
SQL Database
Advertisement
Google AdSense Slot (LEADERBOARD)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Boolean Logic
7 min read
•
Chapter 8 of 20
SQL AND, OR and NOT Operators
Combine multiple conditions: AND displays a record if ALL conditions are true. OR displays a record if ANY condition is true. NOT displays if condition is NOT true.
Example
<!DOCTYPE html>
<html>
<body style="font-family:monospace;padding:20px;">
<pre>SELECT * FROM Invoices WHERE status = 'PAID' AND total_amount > 50000;</pre>
</body>
</html>
Try it Yourself >>
Opens live sandboxed code editor
Advertisement
Google AdSense Slot (IN-ARTICLE)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Community Q&A & Discussion
Verified
No questions yet. Be the first to start the discussion!