Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,14 @@ We can add in a WHERE clause to show only the lines for the student with the git
ON Students.github = Grades.student_github
INNER JOIN Projects
ON Grades.project_title = Projects.title
WHERE github = "chriszf";
WHERE Grades.github = "chriszf";

Now that everything looks good, we once again filter down to only the columns we want. For the final step, write the query that selects only the columns that match our example table above:

first_name, last_name, project_title, grade, max_grade

You may have noticed a different way of referring to columns here - we reference them by table_name.column_name. This is because we have a github column in both tables, and SQL can't be sure which one we mean. If we refer to it by it's "full name", then we can make sure SQL knows where we want it to pull the data from.

Now, try selecting the rows for different users in our system.

Step 7: Views
Expand Down