Databases 1 Flashcards
what is a database?
its a collection of data items structured so that data can be searched and retrieved when necessary
what is a flat file?
the entire base is stored in a single file and there is one row for each record and one column for each field
what is data duplication?
this is the duplication of data
what is data inconsistency?
the more often data has to be keyed the more chance there is for errors in data entry
what is poor data integrity?
data that is erroneous or inconsistent is not reliable
why is relationship databases more powerful?
its a more powerful way of storing data as the relationships allow data to be retrieved from a number of tables using a single query and there is less data redundancy
what is a primary key?
consists of more than one attribute that identifies one record from any other
what is a foreign key?
its a primary key in one entity which is included in another entity to link the two tables
how are relationships formed?
foreign keys that link tables together
constraint’s help control data integrity and fix problems such as:
entering project name in a field where a project name is expected
having two projects with the same project ID
maintaining data integrity
what does the features of constraints provide?
allows us to set field properties, link tables and set constraints help to increase the reliability of the data
what are some of the operations that can be allowed or disallowed to a user?
SELECT
INSERT
DELETE
ALTER
CREATE
what can SQL allow you to do?
allows most users to query and manipulate data, as well as protect it from unwanted updates, deletions or other errors
what is the relational models portability?
its standard
by adhering to the rules of the relational model you ensure that your data can be transferred between relational database systems relatively easily
what is an attribute?
an individual data item within an entity.