Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Oracle, practice writing and testing Data Definition Language (DDL) and Data Manipulation Language (DML) SQL statements. You may use Oracles SQL Plus, SQL Developer,

Using Oracle, practice writing and testing Data Definition Language (DDL) and Data Manipulation Language (DML) SQL statements. You may use Oracle’s SQL Plus, SQL Developer, or Oracle Data Modeler tools. Create tables to fulfill the requirements of the ERD below. Populate the newly created tables with three records of data and write database queries with the following requirements:

Scenario 2 Bute Electric - continued

A query (or queries) that lists all of the records in all of the tables.

A query that lists each customer by name with location addresses.

A query that lists the location type and the rates by time of day.

student submitted image, transcription available below 

CUSTOMER Customer ID Customer Name Customer Address (Street, City, State, Zip Code) Customer Telephone Has Location LOCATION Location ID Customer ID (FK) Location Address (Street, City, State, Zip Code) Location Type HH Time of Day Is Charged RATE Rate Class Location ID (FK) RatePerKWH

Step by Step Solution

There are 3 Steps involved in it

Step: 1

Answer Here are SQL statements to create tables based on the scenario Create the Customers table CREATE TABLE Customers CustomerID INT PRIMARY KEY Nam... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

3. On the playground, raise a hand or whistle to indicate Line up.

Answered: 1 week ago