Computer Networking > QUESTIONS & ANSWERS > Nova Southeastern University _MSIT630_Summer18_solutions2 (All)

Nova Southeastern University _MSIT630_Summer18_solutions2

Document Content and Description Below

Solutions#2 MSIT 630 Database Systems (Summer, 2018) 1. Consider the relation, r, shown below. Give the result of the following query: (4 points) building room_number time_slot_id course_id sec... _id SELECT building, room_number, time_slot_id, count(*) FROM r GROUP BY ROLLUP (building, room_number, time_slot_id); In MySQL, use: SELECT building, room_number, time_slot_id, count(*) FROM r GROUP BY building, room_number, time_slot_id with rollup; Building Room_number Time_slot_id Count(*) 2. Consider an employee database with two relations employee(employee-name, street, city) works(employee-name, company-name, salary) where the primary keys are underlined. Write a query to find companies whose employees earn a lower salary, on average, than the average salary at “First Bank Corporation”. Use user defined SQL functions (create function command) as appropriate to answer the above query, the function takes the company name as the input and returns the average salary of the given company. (6 points) 3. Write the following queries in relational algebra, using the university schema. (Appendix A, page 1271) (16 points, 4 points each) 4. Construct an E-R diagram for a hospital with a set of patients and a set of medical doctors. Associate with each patient a log of the various tests and examinations conducted.(6 points) 5. Explain the distinction between disjoint and overlapping constraints. (3 points) 6. Explain the distinction between total and partial constraints. (3 points) 7. Consider the following set F of functional dependencies on the relation schema a. c. Prove (using Armstrong’s axioms) that AF is a superkey. [Show More]

Last updated: 1 year ago

Preview 1 out of 5 pages

Add to cart

Instant download

document-preview

Buy this document to get the full access instantly

Instant Download Access after purchase

Add to cart

Instant download

Reviews( 0 )

$8.00

Add to cart

Instant download

Can't find what you want? Try our AI powered Search

OR

REQUEST DOCUMENT
37
0

Document information


Connected school, study & course


About the document


Uploaded On

Jan 18, 2021

Number of pages

5

Written in

Seller


seller-icon
SuperSolutions©

Member since 3 years

340 Documents Sold


Additional information

This document has been written for:

Uploaded

Jan 18, 2021

Downloads

 0

Views

 37

Document Keyword Tags

More From SuperSolutions©

View all SuperSolutions©'s documents »
What is Browsegrades

In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Browsegrades · High quality services·