Operators In SQL Operators: SQL generally contains some reserved words that are used to perform operations such as Arithmetical, Comparison and Logical Operations etc. These reserved words are known as Operators. Generally, there are three types of operators in SQL: i. SQL Arithmetic Operators ii. SQL Comparison Operators iii. SQL Logical Operators SQL Arithmetic Operators Let assume variable A holds 20 and variable B holds 60 then: Operators Description Example + Add A+B= will give 80 - Subtract A-B= will give -40 * Multiply A*B= will give 1200 ...
Switch Statement: The switch statement is just like if-else-if ladder statement. It executes one statement from multiple conditions. It works with a byte, short, int, long, and String. In other words, we can say the Switch case statement is a substitute for a long if statement that compares to several integral values. Syntax of Switch statement in java Enhance Switch or Switch With Arrow: The new syntax uses the -> operator instead of the colon we're used to with switch statements. Also, there's no break keyword. Another addition is the fact that we can now have comma-delimited criteria. Syntax of Enhance Switch in java