You are on page 1of 5

Answers to Lab Activity on MySQL Commands 1

1. Display all tracks sorted by TrackName in alphabetical order.

2. Display all strands of Academic Track sorted by Acrocode in alphabetical order.

3. Display all strands of TVL Track sorted by Acrocode in reverse-alphabetical order.

4. Rename the Acrocode field of the etracks table to Code.

5. Display all the fields of the etracks table.


Answers to Lab Activity on MySQL Commands 2

6. Rename the Acrocode field of the estrands table to Code.

7. Display all the fields of the estrands table.

8. Display the StrandName of PROG.

9. Make sure that the data type of the SectionID field in the esections table is int.

10. Display all fields in the esections table.


Answers to Lab Activity on MySQL Commands 3

11. Display all sections sorted by SectionID from lowest to highest.

12. Display the LastName, FirstName, and MiddleName of students who are taking up ABM strand.

13. Display all information of students who are in 11th Grade.


Answers to Lab Activity on MySQL Commands 4

14. Display all information of students who are in 12th Grade sorted by LastName in alphabetical order.
Answers to Lab Activity on MySQL Commands 5

15. Display the students StudentID, LastName, and FirstName together with their GradeLevel, Strand
Code, and SectionName.

You might also like