Answer: String Comparison
Find a detailed explanation about string comparison in SQL.
We'll cover the following...
We'll cover the following...
Solution
The solution is given below:
Code explanation
The explanation of the solution code is given below:
Line 2: The
SELECTstatement selects the columnENamefrom the tableEmployees. We useASto set an alias for the column.Lines 3–4: The
WHEREclause specifies the condition on which we want to retrieve the data from the table. Here, we use theLIKEandNOT LIKEoperator to filter the names that containJbut notH, orHbut notJ.
Recalling relevant concepts
We have covered the following concepts in this question:
Selective columns
Aliases
Filtering ...