LSIS 5451 Final Assignment
I attached a pdf of the instructions. I am looking for someone dependable. Thanks in advance!
Database Systems LSIS 5451
Final (Take Home) Examination
Due Date: Friday, November 20th, 2020, 11:59 pm
You are not allowed to discuss this exam with anyone. By submitting your answers, you are
certifying that you did not give or receive any unpermitted aid in the exam. All answers
should be your own. Late submission will not be accepted.
Question 1 (20 points)
Consider a database that includes four relations Student, Staff, Program, Advisor
BannerID FName LName PCode
8003778543 James Oloye P001
8765990453 Paul Carter P002
8002786543 Anita Boris P001
8307563321 Jane Eyre P001
BannerID FName LName PCode
8014768954 Chimamanda Adichie P002
8001876565 Paulette Davis P001
P001 Library Science
P002 Management and Information Science
a. Write the SQL statement that will return the following result (10 points)
FName LName Program Students
Chimamanda Adichie Management and Information Science 1
Paulette Davis Library Science 2
b. For each query below, indicate if the query correctly returns the name of all
students who have not yet been assigned to an advisor. Anywhere between zero and
all queries compute the correct answer. Each query is syntactically correct. (10
i. SELECT s.fname, s.lname
FROM student s LEFT OUTER JOIN advisor a ON s.BannerID =
WHERE a. staffBannerID IS NULL;
ii. SELECT s.fname, s.lname
FROM student s
WHERE s.BannerID IN (SELECT a.studentBannerID FROM advisor a);
iii. SELECT s.fname, s.lname
FROM student s INNER JOIN advisor a ON s.BannerID = a.studentBannerID
GROUP BY s. BannerID, s.fname, s.lname
HAVING count(*) = 0;
Question 2 (30 points)
A company selling products both online and in their own stores have asked for your help in
creating a database.
a. Design an E-R model for the store that contains the following relations and their
attributes. (15 points)
• customer: cid, name
• sales: sid, date
• product: pid, name, price
Model the following relationships among the relations:
• Sales represents individual sales. Each sale has different products bought by a
• Each product in a sale could have a discount.
• inStoreSales consists of the sales in brick-and-mortar stores; storing the store name.
• onlineSales consists of online sales; storing the name of the browser and the
operating system used during the purchase.
• cid, sid, pid are int, price and discount are float, the rest are text.
• No attributes may be null, except for inStoreSales.store and onlineSales.os.
b. Write the CREATE TABLE statements to represent this E-R model using SQL
relations. Clearly label all the constraints. (5 points)
c. Write a SQL query that computes, for each customer, the total amounts that the
customer spent online and in store. Your query should include customers who did
not purchase anything. (10 points)
Question 3 (25 points)
Use the database of a Ski Resort, represented by the ER model above to answer the
a. Explain the cardinality, participation and disjoint constraints that exists in the model (5
b. Find all customers that rented a pair of skis that cost over $200 (5 points)
c. A skier should rent a pair of skis while a snowboarder should rent a snowboard. If a
person rents a different equipment from their expertise, a training should have been
completed. Write a query that finds all rentals in the past month with inconsistencies
between expertise and equipment (8 points)
d. The company is looking to purchase new equipment. Write a query that computes the
average price of a pair of skis and snowboards for each model. Display your results
sorted from the least price. (7 points)
Question 4 (25 points)
Consider a relational table:
Manager(manager_name, manager_id, manager_office_id, intern_id, intern_name,
intern_office_id, intern_designated_printer_id, printer_owner_id, printer_id, printer_model,
secretary_name, secretary_id, secretary_office_id )
Suppose the data has the following properties:
• Managers and secretaries have individual offices, interns share offices.
• Interns can work for multiple managers.
• Printers are owned by one manager.
• Managers can own multiple printers.
• Interns can only use one printer.
• The printer the interns uses must be owned by one of the managers they work for.
• Secretaries can work for multiple managers.
• Managers only have a single secretary.
a) Using the data above, provide examples of how insertion, deletion, and
modification anomalies could occur. (5 points)
b) Identify the functional dependencies among the columns in the table and state
any assumptions you make about the data. (10 points)
c) Using the functional dependencies identified in (b), describe and illustrate the
process of converting the table into 3NF tables. Identify the primary and foreign
keys in your tables. (10 points)
~ END OF EXAM ~
Thank you for making the class enjoyable and I hope you have learned a lot! Good luck with
finals and have an wonderful ~2 months of winter break!
Are you busy and do not have time to handle your assignment? Are you scared that your paper will not make the grade? Do you have responsibilities that may hinder you from turning in your assignment on time? Are you tired and can barely handle your assignment? Are your grades inconsistent?
Whichever your reason may is, it is valid! You can get professional academic help from our service at affordable rates. We have a team of professional academic writers who can handle all your assignments.
Our essay writers are graduates with diplomas, bachelor, masters, Ph.D., and doctorate degrees in various subjects. The minimum requirement to be an essay writer with our essay writing service is to have a college diploma. When assigning your order, we match the paper subject with the area of specialization of the writer.
We value our customers and so we ensure that what we do is 100% original..
With us you are guaranteed of quality work done by our qualified experts.Your information and everything that you do with us is kept completely confidential.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
The Product ordered is guaranteed to be original. Orders are checked by the most advanced anti-plagiarism software in the market to assure that the Product is 100% original. The Company has a zero tolerance policy for plagiarism.Read more
The Free Revision policy is a courtesy service that the Company provides to help ensure Customer’s total satisfaction with the completed Order. To receive free revision the Company requires that the Customer provide the request within fourteen (14) days from the first completion date and within a period of thirty (30) days for dissertations.Read more
The Company is committed to protect the privacy of the Customer and it will never resell or share any of Customer’s personal information, including credit card data, with any third party. All the online transactions are processed through the secure and reliable online payment systems.Read more
By placing an order with us, you agree to the service we provide. We will endear to do all that it takes to deliver a comprehensive paper as per your requirements. We also count on your cooperation to ensure that we deliver on this mandate.Read more