hi in mysql how can i search my records for customername that only start with c or g ? at the same time. i have tried the following query's
SELECT customerName FROM Customers WHERE customerName LIKE 'c%' or like 'g%';
SELECT customerName FROM Customers WHERE customerName LIKE 'c%' or text like 'g%';
SELECT customerName FROM Customers WHERE customerName LIKE '[c]%' or like '[g]%';
but cant get these strings to only show the customernames starting with c and g at the same time in one query
mysql> select * from customers;
+------------+--------------+--------------+----------------+---------+
| customerID | customerName | customerCity | customerRating | SalesID |
+------------+--------------+--------------+----------------+---------+
|          1 | Hoffman      | London       |            100 |       1 |
|          2 | Giovanni     | Rome         |            200 |       5 |
|          3 | Liu          | San Jose     |            200 |       2 |
|          4 | Grass        | Berlin       |            300 |       2 |
|          5 | Clemens      | London       |           NULL |       1 |
|          6 | Cisneros     | San Jose     |            300 |       4 |
|          7 | Pereira      | Rome         |            100 |       3 |
+------------+--------------+--------------+----------------+---------+
SELECT customerName FROM Customers WHERE customerName LIKE 'c%';
works and shows only c names.
SELECT customerName FROM Customers WHERE customerName LIKE 'g%';
works and shows only g names.
but i need them to show at the same time. please help.
 
     
     
     
    