11. databases and software development Flashcards
entity
is a category of object, person, event or thing of interest to an organisation about which data is to be recorded
attributes
a characteristic specification that defines a property or feature about an entity stored in a database
entity relationship modelling
a method of abstractly describing the data tables and the relationships between them visually. they can be used to reduce redundancy and construct a relational database.
entity identifier
uniquely identifies the entity e.g. primary key
primary key
a unique identifier that identifies each record in a table. the primary key is underlined.
relational databases
a database where separate tables are made for each entity, and relationships between entities are represented by foreign keys
foreign key
a linking attribute that joins two tables in a relational database by being a primary key in one and a foreign key in the other
relationships between entities
- one-to-one
- one-to-many
- many-to-many
relational database (TB).
is a collection of tables in which relationships are modelled by shared attributes
normalisation
is a process used to come up with the best possible design for a relational database.
tables should be organised in such a way that
- no data is unnecessarily duplicated
- data is consistent throughout the database
- the structure of each table is flexible enough to allow you to enter as many or as few items as required
- the structure should enable a user to make all kinds of complex queries relating data from different tables
first normal form
contains no repeating attribute or groups pf attributes
second normal form
if the table is in 1NF and contains no partial dependencies
partial dependency
one or more of the attributes depends on only part of the primary key, which can only occur of the primary key is a composite key
composite key
a primary key made up from two or more other keys