Cover | Table of Contents | Colophon
|
ISBN
|
Title
|
AuID
|
AuName
|
AuPhone
|
PubID
|
PubName
|
PubPhone
|
Price
|
|---|---|---|---|---|---|---|---|---|
|
1-1111-1111-1
|
C++
|
4
|
Roman
|
444-444-4444
|
1
|
|
ISBN
|
Title
|
AuID
|
AuName
|
AuPhone
|
PubID
|
PubName
|
PubPhone
|
Price
|
|---|---|---|---|---|---|---|---|---|
|
1-1111-1111-1
|
C++
|
4
|
Roman
|
444-444-4444
|
1
|
Title = Gone With the Wind ISBN = 0-12-345678-9 Price = $24.00
{ISBN,Title,Price}Books(ISBN,Title,Price)
Title = Gone With the Wind ISBN = 0-12-345678-9 Price = $24.00
{ISBN,Title,Price}Books(ISBN,Title,Price)
|
ISBN
|
|---|
0-12-333433-3, On Liberty, $25.00
0-12-333433-3, On Liberty, $25.00 0-103-45678-9, Iliad, $25.00 0-91-335678-7, Faerie Queene, $15.00 0-99-999999-9, Emma, $20.00 1-22-233700-0, Visual Basic, $25.00 1-1111-1111-1, C++, $29.95 0-91-045678-5, Hamlet, $20.00 0-555-55555-9, Macbeth, $12.00 0-99-777777-7, King Lear, $49.00 0-123-45678-0, Ulysses, $34.00 0-12-345678-9, Jane Eyre, $49.00 0-11-345678-9, Moby Dick, $49.00 0-321-32132-1, Balloon, $34.00 0-55-123456-9, Main Street, $22.95
{ISBN,Title,Price}
Books(ISBN,Title,PubID,Price)
{ISBN,Title,PubID,Price}|
ISBN
|
Title
|
PubID
|
Price
|
|---|---|---|---|
|
0-12-333433-3
|
On Liberty
|
1
|
$25.00
|
|
0-103-45678-9
|
Iliad
|
1
|
$25.00
|
|
0-91-335678-7
|
Faerie Queene
|
1
|
$15.00
|
|
0-99-999999-9
|
Emma
|
1
|
|
AuID
|
AuName
|
AuPhone
|
|---|---|---|
|
1
|
Austen
|
111-111-1111
|
|
10
|
Jones
|
123-333-3333
|
|
11
|
Snoopy
|
321-321-2222
|
|
12
|
Grumpy
|
321-321-0000
|
|
13
|
Sleepy
|
321-321-1111
|
|
2
|
Melville
|
222-222-2222
|
|
3
|
AUTHORS(AuID,AuName,AuPhone)
{PubID,PubName,PubPhone,YearFounded}{Title,PubID,AuID,PageCount,CopyrightDate}{PubID,PubName,PubPhone,YearFounded}{Title,PubID,AuID,PageCount,CopyrightDate}ISBN = 0-55-123456-9 Title = Main Street Authors = Jones, H. and Smith, K. Publisher = Small House
PubID → PubName{A1,. . .,Ak} → {B1,. . .,Bn}{A1,. . .,Ak} → {B}{PubName,PubPhone} → {PubID}{City,Street,HouseNumber,HouseColor,CityPopulation}{City} → {CityPopulation}{A1,. . .,Ak} → {B}{Title,PubID,AuID,Price,AuAddress}{Title,PubID,PageCount,Price}{Title} and {PubID}{Title} → {PageCount}
{Title} → {Price}
{PubID} → {PageCount}
{PubID} → {Price}{PageCount} → {Price}{PubID,PageCount} → {Price}{City,StreetName} → {ZipCode}{ZipCode} → {City}|
City
|
StreetName
|
ZipCode
|
|---|---|---|
|
Los Angeles
|
Hollywood Blvd
|
95000
|
|
Vine St
|
95000
|
{ZipCode}→{City}{A1,. . .,Ak} → {B}{ISBN,Title,Authors}{ISBN,Title,AuID} and {AuID,AuName}{City,StreetName} → {ZipCode}{ZipCode} → {City}|
City
|
StreetName
|
ZipCode
|
|---|---|---|
|
Los Angeles
|
Hollywood Blvd
|
95000
|
|
Vine St
|
95000
|
{ZipCode,City}{ZipCode,StreetName}|
ZipCode
|
City
|
|---|---|
|
95000
|
Los Angeles
|
As a direct consequence of good database design, we often need to use methods for piecing data from several tables into a single coherent form.