Operators in the WHERE clause: =, >, <, >=, <=, <>, BETWEEN, LIKE, IN.
SQL & Relational Databases
SQL Tutorial
SQL Database
Advertisement
Google AdSense Slot (LEADERBOARD)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Filtering
7 min read
•
Chapter 6 of 20
SQL WHERE Clause
The WHERE clause is used to filter records. It is used to extract only those records that fulfill a specified condition.
Example
<!DOCTYPE html>
<html>
<body style="font-family:monospace;padding:20px;">
<pre>SELECT * FROM Employees WHERE ctc >= 1200000;</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!