Create a view showing all the data plus

Assignment Help Database Management System
Reference no: EM133055443

Learning Activity:

You may work in small groups to perform this activity.

Downloaded the spreadsheet containing the account information for large electricity users in the Geelong region.

Use this spreadsheet and perform the following:

  1. Create a database called mi602_geelong_power.
  2. Create a table to hold the meter reading data from the spreadsheet.
  3. Insert the data from the spreadsheet into you table. Column L in the spreadsheet contains a sample excel formula that will generate SQL statements to insert data into your table however keep in mind the following
    • The formula has some deliberate mistakes, you will need to alter the formula.
    • You will need to supply a table name.
    • You may wish to change the column names in the formula to suit the columns in your table.
    • You may need to format the data to suit the data types you choose for your table.
    • There may be data quality issues.

    Once you have corrected the formula, you can copy and paste the formula into the remaining cells of column L and then copy the completed SQL statements into a query window to populate your table with data.
  4. Create a view showing all the data plus the number of days for each reading. This value can be called "Usage Days".
  5. Create queries for the following:
    • List the total peak and off-peak power demand for the recorded period.
    • List the total peak usage by year for all businesses in Geelong (postcode 3220). Use the TO_DATE field to determine the year in which a value is to be recorded. 
  6. It was discovered that all the peak readings for Lara were off by a factor of 10, i.e.
    For the dates 20140701 to 20140731. The value of the reading should have been 3692.961 instead of 369.2961.
    For the dates 20160401 to 20160430. The value of the reading should have been 4047.880 instead of 404.788.
    etc

    Update the Lara data so that the values are correct. Can you do this in a single query?
  7. It is suspected that one reading was accidentally entered twice.
    Create queries to locate the duplicate entry
    Create queries to remove the duplicate row.

Attachment:- geelong_power.rar

Reference no: EM133055443

Questions Cloud

Recidivist sexual offender behavior at distance : Registration is a concept or deterrence effort to keep recidivist sexual offender behavior at a distance.
Calculate the manufacturing cost before separation : Profit allowed for By-Product T is 20% of sales and for By-Product V is 15% of sales. Calculate the manufacturing cost before separation
Compute taxable income and income taxes payable : Windsor's pretax financial income for 2020 is $281,200, and the tax rate is 30% for all years. Compute taxable income and income taxes payable
Spouse and school administrators to proceed : Write a report outlining how you would tell your spouse and school administrators to proceed.
Create a view showing all the data plus : Create a view showing all the data plus the number of days for each reading - It is suspected that one reading was accidentally entered twice
Prepare a schedule of cash receipts from sales for April : X-Tel budgets sales of $102,000 for April, $174,000 for May, and $114,000 for June. Prepare a schedule of cash receipts from sales for April
Prepare the journal entry to record the purchase : Land is appraised at $234,000; land improvements are appraised at $78,000; Prepare the journal entry to record the purchase
Maintain good community relations : What environmental laws will apply to the new plant construction? What steps should you take to maintain good community relations?
What is the present worth of the contract : What is the present worth of the contract (in year 0) if the company will receive a total of nine $13,000 payments beginning in year 2 and ending in year 10

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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