मराठी

Ms. Ravina is using a table 'customer' with custno, name, address and phonenumber. She needs to display name of the customers, whose name start with letter 'S'.

Advertisements
Advertisements

प्रश्न

Ms. Ravina is using a table 'customer' with custno, name, address and phonenumber. She needs to display name of the customers, whose name start with letter 'S'. She wrote the following command, which did not give the result.

Select * from customer where name="S%";

Help Ms. Ravina to run the query by removing the errors and write the correct query.

अति संक्षिप्त उत्तर
Advertisements

उत्तर

The LIKE operator must be used instead of = for pattern matching. The % wildcard represents zero or more characters.

SELECT *
FROM customer
WHERE name LIKE 'S%';
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 10: Structure Query Language - EXERCISE [पृष्ठ १९६]

APPEARS IN

सीबीएसई Computer Science with Python [English] Class 12
पाठ 10 Structure Query Language
EXERCISE | Q 2. | पृष्ठ १९६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×