Types of SQL Operators
SQL Arithmetic Operators
- ADD
- Subtract
- Multiple
- Divide
- Modulo
SQL Bitwise Operators
- And
- OR
- exclusive OR
SQL Comparison Operators
- Equal to
- Greater than
- Less than
- Greater than or Equal to
- Less than or Equal to
- Not equal to
SQL Logical Operators
- All
- And
- Any
- Between
- Exists
- In
- Like
- Not
- OR
- Some
SQL ALL Operator
The AND operator is Logical operator.The AND operator returns TRUE if all the statements separated by AND are TRUE.
Syntax
SELECT
[ID]
,[Category]
,[SubCategory]
,[Type]
,[Direction]
,[Model]
,[Side]
,[Supplier]
,[ItemCode]
,[ItemName]
,[PurchasePrice]
,[ReorderPoint]
,[OpeningStock]
,[Location]
,[MeasurementUnit]
FROM [tbl_ItemR]
WHERE PurchasePrice > 8000 and OpeningStock > 0
The result of above SQL Statement is shown in Fig. below.
The Result returned by the above query shows all items where the purchasing price is greater than 8000 and opening stock is greater than 0.
For further question please mail: brainstormiert@gmail.com
SQL Any Operator
SQL All Operator