Lab #19
My name is: Spencer Johnson
Authors(ISBN list, Author I.D.,
Author’s Name, Year Born)
Publishers(Pub I.D., Name,
Company Name, Address, City, State, Zip, Telephone, Fax, Comments)
Title Author(ISBN, Author I.D.)
Titles(Title, Year Published,
ISBN, Pub I.D., Description, Notes, Subject, Comments)
AUTHORS(AUT_ID, AUTHOR, YEAR BORN), PUBLISHERS(PUBLISHER,NAME, CITY, STREET, ADDRESS, COMPANY NAME) TITLE AUTHOR(ISBN,AU_ID) TITLE (TITLE, YEAR ID, ISBN, PUBLISH ID,DESCRIPTION, NOTES, SUBJECTS, COMMENTS)
Au_ID(Title Author, Authors), Pub_ID(Titles,
Publishers), ISBN(Title Author, Titles)
IBSN(TITLE AUTHOR, TITLES, PUBLISHERS)
AU_ID(TITLES, AUTHORS) PUB_ID, AUT_ID(AUTHORS, TITLE AUTHOR)
That the data is repeated or a duplicate.
HOW
MANY FIELDS THERE ARE CONNECTED TO THAT TABLE.
The Au_ID link connects each author in the author table to a table that matches authors and the titles of their books. This is a many-many relation because one author has many titles and one title can have several authors. Pub_ID links all of the books in the Titles table published by one publisher to that publisher’s data. Similarly, ISBN links each title in the Titles table to the authors that contributed to that title by linking to the Title Author table where there is a matching ISBN entry paired with each author_ID.
Duplication signifies the ability to link information from one table to another.
IT
SIGNIFIES THAT BOTH COLUMNS EXIST IN BOTH TABLES MEANING THAT ARE CONNECTED OR
LINKED TOGETHER.
MULTIPLE connections
BY GROUPING CEARTAIN FIELDS TOGETHER THAT CONTAINED SIGNIFICANT INFORMATION. Why not have just one table with each of the different fields as a column? IT PROBALY WOULD BE TO CONFUSING AND ALSO IT WOULD HAVE NOT BEEN EASY TO SEARCH FOR A CEARTAIN FIELD.
Which ISBN numbers are associated with each
author. It’s a link between Authors and
Title Author.
THIS COLMUN IDENTIFIES THE
AUTHORS USING AN ID NUMBER TO TELL WHAT POSITION OR ORDER THE AUTHOR IS IN.
The join operation.
THE RESULT IS
BIGGER FROM THE TABLE WHERE THE MOST INFORMATION IS EXTRACTED FROM THE LEFT AND
BOTH QUERIES ARE JOINED TOGETGHER, THUS CAUSING THE RESULTED TABLE TO EXPAND.
PROJECTION.
Table3(Author I.D., Author’s Name, Year Born, Title, Year
Published, ISBN, Pub I.D., Description, Notes, Subject, Comments, Name, Company
Name, Address, City, State, Zip, Telephone, Fax, Comments)
TABLE
1(TITLE, ISBN, TITLE ISBN) TABLE 2(TITLE,AUTHOR,
ISBN, TITLE ISBN, TITLE PUBLISH ID) TABLE 3(TITLE, ISBN, TITLE ISBN,
TITLE,AUTHOR, ISBN, TITLE ISBN, TITLE PUBLISH ID)
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0";
"MSADODC.OCX"
Object =
"{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0";
"MSDATGRD.OCX"
Begin VB.Form Form1
Caption =
"Form1"
ClientHeight = 5730
ClientLeft =
60
ClientTop =
345
ClientWidth = 7440
LinkTopic =
"Form1"
ScaleHeight = 5730
ScaleWidth =
7440
StartUpPosition
= 3
'Windows Default
Begin
MSDataGridLib.DataGrid DataGrid1
Bindings = "Form db.frx":0000
Height =
1695
Left =
1800
TabIndex = 0
Top = 1320
Width =
4335
_ExtentX = 7646
_ExtentY = 2990
_Version = 393216
AllowUpdate = -1
'True
HeadLines =
1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1033
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear
= 0
LCID = 1033
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty
Column01
EndProperty
EndProperty
End
Begin
MSAdodcLib.Adodc Adodc1
Height =
330
Left = 1800
Top = 3000
Width =
4335
_ExtentX = 7646
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled =
-1
Connect =
"Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data
Source=C:\Program Files\Microsoft Visual Studio\VB98\Biblio.mdb"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security
Info=False;Data Source=C:\Program Files\Microsoft Visual
Studio\VB98\Biblio.mdb"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password =
""
RecordSource = "Authors"
Caption =
"Authors table from biblio.mdb"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0
'False
Italic = 0
'False
Strikethrough = 0
'False
EndProperty
_Version = 393216
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub
Adodc1_WillMove(ByVal adReason As ADODB.EventReasonEnum, adStatus As
ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
End Sub