Time: 90:00

Fundamentals of Database Systems — Examination

Total Questions: 35 | Time Limit: 90 minutes
📡 Server Address: http://0.0.0.0:8080
Students can access the exam from any computer on this network
Instructions:
📋 Reference Schema: The SaleCo Database ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ CUSTOMER (CUS_CODE, CUS_LNAME, CUS_FNAME, CUS_INITIAL, CUS_AREACODE, CUS_PHONE, CUS_BALANCE) VENDOR (V_CODE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE, V_STATE, V_ORDER) PRODUCT (P_CODE, P_DESCRIPT, P_INDATE, P_QOH, P_MIN, P_PRICE, P_DISCOUNT, V_CODE) INVOICE (INV_NUMBER, CUS_CODE, INV_DATE) LINE (INV_NUMBER, LINE_NUMBER, P_CODE, LINE_UNITS, LINE_PRICE)
Chapter 1: Database Systems (Questions 1-5)
Question 1:
Which of the following is NOT a disadvantage of file-processing systems?
Question 2:
What does DBMS stand for?
Question 3:
What is data redundancy in the context of database systems?
Question 4:
What is the fundamental difference between data and metadata?
Question 5:
Which of the following correctly identifies the five major components of a complete database system environment?
Chapter 2: Data Models (Questions 6-10)
Question 6:
What is the primary characteristic of the relational data model?
Question 7:
Which data model is best suited for handling unstructured and semi-structured big data?
Question 8:
What are the four basic building blocks of all data models?
Question 9:
When translating organizational business rules into a data model, which standard grammatical convention is applied?
Question 10:
How is data structurally arranged in the traditional hierarchical data model?
Chapter 3: The Relational Database Model (Questions 11-15)
Question 11:
What is referential integrity?
Question 12:
What is a primary key?
Question 13:
What operational condition is required to maintain Entity Integrity?
Question 14:
What does the term 'degree' refer to in a relational table?
Question 15:
Which relational algebra operator produces a horizontal subset of rows from a table based on a specified condition?
Chapter 4: Entity Relationship (ER) Modeling (Questions 16-20)
Question 16:
What is a composite attribute?
Question 17:
What symbol is used to represent a weak entity in an ER diagram?
Question 18:
When is a relationship between a parent and child entity classified as strong (identifying)?
Question 19:
If a course can exist in a university catalog before any class sections are scheduled for it, what is the participation of CLASS relative to COURSE?
Question 20:
An attribute such as EMP_AGE that is calculated using EMP_DOB and the current system date is classified as a:
Chapter 6: Normalization of Database Tables (Questions 21-25)
Question 21:
Why might a database designer deliberately choose to denormalize a database design?
Question 22:
If EMP_NUM → DEPT_CODE and DEPT_CODE → DEPT_NAME, the relationship EMP_NUM → DEPT_NAME represents which type of dependency?
Question 23:
Under which structural condition is a table in 1NF automatically in Second Normal Form (2NF)?
Question 24:
Which normal form deals with removing partial dependencies?
Question 25:
What condition must be met for a relational table to satisfy Boyce-Codd Normal Form (BCNF)?
Chapter 7: Structured Query Language (SQL) (Questions 26-30)
Question 26:
What is the standard logical operator order of evaluation in an SQL WHERE clause when parentheses are omitted?
Question 27:
What is the purpose of the ORDER BY clause in SQL?
Question 28:
Which SQL operator and wildcard combination searches for customers whose last names begin with the letter 'J' followed by any number of characters?
Question 29:
Which SQL clause is used to filter aggregated group results rather than individual rows?
Question 30:
SQL commands such as CREATE TABLE, ALTER TABLE, and DROP TABLE belong to which category?
Part II: Short Answer Questions — SQL Queries (Questions 31-35)
Question 31:
Question 35: Multi-Table Join with Aggregation (CUSTOMER, INVOICE, LINE) Write an SQL query to determine the total purchase spending for each customer who has made at least one purchase. - Connect the CUSTOMER, INVOICE, and LINE tables. - Display the customer code (CUS_CODE), customer last name (CUS_LNAME), and their total cumulative spending labeled as TOTAL_SPENT (sum of LINE_UNITS * LINE_PRICE). - Group the results appropriately by customer code and last name. - Sort the results alphabetically by last name (CUS_LNAME).
Question 32:
Question 34: Uncorrelated Subquery in Filtering (PRODUCT Table) Management needs to review premium catalog items. Write an SQL query to list the product code (P_CODE), description (P_DESCRIPT), and price (P_PRICE) of all products whose price is strictly greater than the average price of all products in the database. Note: You must use a subquery to calculate the average price.
Question 33:
Question 31: Inventory Stock & Computed Values (PRODUCT Table) SaleCo warehouse managers need to identify products that need reordering. Write an ANSI SQL query on the PRODUCT table that displays: - The product code (P_CODE), description (P_DESCRIPT), and unit price (P_PRICE). - A computed column named INVENTORY_VALUE representing total inventory value on hand (P_QOH * P_PRICE). - Condition: Include only products where the quantity on hand (P_QOH) is less than or equal to the minimum stock level (P_MIN). - Sorting: Order the results by INVENTORY_VALUE from highest to lowest.
Question 34:
Question 33: Aggregation and Group Restriction (LINE Table) Write an SQL query using the LINE table to calculate the total monetary value of each invoice. - Display the invoice number (INV_NUMBER) and the computed total cost of the invoice labeled as INVOICE_TOTAL (calculated as the sum of LINE_UNITS * LINE_PRICE). - Condition: Restrict output to only include invoices where the calculated invoice total exceeds $100.00. - Sorting: Order the results from highest invoice total to lowest.
Question 35:
Question 32: Two-Table Relational Join (PRODUCT & VENDOR) Write an ANSI SQL query to display the vendor name (V_NAME), vendor contact person (V_CONTACT), product description (P_DESCRIPT), and unit price (P_PRICE) for all products supplied by vendors located in Florida ('FL') or Tennessee ('TN') that have a unit price greater than $50.00. Note: You must use explicit ANSI JOIN ... ON syntax.