0

LIKE

LIKE You are having dinner at a restaurant and decide to order a chocolate dessert. Here is the desserts menu: Write a query to output only chocolate desserts. Use the LIKE operator, and don't forget about "%".

3rd Oct 2021, 10:43 AM
JM Tyler Dylan Pineda
JM Tyler Dylan Pineda - avatar
4 Answers
+ 1
SELECT * FROM desserts WHERE Name like'%checolate%' order by price ASC;
12th Mar 2023, 1:20 PM
Berhanu Tsehay
Berhanu Tsehay - avatar
0
JM Tyler Dylan Pineda did you try writing the query as they described? What was the result?
4th Oct 2021, 10:01 AM
Brian
Brian - avatar
0
select * from suppliers where city NOT IN ('london','Paris') and status is not Null
12th Mar 2023, 2:23 PM
Berhanu Tsehay
Berhanu Tsehay - avatar
- 1
Use LIKE '%Chocolate%' statement for your program.
3rd Oct 2021, 10:58 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar