Flashcards
databases
Cards in this deck (15)
- 1what is a databasea database is an organised collection of data,
organising data into a database allows for easy: adding, modification, deletion, searching - 2benefits of electronical databaseeasier to retrieve, add, delete, update and modify data.
easier to back up and make copies of data.
can be accessed by multiple people at the same time and from different locations - 3Database termsData file/entity: the table in which the data is stored
table records: the rows containing different data
table fields: the columns containing all the data - 4what is a flat file database?a database that contains only a single table and is often stored as a csv. can be created very easily
- 5benefits of flat file 3 usesthey are quick to set up, they require little expertise to maintain and are suitable for storing small amounts of data
can be used to store contact details
for small product databases
maintaining media collection - 6disadvantages of flat filethey can become inefficient
there can be a lot of repetitive data which can take up unnecessary space
they can be slow to query
become difficult to maintain - 7benefits/purpose of relational database?ensures data consistency - meaning individual data is uniform and the same throughout the database
ensures data integrity - meaning is it consistent, accurate and overall trustworthy
reduces data redundancy- reducing repetition of data in one database
improves data independence- ability to modify data without making changes to the programs and systems that run it
faster searching and sorting- smaller tables with fewer field will be produced from normalisation, quick searching, sorting due to less data involved - 8how can table be made more efficient: (splitting tables)can splitting table of information into multiple tables. (removed a great deal of the repeating data)
- 9What is a one to many relationship and different examplesits a link that tells use how tables are related to each other
one to many relationship: when a record in one table can be related to many records in another. (customer can have many orders, but orders can only have one customer) - 10how to identify a one to many relationship.write out the two OBJECTS we're dealing with, does object 2 have many object 1s or some object 1 have many object 2s
- 11what is a relational database?a relational database is a collection of tables in which relationships are modelled by shared attributes. They are linked by primary and foreign keys
- 12what is the primary keythe primary key is one or more fields which can uniquely identify a record
- 13what is a foreign keya foreign key refers to an attribute that creates a link between two tables. it is an attribute that is common in both tables.
a foreign key in one table is a primary key to the table which links to it. - 14what are the 3 types of table links?(one to one) - when one record of data is only uniquely linked to one other piece of data
one to many- when one record has multiple associations with another record
many to many- when multiple records can individually have multiple links to other records - 15what is a secondary key? what's the differencea secondary key is a key used alongside the primary key to identify a specific record
a primary key will only return one unique record that is searched for. a secondary key may return more than one value
Information
- Description
- Highers computing (semester 2) Flashcards on databases, created by Daniel Nnajiuba on 21/02/2022.
- Created by
- Daniel Nnajiuba
- Views
- 2
- Rating
More on Relational Databases and the Relational Model