Database 2 Flashcards
what is un-normalised data?
its characterised by redundancy and inconsistencies, there are repeated fields and multiple values of attributes
what is normalised data?
it involves the application of a set of rules to remove undesirable characteristics and problems and can be used to test the correctness of an ER model.
1NF?
all attributes are atomic and entities do not have repeating groups
2NF?
it fulfils the conditions of 1NF and all non-key attributes in the relation are fully dependent on the primary key
what are non-key attributes?
they are only partially dependent on the key are removed to a new entity along with a copy of their determinant
3NF?
as long as an attribute does not depend on another attribute which is not the primary key- this is called transitive dependency
advantages of normalisation
it will take up less storage because the duplicated data will be minimised
information retrieval will be more efficient because data is structured effectively- will be processed faster
less redundancy means less inconsistencies in data because only have been entered once
data integrity will be increased
disadvantages of normalisation
its a complex process required to create the database structure
can generate more tables than an un-normalised database
slow to run due to complex database and queries
its necessary to assign more relationships to interact with larger numbers of tables
what is a data dictionary?
its a file containing descriptions of the structure of the data stored in a database