MySQL

MySQL Examples and Tutorials

MySQL NOT BETWEEN Operator

In this tutorial, we will learn about the MySQL NOT BETWEEN operator. In the MySQL BETWEEN operator article, we saw how we can return records within a range. It also helped us avoid conditions with the AND operator and making our code more readable and effective.  MySQL NOT BETWEEN is a combination of two operators …

MySQL NOT BETWEEN Operator Read More »

MySQL BETWEEN Operator

In this tutorial, we’ll learn about MySQL BETWEEN operator. Suppose you are a school teacher and you want to find out the students who scored marks between 60 and 80 in Science. You could make use of the comparison operators along with the AND operator but a more effective way is using the MySQL BETWEEN …

MySQL BETWEEN Operator Read More »

MySQL NOT Operator

In this quick tutorial, we’ll take a look at the MySQL NOT operator. Suppose you are a teacher and you want a list of students who were not present for all 100 days in a term. In other words, the condition of students present for 100 days should NOT be satisfied, and the resulting output …

MySQL NOT Operator Read More »

MySQL OR Operator

In this tutorial, we’ll work on the MySQL OR operator. Suppose you are a teacher and you want to find out students who scored above 90 in their Maths or Science exams to be considered for the position of class monitor. So, in short, if a student scores above 90 in either Maths or Science, …

MySQL OR Operator Read More »

MySQL NOT IN Operator

The MySQL NOT IN Operator does the exact opposite of the MySQL IN Operator. The NOT IN operator checks if a value is not present in a set of values and returns those values. Suppose you are a boarding school administrator and you want to know which of your students are not from Pune or …

MySQL NOT IN Operator Read More »