My SQL Prog
My SQL Prog
name VARCHAR(50),
age INT,
department_id INT
);
VALUEs
FROM employees
GROUP BY department_id;
FROM employees
GROUP BY department_id
R elational operators, also known as comparison operators, are used in SQL (Structured Query
Language) to compare values and determine relationships between them. These operators
are often used in the WHERE clause of SQL queries to filter or select specific rows based on
certain conditions. Here are the common relational operators:
1.Equal To (=):
SELECT * FROM employees WHERE salary NOT BETWEEN 60000 AND 80000;
7. IN:
8. NOT IN:
9. LIKE:
Used to match a pattern in a string value. "%" is a wildcard that matches any number of characters,
and "_" is a wildcard that matches a single character.