Chapter 16 Database Concepts Flashcards
What is a database?
structured and persistent store of data that is used on a computer system
What is an entity?
Object that data can be stored about
Example of an entity?
customers, products,sales
What does an entity become in a database?
A table
What is an attribute? What will it become in a table?
Something that an entity has , a property of it e.g. an entity of Products may have product id, stock, price etc.
It will become the columns
What do databases allow us to do?
- retrieve data quickly
- be updated easily
- change the view of it (for us or limit users)
- in 3NF avoids redundancy and limits storage use
meaning of structured in the definition of a database?
data i organised for ease of processing
meaning of persistent in the definition of a database?
can’t be lost, stored on secondary storage
What is a record?
a row in a table, it contains a number of fields containing data relating to a specific item within an entity
What is a field?
Something that stores one piece of data. property of an record in an entity
What does atomic mean?
Cannot be broken down anymore
What is a flat file database?
A database that consists of a single file/ entity
What would a flat file database be suitable for ?
e.g. all members in a club
What do flat file databases cause?
a lot of redundancy
What is redundancy?
- unnecessary repetition of data
- leads to inconsistencies
How is an entity usually written?
Entity1(Attribute1,Attribute2,Attribute3)
e.g. Customers(CustomerID,DOB,Address,Phone Number)
What is special about flat file databases?
They’re unnormalised