[Assignments] Simple Queries in SQL — Chapter 12 Assignments (Q/A)

|
Table of Contents

10. Write SQL commands for the following on the basis of given table STUDENT:

StudentNoClassNameGAMEGrade1SUPWGrade2
107SameerCricketBPhotographyA
118SujitTennisAGardeningC
127KamalSwimmingBPhotographyB
137VeenaTennisCCookingA
149ArchanaBasketballALiteratureA
1510ArpitCricketAGardeningC
Table : STUDENT
  1. Display the names of the students who are getting a grade ‘C’ in either GAME or SUPW.
  2. Display the different games offered in the school.
  3. Display the SUPW taken up by the students, whose name starts with ‘A’.
  1. SELECT Name FROM STUDENT
    WHERE Grade1 = 'C' OR Grade2 = 'C';
  2. SELECT DISTINCT Game FROM STUDENT;
  3. SELECT Name, SUPW AS "SUPW WITH NAME A" FROM STUDENT
    WHERE Name LIKE "A%";
"Spread the light within, illuminate the hearts around you. Sharing is not just an action, but a sacred journey of connecting souls."~ Anonymous

Leave a Reply

Your email address will not be published. Required fields are marked *