Q. Write SQL commands for the following on the basis of given 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'.


Answer:-

(1)
Select name from student
Where grade1 = "C" or grade2 = "C" ;

(2)
Select distinct GAME from student ;

(3)
Select Name, SUPW from student.
Where name like “A%” ;

24 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. Display the names of the students who have have obtained Game and SUPW
    CLUB

    ReplyDelete
    Replies
    1. I can not understand what you want to say ?????.

      Delete
  2. The 3.question, cannot understand

    ReplyDelete
  3. Shouldn't SUPW be also selected frm the table for question 3

    ReplyDelete
  4. 1 questions, answer is not working

    ReplyDelete
  5. Please try to put correct answer on your site ...

    ReplyDelete
  6. 1st and is wrong grade 2 is not in table itself

    ReplyDelete
  7. Appreciate your work ..👍

    ReplyDelete
  8. Q3 me display supw bola h tho name tho name ko display nhi Karay ge n
    Select supw from student
    Where name like 'a%';
    Ye hogi coding tho

    ReplyDelete
  9. in 3rd part it should be supw not spuw

    ReplyDelete
  10. Keep up the good work man..."am loving it"

    ReplyDelete
  11. Bruh the admin still alive (I mean active in a funny way)

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post