@@ -417,7 +417,7 @@ INSERT INTO Artist (name, eyes)
417
417
418
418
\index{primary key}
419
419
Now we have two tables but we need a way to * link* rows in the two tables.
420
- To do this, we need why we call 'keys'. These keys will just be integer numbers
420
+ To do this, we need what we call 'keys'. These keys will just be integer numbers
421
421
that we can use to lookup a row in different table. If we are going to make
422
422
links to rows inside of a table, we need to add a * primary key* to the rows in the
423
423
table. By convention we usually name the primary key column 'id'. So our
@@ -478,7 +478,7 @@ New York|25|Frank Sinatra|blue
478
478
While it might seem a little clunky and your instincts might tell you that
479
479
it would be faster just to keep the data in one table, it turns out the
480
480
the limit on database performance is how much data needs to be scanned
481
- when retrieving a query. While they details are very complex, integers
481
+ when retrieving a query. While the details are very complex, integers
482
482
are a lot smaller than strings (especially Unicode) and far quicker to
483
483
to move and compare.
484
484
@@ -497,7 +497,7 @@ of our data model.
497
497
498
498
\index{Crow's Foot diagrams}
499
499
While there are many graphical representations of data models, we will use
500
- one of the "classic" appraches , called "Crow's Foot Diagrams" as shown in Figure \ref{figvrbo2m}.
500
+ one of the "classic" approaches , called "Crow's Foot Diagrams" as shown in Figure \ref{figvrbo2m}.
501
501
Each table is shown as a box with the name of the table and its columns. Then where there
502
502
is a relationship between two tables a line is drawn connecting the tables with
503
503
a notation added to the end of each line indicating the nature of the relationship.
@@ -877,10 +877,10 @@ for many courses and a course will have many users on its roster.
877
877
878
878
It is pretty simple to * draw* a many-to-many relationship as shown in Figure \ref{figm2m}.
879
879
We simply draw two tables and connect them with a line that has the "many" indicator on both
880
- ends of the lines. The problem is how to * implement* the raltionship using primary keys and
880
+ ends of the lines. The problem is how to * implement* the relationship using primary keys and
881
881
foreign keys.
882
882
883
- Before we explore how we implement many-to-many relationships, lets see if we could hack
883
+ Before we explore how we implement many-to-many relationships, let's see if we could hack
884
884
something up by extending a one-to many relationship.
885
885
886
886
![ A Many to Many Relationship\label{figm2m}] ( height=1.5in@../images/many-to-many )
0 commit comments