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: 3 years ago

Preview 1 out of 5 pages

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)
Preview image of Nova Southeastern University _MSIT630_Summer18_solutions2 document

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Reviews( 0 )

$8.00

Buy Now

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Instant download

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

65
0

Document information


Connected school, study & course


About the document


Uploaded On

Jan 18, 2021

Number of pages

5

Written in

All

Seller


Profile illustration for SuperSolutions©
SuperSolutions©

Member since 5 years

383 Documents Sold

Reviews Received
82
16
10
3
4
Additional information

This document has been written for:

Uploaded

Jan 18, 2021

Downloads

 0

Views

 65

Document Keyword Tags

More From SuperSolutions©

View all SuperSolutions©'s documents »

$8.00
What is Scholarfriends

Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.

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 © Scholarfriends · High quality services·