You are on page 1of 2

Counts number of

classed enrolled in

Groups by each
student

Filter condition to
show only students
who have enrolled
in 2 or more classes

Orders the output


Output by maximum grade
first.
Syntax of Select
1. Includes the
column to be shown These two are
mandatory
2. From the tables

Example Usage of Select 3. The join condition to link the


tables in 2, so the relevant rows can
be fetched

4. Grouping on the fields in select if


records needs to be cosolidated

5. Having clause to filter the records


based on the gropping.
Union to
join two set 6. Order by a field in select

Sub query

You might also like