English

When we type first letter of a contact name in our contact list in our mobile phones all the names containing that character are displayed. Can you relate SQL statement with the process?

Advertisements
Advertisements

Question

When we type first letter of a contact name in our contact list in our mobile phones all the names containing that character are displayed. Can you relate SQL statement with the process? List other real life situations where you can visualize an SQL statement in operation.

Short Answer
Advertisements

Solution

SELECT * FROM CONTACTS
WHERE Name LIKE 'A%';

This displays all contact names starting with A.

Other real-life situations where SQL statements are used:

  • Online shopping: Searching for products by name or category.
  • Banking: Retrieving account details and transaction records.
  • Schools: Finding students’ marks, attendance, or other records.
  • Hospitals: Searching for a patient's records.
  • Railway/Airline booking: Checking available seats and booking details.
  • Libraries: Searching for a particular book or author.
shaalaa.com
  Is there an error in this question or solution?
Chapter 8: Introduction to Structured Query Language (SQL) - Intext Questions [Page 166]

APPEARS IN

NCERT Informatics Practices [English] Class 11
Chapter 8 Introduction to Structured Query Language (SQL)
Intext Questions | Q 19. | Page 166
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×