Define an appropriate schema using sql ddl in mysql

Assignment Help Database Management System
Reference no: EM132120962

You are in a real estate business renting apartments to customers. Your job is to define an appropriate schema using SQL DDL in MySQL.

The relations are Property(Id, Address, NumberOfUnits), Unit(ApartmentNumber, PropertyId, RentalPrice, Size),Customer (choose appropriate attributes), Rentals (choose attributes; this relationshould describe who rents what, since when, and until when), and Payments (shoulddescribe who paid for which unit, how much, and when).

Assume that a customer canrent more than one unit (in the same or different properties) and that the same unit can be co-rented by several customers.

Reference no: EM132120962

Questions Cloud

Does a high risk mean the return must be low : Investors sometimes fear that a high-risk investment is especially likely to have low returns. Is this fear true? Does a high risk mean the return must be low?
Can you design a des key schedule algorithm : Can you design a DES key schedule algorithm in which each key bit is used an equal number of times?
What was the interest rate you charged : If your receive $500 in simple interest on a loan that you made for $10,000 for 5 years, what was the interest rate you charged?
What is the company brand strategy : How does Marriott international company differentiate itself from its competitors? What is the company's brand strategy?
Define an appropriate schema using sql ddl in mysql : Assume that a customer canrent more than one unit (in the same or different properties) and that the same unit can be co-rented by several customers.
Employee benefits practices for pharmaceutical industry : Conduct some research in order to identify the prevalent employee benefits practices for the Pharmaceutical industry.
What project management tasks should kelvin perform : What change management tasks should Kelvin perform before his next meeting, and how do these tasks fit within the project management process?
Would you prefer to raise the funds through borrowing stock : If you owned a small firm that had become somewhat established, but you needed a surge of financial capital to carry out a major expansion.
How much would have been allocated to CD : If BB had used an activity-based costing system to allocate its operating costs in 2017, how much would have been allocated to CD's

Reviews

Write a Review

Database Management System Questions & Answers

  How to draw an erd based on business rules

The relationships between entities, and the cardinality and optionality of each relationship that are described by this business rule.

  Create a new database

Create a new database. Add tables based on the design of your entity-relationship diagram from Question 1. Make sure that you:· have the correct primary keys for each table,· add foreign keys,· choose appropriate data types for each field.Paste a scr..

  Compare a use case description and an activity diagram

Compare a use case description and an activity diagram. Devise a scenario in which you would use a case description, and devise a scenario in which you would use an activity diagram.

  Implement a basic initial ner classifier

COMP9318 (16S2) PROJECT - you will use scikit-learn and python 3 to engineer an effective clas- sifier for an important Information Extraction task called Named Entity Recognition and

  Design database using extended entity relationship diagram

SIT103 - Database and Information Retrieval Assignment. Design the database using Extended Entity Relationship (EERD) Diagram

  Is it possible for r to be in bcnf if so under what conditon

Consider the relation schema R(A,B,C), which has the FD B → C. If A is a can-didate key for R, is it possible for R to be in BCNF? If so, under what conditions? If not, explain why not.

  Conduct a search online for tutorials about normalization

Conduct a search online for tutorials about normalization. Choose three tutorials that you think best teach you about normalization.

  Write the business rules that are reflected in the erd

Create a Crow's Foot ERD to include the following business rules for the ProdCocompany and Do the table exhibit referential Integrity?

  Making a simple xml tree out of the given data

Making a simple XML tree out of the given data and using Xpath to navigate through it

  Create simple view named cust-view using book-customer table

Create a simple view named CUST_VIEW using the book_customer table that will display the customer number, first and last name, and the state for every customer currently in the database.

  What kind of a design would you try in this case

Suppose that your database system has very ine?cient implementations of index structures. What kind of a design would you try in this case?

  List last name and first name of owner located in bowton

List the last name and first name of every owner located in Bowton.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd