From dc6a1edd43d510ce7b6096a54569e0c8fc792fa5 Mon Sep 17 00:00:00 2001 From: Jim Flores Date: Thu, 11 Mar 2021 14:18:20 -0600 Subject: [PATCH] Fixed line number inconsistency in the relationships.rst page. --- src/chapters/sql-part2/relationships.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chapters/sql-part2/relationships.rst b/src/chapters/sql-part2/relationships.rst index a90057eb..1fc2aaba 100644 --- a/src/chapters/sql-part2/relationships.rst +++ b/src/chapters/sql-part2/relationships.rst @@ -157,7 +157,7 @@ For our school example, the code to create ``teachers`` could look like: FOREIGN KEY (course_id) REFERENCES courses(course_id) ); -Note that in line 7, the name given to the foreign key column in ``teachers`` +Note that in line 8, the name given to the foreign key column in ``teachers`` matches the name of the primary key column in ``courses``. Following this convention helps you keep the relationships between your tables clear.