1WHERE CustomerName LIKE 'a%'
2--Finds any values that start with "a"
3WHERE CustomerName LIKE '%a'
4--Finds any values that end with "a"
5WHERE CustomerName LIKE '%or%'
6--Finds any values that have "or" in any position
7WHERE CustomerName LIKE '_r%'
8--Finds any values that have "r" in the second position
9WHERE CustomerName LIKE 'a__%'
10--Finds any values that start with "a" and are at least 3 characters in length
11WHERE ContactName LIKE 'a%o'
12--Finds any values that start with "a" and ends with "o"
1-- example
2SELECT Id, ProductName, UnitPrice, Package
3 FROM Product
4 WHERE ProductName LIKE 'Cha_' OR ProductName LIKE 'Chan_'
1(Like) Operator for partial searches using wildcard '%' and '_'
2For Example:
3Select * From Employees
4Where last_name LIKE '_a%';
5