CS614 Assignment 1 Solution Fall 2024
CS614 Assignment 1 Solution Fall 2024
VUAnswer.pk
CS614 ASSIGNMENT 1 SOLUTION FALL 2024
Question 1:
Let's take a brief look at these two queries, write the results by comparing them, and summarize
them in the table below:
GET MORE SOLUTIONS FILE FROM
VUAnswer.pk
Solution
Criteria OLTP Query DWH Query
Primary Key Uses account_ID as a primary Joins on CustID and Customer_ID,
Usage key to filter a specific record implying primary key usage
Number of Single table (tx_table) Two tables (customer_table and tx_table)
Tables
Rows Typically returns a single or Returns multiple rows based on specified
Returned few rows based on account_ID conditions
Query High selectivity, very specific Lower selectivity due to broader conditions
Selectivity (focused on account_ID) (age range, education)
Indexing Uses indexes on account_ID May require indexes on multiple columns
for faster retrieval (e.g., age, education) for efficient querying
Question 2:
Consider an employee database system developed for a multi-branch company. Each branch is
based on a specific department in a different city, e.g., HR, Admin, or Head Office.
Table 1: Employee Record
Solution
Scenario Anomaly
Type
If a new branch is added (e.g., a new branch in another city), it is impossible to Insertion
record it in the table unless an employee is also added. Anomaly
If all employees from a particular branch are removed, information about that Deletion
branch (e.g., the city and department) will also be lost. Anomaly
If a department or branch location of a specific department changes (e.g., the Update
HR department moves to a different city), the change must be made in multiple Anomaly
rows. If any change is missed, it can lead to inconsistent data.
GET MORE SOLUTIONS FILE FROM
VUAnswer.pk
REGARD - SARIM
WHATSAPP +923162965677
PLEASE NOTE:
Don't copy-paste the same answer.
Make sure you can make some changes to your solution file before
submitting copy paste solution will be marked zero.
If you found any mistake then correct yourself and inform me.
Before submitting an assignment must check your assignment requirement
file.
If you need some help or question about file and solutions feel free to ask.
VUAnswer.pk