The diagram looks similar to an ERD diagram and to build it do the following:
• Start with any table in the FROM clause and put it on paper (the easiest way to draw these diagrams is by hand). In my case I started with the first table in the FROM clause named STUDENT.
• Take the next table, which in my case is REGISTRATION, and place it either above or below the existing tables based on the relationship. Since the REGISTRATION relates to the STUDENT table uniquely, i.e. one row in REGISTRATION points to one row in the STUDENT table but one row in STUDENT will point to many rows in REGISTRATION, I put it above and draw an arrow downwards.
• Take the next table, CLASS - one row in REGISTRATION points to one row in CLASS, one row in CLASS points to multiple rows in REGISTRATION so I put it below REGISTRATION with another downward pointing arrow.
The next step is to further understand the criteria used in the query to limit the number of rows from each of the tables. The first criterion to explore is anything in the WHERE clause that will limit the result set from the REGISTRATION table. In this case the criteria is: