department of computer science
college of computing
western delta university
first semester examination 2023/2024 session
CSC311 - database design and management time: 2hrs
Answer any four (4) questions
Question 1
- Highlight three (3) components of a DBMS environment. (6 marks)
- What is the major objective of the three-tier architecture used in a DBMS? (2.5 marks)
- With the aid of a diagram, describe the different levels of Data Mapping in DBMS? (6 marks)
- Differentiate between the Hierarchical and Network Data Model. (3 marks)
Question 2
- Write a short note on the concept of the Relational Data Model. (2.5 marks)
- State the criteria that must be fulfilled at each of the stages of First, Second, and Third Normal Forms. (6 marks)
- What is the purpose of Normalization? (4 marks)
- Match the items in Column A to their definitions in Column B.(5 marks)
Column A Column B Data maintenance A. It refers to how well the data in the database is protected from crashes, hacks and accidental deletion. Data integrity B. It refers to how accurate and consistent the data in a database is. Data redundancy C. It refers to the separation between data and the application (or applications) in which it is being used. Data security D. It refers to monthly, daily or hourly tasks that are run to fix errors within a database and prevent anomalies from occuring. Data independence E. It refers to storing the exact same data at different places in a database.
Question 3
- Briefly explain the following terms.
- Update Anomaly
- Deletion Anomaly
- Insertion Anomaly
- What is Data Independence? (2.5 marks)
- Normalize the following table into First, Second, Third, and Fourth Normal Forms:(2.5 marks)
Cust_Name Shipping Add Newsletter Supplier Supplier_Number Price ($) Alan Smith Xbox One 35 Palm St, Miami Xbox News Microsoft (800) BUY-XBOX 250 Roger Banks Playstation 5 47 Campus Rd, Boston Playstation News Sony (800) BUY-SONY 300 Evan Wilson Playstation 5 28 Rock Av, Denver Xbox News, Playstation News Wholesale TOLLFREE 450 Alan Smith Playstation 5 48 Campus Rd, Boston Playstation News Sony (800) BUY-SONY 300
- Briefly explain the following terms.
Question 4
- Write short notes on the following terms:
- Physical Data Independence
- Composite Key
- External/Conceptual Mapping
- State one major drawback as it concerns Normalization. (2 marks)
- With the aid of a diagram, describe the traditional-based file system. (4 marks)
- One key drawback of the Traditional File-Based System is Concurrency control. Briefly describe what is meant by this term. (3 marks)
- Differentiate between a Database Designer and Database Developer. (2.5 marks)
- Write short notes on the following terms:
Question 5
- State three (3) ways in which a functional database can contribute to the successful running of an organization.(3 marks)
- State a practical example on how data redundancy can be controlled in a database as opposed to file processing. (2.5 marks)
- State one objective of the principle of relational database. (3 marks)
- Briefly describe the Internal level of a database schema, listing its attributes/characteristics. (5 marks)
- State the difference between DML and DDL facilities provided in a database management system. (4 marks)
Question 6
Cust_ID Customer_Name Item Shipping_Address Price 1001 Nnamdi Okeke Xbox One Lagos 100,000 1002 Joy Obus Playstation 4 Benin 150,000 1003 Raymond Williams PS Vita Warri 70,000 1004 Andrew Adeolu Mac Laptop Abuja 200,000 1005 Mary Slessor Television Port Harcourt 80,000 1006 Jane Okpara Rechargable Fan Benin 20,000 1007 Chris Amodu Power Bank Abuja 10,000 - The relation above, CUSTOMERS, contains data about the sales of items from an outline shop and all monetary value is in Naira. Use it to answer the questions below:
- Write an SQL statement to view all the data available in the relation. (2 marks)
- Write an SQL statement that queries only the customers that residing in Benin. (2.5 marks)
- Write an SQL statement to query the customers who have purchased goods worth N70,000 and above. (3 marks)
- Write an SQL statement to update the data about Raymond Williams who is a repeat customer and has moved from Warri to Jos. (2 marks)
- Write an SQL statement to delete from the table all information about the customer "Joy Obus". (2 marks)
- Within the concept of a Database, define a View. (3 marks)
- List three (3) examples of database usage in your environment. (3 marks)
- The relation above, CUSTOMERS, contains data about the sales of items from an outline shop and all monetary value is in Naira. Use it to answer the questions below: