Docsity

Database management skill, Cheat Sheet of Database Management Systems (DBMS)

Toggle sidebar
bg1
Unit of Competency : DATABASE MANAGEMENT SKILLS
WRITTEN ASSESSMENT
DIPLOMA IN COMPUTER SCIENCE
INSTRUCTIONS TO CANDIDATE
1. Answer ALL questions
Candidates should answer the questions in English
1. A country bus owns a number of buses. Each bus is allocated to a particular route,
although some route may have several buses. Each route has a number of stages.
Each stage goes through some of the towns. Draw an entity model to show the
corresponding entities and relationships.
Entities:
Bus: Attributes: BusID, Capacity, DriverName.
Route: Attributes: RouteID, RouteName.
Stage: Attributes: StageID, DistanceFromStart.
Town: Attributes: TownID, TownName.
Relationships:
pf3
pf4

Partial preview of the text

Download Database management skill and more Cheat Sheet Database Management Systems (DBMS) in PDF only on Docsity!

Unit of Competency : DATABASE MANAGEMENT SKILLS WRITTEN ASSESSMENT DIPLOMA IN COMPUTER SCIENCE INSTRUCTIONS TO CANDIDATE

  1. Answer ALL questions Candidates should answer the questions in English
  2. A country bus owns a number of buses. Each bus is allocated to a particular route, although some route may have several buses. Each route has a number of stages. Each stage goes through some of the towns. Draw an entity model to show the corresponding entities and relationships.Entities:Bus: Attributes: BusID, Capacity, DriverName.  Route: Attributes: RouteID, RouteName.  Stage: Attributes: StageID, DistanceFromStart.  Town: Attributes: TownID, TownName.  Relationships:

 A Bus is allocated to one Route (1:N between Route and Bus).  A Route consists of multiple Stages (1:N between Route and Stage).  A Stage passes through one or more Towns (M:N between Stage and Town). [8 Marks]

2. Database backups are essential for data protection and recovery in the event of data loss, corruption, or system failures. Explain THREE types of databases back upFull Backup:  A complete copy of the entire database at a specific point in time.  Advantages: Simplifies recovery, as only the latest full backup is needed.  Disadvantages: Requires more storage and time to complete.  Incremental Backup:  Backs up only the data that has changed since the last backup (full or incremental).  Advantages: Saves storage space and reduces backup time.  Disadvantages: Recovery requires combining the last full backup and subsequent incremental backups.  Differential Backup:  Captures all changes made since the last full backup.  Advantages: Faster recovery compared to incremental backups.  Disadvantages: Larger backup size over time compared to incremental backups. **(6 Marks)

  1. Rules and guidelines are used to define the allowable characteristics and relationships of data in database tables. Explain TWO advantages of constraints in a database.**
  2. Data Integrity: Constraints (e.g., primary key, foreign key, unique) ensure the accuracy and consistency of data within the database by preventing invalid data entry.
  3. Simplified Data Validation: Constraints reduce the need for application-level validation, making database operations more reliable and reducing redundancy in validation logic.

(6 Marks)