InterviewSolution
| 1. |
SQL Operators |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Answer» Operators are used in SQL to form complex expressions which can be evaluated to code more intricate queries and extract more precise data from a database. There are 3 main types of operators: Arithmetic, Comparision and Logical operators, each of which will be described below.
Arithmetic Operators allows the user to perform arithmetic operations in SQL. The table below shows the list of arithmetic operators available in SQL:
Bitwise operators are used to performing Bit manipulation operations in SQL. The table below shows the list of bitwise operators available in SQL:
Relational operators are used to performing relational expressions in SQL, i.e those expressions whose value either result in true or false. The table below shows the list of relational operators available in SQL:
Compound operators are basically a combination of 2 or more arithmetic or relational operator, which can be used as a shorthand while writing code. The table below shows the list of compound operators available in SQL:
Logical operators are used to combining 2 or more relational statements into 1 compound statement whose truth value is evaluated as a whole. The table below shows the SQL logical operators with their description:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||