How are Database programs stored?
one large, flat file
What do Flat Files do?
increase the chance of typos and are prone to inconsistent dat
What is a Relational Database?
contains two or more tables that are linked (related) to each other by unique and identifying key fields, such as ProductID or Invoice Number
What are Separate Tables?
Organize and Separate Data fields into tables with specific subjects
What are Assign Keys?
a unique key field for each main table to link to data in other tables
What are Atomize Fields?
Fields that are broken into smallest single values
What is Normalization?
eliminates data duplication, decreases data entry errors and inconsistencies, reduces file size, and streamlines the search for necessary information.
What is a common practice when assigning field names?
avoid using spaces,
What should every database table have?
a primary key field with a unique ID that will not be the same for any two database records.
What does it mean if a table contains a primary key?
then a value must be entered for that key field every time a new record is added.
Whats a Foreign Key?
is a field in a secondary table that corresponds and links to the primary key field in the main table,
What must the Foreign key have?
the same data type as the primary key, except in the case of AutoNumber
What must exist in Tables?
Relationships
What are Relationships?
Relationships in databases connect data in one table to data stored in other table
What are the 3 type of relationships?
One-to-one
One-to-many
Many-to-many
What are One to One Relationships?
means that each record in Table A can have only one matching record in Table B
How often is One to One Relationships used?
This is the least frequently used relationship
What is Required for One to One Relationships
Requires both of the related fields to be primary keys.
What are One to Many Relationships?
means that each record in Table A can have multiple matching records in Table B,
What are Many to Many Relationships?
when two tables each have many matching records in the other table, but they do not share key fields, so they use a third junction table to tie together other tables and complete the relationship
What is ERD?
Entity Relationship Diagram
What does Entity Relationship Diagram do?
helps to model and display relationships between entities, specifically the relationship between tables and fields, as established by key fields
What is Short Text when it comes to Data Types?
Default data type that contains up to 255 characters
What is Long Text when it comes to Data Types?
Text entries that contain between 1 and 63,999 characters