Manipulate the data in the solution

Assignment Help PL-SQL Programming
Reference no: EM132288463

Question:

The case study retail store has provided a list of reports and data manipulation tasks that are needed in the processing of orders for their customers.

Answer the following:

What structured query language (SQL) statement scripts are needed to create the database schema for the relational database system and manipulate the data in the solution that you are proposing to the company?

How does each of these scripts specifically support the goals and objectives of the company?

Examples are provided here to help with this assignment.

As indicated in Unit 1, it is assumed that Microsoft SQL Server Express Edition (with management tools) was chosen as the database platform. It can be downloaded for free at this Web site.

The project deliverables are as follows:

Data Manipulation Tasks

  • Insert 20 records into each table for testing purposes.
  • Delete an entire order by using the unique identifier for that order.
  • Update the price of a product by using the unique identifier for that product.
  • Add a minimum of 3 of your own data manipulation language (DML) scripts based on the needs and specifications of your retail store.

Report List

  • Total revenue (sales) per month, grouped by customer
  • Total revenue (sales) per month, grouped by product
  • Total count of products, grouped by category
  • Add minimum of 3 of your own report scripts based on the needs and specifications of your retail store (one must be a CROSSTAB)

SQL (4-5 pages)

Include the database definition language (DDL) scripts to CREATE to database schema as described in the entity-relationship (E-R) diagram (Unit 2).

  • Include the database manipulation scripts (DML) that will be used to INSERT, DELETE, and UPDATE data in the proposed database system.
  • Include the SELECT, CROSSTAB, and AGGREGATE FUNCTION statements that will be used to read data from the proposed database system.
  • Provide your analysis as to how this part of the project fulfills the mission and 1 or more goals of the case study organization.
  • Provide the following attachments (in addition to embedding in document): ?DDL.sql (including CREATE and INSERT statements so that they execute in the correct order [top-down])
  • DML.sql (including DELETE and UPDATE statements so that they can be executed in any order as selected)
  • REPORT.sql (including SELECT, CROSSTAB, AGGREGATE FUNCTION statements so that they can be executed in any order as selected)

Note: You will embed each script in the Word document and also provide it as an attachment.

All sources should be cited both in-text and in References using APA format.

Verified Expert

In this assignment, we have discussed the different concept of SQL server and designed the database on it and run all the queries to get the desire output.

Reference no: EM132288463

Questions Cloud

What are the implications of pushing : What are the implications of pushing the use of technology and DNA manipulation
Consider a disk with n cylinders numbered sequentially : Consider a disk with n cylinders numbered sequentially 0, 1, 2,...., n-1. The read/write head is currently on cylinder 800. The queue of requests to be serviced
What level of substance use disorder would you diagnose : What level of Substance Use Disorder (if any) would you diagnose Fran with and why? Which diagnostic criteria does she meet?
Track and sector that holds that block : Each surface has 128 tracks and 64 sectors (blocks) within each track. Sectors of the disk are numbered sequentially from 0 to n-1 starting with surface
Manipulate the data in the solution : Create the database schema for the relational database system and manipulate the data in the solution that you are proposing to the company
Shadow companies outside the united states : Additionally, some of these products, identical to the TransManuCo products, have entered the country from shadow companies outside the United States.
Describe the object without saying what it is : A 2-paragraph summary that describes how you recognize something with which you are familiar. Describe the object without saying what it is and how these.
What logical relationship holds : What logical relationship holds between these two propositions? Explain.
Appropriate places for all classes : Create the .h and .cpp files for one of the classes with the appropriate members (all being private), mutator functions, accessor functions, and constructors.

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