KHERE SELECT EMP_NAME EMP_SALARY
FROM COHPARY
WHERE EMP_SALARY> = 25000,
Rahul Sharma! 25600
| vikes miteel | 26000
Fuaay sing 26000
rows in set (0
When we use relational operators with character data type, <
‘means earlier in the alphabet and > means later inthe
alphabet Bangalore “<" “Braj as “a comes before rin
alphabet.
Logical Operators
‘The logical operators compare two conditions ata time to
determine whether a row can be selected for the output.
Logical operators are also called boolean operators, because
these operators return a boolean data type value as TRUE, or
FALSE,
When retrieving data using a SELECT statement, you can
use these operators in the WHERE clause, which allows you
to.combin
ore than one condition.
Some ofthe Boolean/Logical operators used in SQL are as
follows
OPERATOR DESCRIPTION
AND Logical AND compares two expressions and
‘return true, when both expressions ae tue
on Logical OF compares two expressions and
retim true, when atleast one ofthe
expressions s true
Nor NOT takes single expression as an argument
‘and changes is value fom fle to true or foun
tet false, You can use an exclamation point
()inplace ofthis operator
CBSE Term Il | Computer Science Xil
Syntax
SELECT |*|
FROM