Write sql statements to develop database tables

Assignment Help PL-SQL Programming
Reference no: EM13924726

The Case of ABC Electric:

ABC Electric wishes to create a database with the following entities and attributes:

· Customer, with attributes Customer_ID, Customer_Name, Customer_Address (Street, City, State, Zip code), Customer_Type (Business or Residential)

· Location, with attributes Location_ID, Location_Name, Location_County

· Rate, with attributes Rate_Class, Rate_Per_ kwh
After interviews with the company employees and its customers, you have come up with the following business rules:

· Locations are geographical areas such as cities, towns, etc.

· Customers can have one or more locations.

· Each location can have one or more rates, depending on the time of day.

Question 1 for the Case:

Please use either Access notation (i.e., one-1, many-∞) or ER modeling notation (i.e., one- , many- )(see slide 3.28) to develop a logical database model for the company. You also need to (1) create associative entities (with attributes) to simplify many-to-many relationships whenever necessary, and (2) use verbs to describe the relationships. Similar database model can be found in slide 7.12, which uses ER notation. The Draw function in Microsoft Word is preferred to illustrate the model.

Question 2 for the Case:

Write SQL statements to develop database tables for each of these entities in the model.

Reference no: EM13924726

Questions Cloud

What was return on investment in percent : Ashley invested $4,500 in the stock of target. She received $226.00 in dividends from stock and sold it one year later for $4,100. What was Asley's return on investment in percent?
An investment project provides cash inflows : An investment project provides cash inflows of $1,125 per year for eight years. What is the project payback period if the initial cost is $3,800? Payback period years Requirement : What is the project payback period if the initial cost is $4,850?
Prepare the journal entries record the bond issue on january : Assume that all entries to accrue and pay interest were recorded correctly.
General feeling of pleasure or disappointment : 1) Total customer satisfaction is the general feeling of pleasure or disappointment that results from comparing perceived performance to expectations. To achieve total customer satisfaction, organizations need to_____________.
Write sql statements to develop database tables : Write SQL statements to develop database tables for each of these entities in the model.
Outstanding with various times-to-maturity and coupon rates : Microsoft currently has 21 long-term bond issues outstanding with various times-to-maturity and coupon rates. One of these bonds matures on June 1, 2039, approximately 25 years from today. The bond is currently selling for $1,153.06, based on a face ..
Ceo providing an overview of the task : A cover memo to the CEO providing an overview of the task assigned and a summary of your proposal
What is the average accounting return : A project has an initial cost of $42,000 and a four-year life. The company uses straight-line depreciation to a book value of zero over the life of the project. The projected net income from the project is $1,400, $3,600, $4,000, and $4,500 a year fo..
What is their yield to call : Highfield Inc's bonds currently sell for $1,400 and have a par value of $1,000. They pay a $140 annual coupon and have a 20-year maturity, but they can be called in 5 years at $1,540. What is their yield to call (YTC)?

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

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