MYSQL

SOLUTION

Write SQL statements for the following based on table Garments:
  1. Create above table in MySQL.
  2. Insert records.
  3. To display the detail of class XII students in descending order of their marks.
  4. Display all the details of students in ascending order of name.
  5. Find the maximum marks of the student for each class.
  6. Count the students class wise is display only those number who is more than 2.
  7. Display unique cities from the table.

CREATE DATABASE . 

ACCESS DATABSE.

Sol 1 :- Create TABLE STUDENT. 

Sol 2 :-  INSERT INTO STUDENT TABLE.

Sol 3 :- To display the detail of class XII students in descending order of their marks.

Sol 4 :- Display all the details of students in ascending order of name.

Sol 5 :- Find the maximum marks of the student for each class.

Sol 6 :-  Count the students class wise is display only those number who is more than 2.

Sol 7:-  Display unique cities from the table.

Leave a Reply

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

sign up!

We’ll send you the hottest deals straight to your inbox so you’re always in on the best-kept software secrets.