Professional Documents
Culture Documents
Cmam301 0 Database
Cmam301 0 Database
Database
A collection of information that is related to a particular subject or purpose
Functions of DBMS
Efficient data storage, update, and retrieval User accessible catalog Concurrency control Transaction control Recovery services Security and authorization services Integrity facilities
Advantages of DBMS
Subschema a provide each user with particular or unique view of the database Data independence systems ability to hide the details of the physical storage of information from the application programs, or the users views of access techniques and methods Structure changes are transparent Data sharing centrally stored information is current and consistent and everyone can have access
Disadvantages of DBMS
Secondary (disk) storage DBMS require more storage space than flat files Additional people database experts may be needed to operate system
Data model
A data model is an abstract representation of a database system providing a description of the data and methods for accessing the data managed by the database Hierarchical 1960s through early 1970s Network - 1960s through early 1970s Relational 1970s
Relational Database
A collection of relations A table is a relation that consists of rows (records) and columns (attributes).
Properties of relations
The entries in each column of any row are single valued Each attribute of a given relation has a distinct name called the attribute name Every value in a column contains values for that column only, and the values are of like data type The order of the rows is unimportant The order of the columns in relation to each other is unimportant Each row is unique from all other rows in the relation
Table Relationships
Process of normalizing creates additional tables with relationships maintained by foreign keys to primary key links. One-to-one (1-1) One-to-many (1-M) Many-to-many (M-M)