Karteikarten
FMJC.C9
Karten in diesem Stapel (19)
- 1What is a flat file databasesKeep all the records in one table
Each row corresponds to one record
Each column corresponds to a dif. field
Tables are 2D Structures - 2Features of flat fileDuplicate data is stored
...so storage is wasted (data redundancy)
Data is often inconsistent
...because there may be more than one version of item...everything is interlinked
...so difficult to change the data format (may have to re-write whole file)
Lack of flexibility - difficult to obtain new reports - 3What are relational databasesKeep data as a number of related tables
...thus avoiding data duplication
...and inconsistent data
Easier to change data & format
Data can be easily added
Easy to control access to data - 4Why may CustomerFinance and Customer tables be stored seperatelySecurity and privacy reasons
Different levels of access rights due to sensitive data - 5Why CUSTOMER and ORDER may be stored seperatelyCustomer may have many orders
Seperate storage -> avoids duplication
Avoids data inconsistencies - 6What happens if Many To ManyNot in 3rd Normal Form
Breaks rules of the language
Needs a linking entity - 7What is an entityA thing about which there is a need to record data
- 8What is an AttributeProperty of an entity
- 9What is a Primary KeyUnique value which identifies a record
- 10What is a Secondary KeyA unique value which enables a table to be accessed in a different order
- 11What is a Foreign KeyPrimary key from one table is used as an attribute in another table
Used primarily to link tables - 12Define primary keyUnique Identifier in a table
- 13Explain the use of a secondary keySearch for a group of records
e.g. CD's with the same artiste - 14Foreign key is also a primary key but a primary need not be a foreign keyForeign key links tables
(to represent many to one relationship)
...so that only one record is accessed
...no duplication
Primary key may be in a non-relevant table
...therefore wont be a foreign key - 15Explain the term data dictionaryA file containing descriptions of data in database used by database managers
...when altering structures
Uses metadata to define the tables - 16Examples of information that data dictionary storesNames of tables/columns
Characteristics of data (length,type)
Restrictions on values
Meaning of data columns
Relationships between data
Identifies Primary,Foreign keys
Identifies indexes & access rights - 17Explain the term reportPresentation of selected data
..usually in form of table or specific layout
May be defined in advance
..so the user does not need to set up
e.g. Query / Display Order - 18Why are views made available to users of a databaseSo users can access data that they need
Users don't need specialist knowledge
To protect data
Prevent unauthorised access - 19Difference in CHAR and VARCHARCHAR - Fixed length
VARCHAR - Variable length
Informationen
- Beschreibung
- Karteikarten am FMJC.C9, erstellt von FMJC. am 19/06/2015.
- Erstellt von
- FMJC.
- Aufrufe
- 0
- Bewertung
Mehr zu Relational Databases and the Relational Model