DBMS Reviewer
DBMS Reviewer
MANAGING DATA
FILE SYSTEMS
File system logs every record, and then assigns an index so that when the file is being retrieved, the user
will just find or call on the index.
DBMS
Structure:
Backup and Recovery: (data is being constantly backed up and ready to be retrieved)
File Systems doesn’t have an efficient query system since file systems are built to just locate where files are
stored. It mainly gives the directories of the files.
DBMS provides a query system, where if queries are made in the system, it provides what the users are
requesting to do.
Consistency:
Complexity:
Admittedly, File Systems are less complicated but since DBMS assures that data is being managed efficiently,
it is more complex.
Security Constraints:
File system, grants access to anyone while DBMS provides restricted view of the data depending on their
level of clearance.
Cost:
File systems are cheaper because it doesn’t require what DBMS provides. (maintaining the database, storage
cost, ensuring that when system fails records are still occurring, etc. DBMS is much expensive because it
makes sure data is being managed accordingly.
Data Independence:
When a user changes something to the data in file systems, it is changed permanently. But in DBMS, users
can only change what they have access to. (i.e. individual accounts) they cannot change the data stored in
the physical storage.
User Access:
File Systems can only be accessed by one user at a time, DBMS provides concurrency where multiple people
can use the system at a time.
Sharing:
Data is distributed in many files, meaning that the data is spread throughout the storage so it’s harder to
share the files. You would have to know where each of the files are stored to be able to share. But in DBMS,
it has feature that data is centralized.
Data Abstraction: (users are only presented with data/information they need to see)
Every user is privy of the information presented in the storage, but in DBMS users can only see what they
need to see.
TRANSACTIONS:
Transactions are defined as any activities made within the database. Queries are transactions.
Consistency – if a transaction was completed, it already records to the system, if the transaction wasn’t
finished before the system fail, it automatically cancels out the transaction and rolls back to the state of the
data before the transaction starts.
Isolation – individual transactions are carried out in separate environment to ensure concurrency
DEGREE OF RELATIONSHIP
Unary Relationship - association between one entity and/or the same entity set