Comparison operators and filters are two different types of operations that can be used in SQL. While comparison operators compare two values and return TRUE if they are equal, filters compare one value against a list of values and returns TRUE if the value is found in the list.
The SQL comparison operator is used to compare two values and return a Boolean value based on the outcome of the comparison. The following example will show you how to use it:
SELECT * FROM users WHERE name = 'John' or age< 30;
SQL comparison operators are used to compare two or more values. They can be used to find out if one value is greater than, less than, equal to, or not equal to another value.
There are many types of comparison operators. Some of them include:
Greater than or less than
More than or less than
Greater than or equal to
Less than or equal to
More than or greater than
Comparison operators are used in SQL to compare two values and return a value based on the comparison.
The following are some of the common comparison operators:
=,<, >,<=, >=,
>=<, BETWEEN and IN.
Learner's Ratings
4.5
Overall Rating
74%
16%
5%
0%
5%
Reviews
M
Mahima Patel
5
very usefull......thanks
P
Priya Kushwaha
5
Very Good trainer
C
chanchal singh
5
you guys are doing nice job. thanks
U
Umesh Wankhede
5
Not too much interactive
M
Monesh Ram
5
Well Explained in Every Chapters..
G
GAJANAN DIGAMBAR MODE
5
very easy to understand SQL its was dream to learn SQL. Thanx for Learnvern
M
Mohmad Shadab
5
BEST VIDEOS
N
NAGASWETHA
5
very useful
M
mohd aamir
4
Hi Team,
Why you didn't teach/learn how to write select query, even you shared 15 question for practice :(
Y
Yashvant Kadwe
5
I have found the course to be interesting with plenty of valuable information provided as part of the course and through interaction with fellow teachers and trainers from a wide range of disciplines
Share a personalized message with your friends.