Cashback Offer from 15th to 20th April 2021. Get Flat 20% Cashback credited to your account for a minimum transaction of $80. Post Your Question Today!

Question DetailsNormal
$ 45.00

In this assignment you will perform the physical design and implementation using SQL Data Definition

Question posted by
Online Tutor Profile
request

In this assignment you will perform the physical design and implementation using SQL Data Definition Language (DDL) and proceed with populating the Mom and Pop Johnson Video Store database via Data Manipulation Language (DML) SQL commands.

For each of the steps below you may create a separate SQL script file and SPOOL file or you may want to put the SPOOL output for several steps, from the same SQL script file, in the same file. Be sure your SPOOL file(s) contains your SQL statements along with the Oracle responses and/or displayed results.  Do NOT submit your SQL script files.  Only submit your output SPOOL files.

Assignment Details:

  1. Create Oracle database tables using SQL Data Definition Language (DDL) for each table listed in the metadata of Project 2. You may need to use a combination of DROP TABLE, CREATE TABLE, and ALTER TABLE SQL statements. Make sure that entity and referential integrity are enforced by declaring a primary key for each table (these may be composite keys) and declaring all appropriate foreign keys. Your CREATE TABLE and ALTER TABLE statements (if desired) must show integrity constraints, as appropriate, for NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY, REFERENCES, and CHECK constraints. Be sure to save your SQL script file used to create these tables with a .sql extension and your output SPOOL file with a .lst or .txt extension. You should rerun and test your SQL script file until it runs without any errors (this is why you’ll want to include DROP TABLE statements). Submit your SPOOL file showing that all SQL in your SQL script file worked properly.
  2. Populate each of your tables with at least five valid rows of data each and show the SQL INSERT statements as you executed them. Populate other tables in your database, as necessary, to satisfy referential integrity. Save your SQL script file and SPOOL file with the correct extensions. You should test and rerun your SQL script file until it runs without any errors. Submit your SPOOL file showing that all SQL in your SQL script file worked properly.

3. Develop an SQL script file to perform the following queries and updates. You should test your SQL script file until it runs without any errors.

  • Retrieve all of your customers' names, account numbers, and addresses (street and zip code only), sorted by account number.
  • Retrieve all of the videos rented in the last 30 days and sort in chronological rental date order.
  • Produce a list of your distributors and all their information sorted in order by company name.
  • Update a customer name to change their maiden name to a married name. You can choose which row to update. Make sure that you use the primary key column in your WHERE clause to affect only a specific row. You may want to include a ROLLBACK statement to undo your data update.
  • Delete a customer from the database. You can choose which row to delete. Make sure that you use the primary key column in your WHERE clause to affect only a specific row. You may want to include a ROLLBACK statement to undo your data deletion.

Submit your SPOOL file(s) showing that all SQL in your SQL script file worked properly. Show the actual SQL statements executed and the results the SQL produced below the code by making sure that you have a SET ECHO STATEMENT in your SQL script file(s).

Grading rubric

 

Attribute

Meets

Does Not Meet Expectations

CREATE TABLE and

30 points

0 points

ALTER TABLE SQL

All SQL statements are

Many SQL statements fail due to syntax

statements

syntactically correct and

errors or SQL is missing

 

execute without errors; all

 

 

integrity constraints are

 

 

properly declared;

 

INSERT SQL statements

25 points

0 points

 

All SQL statements are

Many SQL statements fail due to syntax

 

syntactically correct and

errors and/or integrity constraint violations

 

execute without errors.

or SQL is missing

SELECT SQL statements

20 points

0 points

 

All SQL statements are

Many SQL statements fail due to syntax

 

syntactically correct and

errors or SQL is missing

 

execute without errors.

 

UPDATE and DELETE

10 points

0 points

SQL statements

Statements execute without

Statements fail due to syntax or other errors

 

errors based on primary key

 

 

column in WHERE clause

 

SQL script file and

15 points

0 points

SPOOL file

Demonstrates full ability to

Many errors setting up and using an SQL

 

create and use an Oracle SQL

script file with SPOOL file or no attempt

 

script file and output SPOOL

made at all

 

file

 

Available Answer
$ 45.00

[Solved] In this assignment you will perform the physical design and implementation using SQL Data Definition

  • This solution is not purchased yet.
  • Submitted On 21 Feb, 2019 11:34:44
Answer posted by
Online Tutor Profile
solution
Please find the attached ...
Buy now to view the complete solution
Other Similar Questions
User Profile
AceTu...

In this assignment you will demonstrate a basic understanding | Complete Solution

XML is essential for database processing because of its simplicity. It provides both document authors and programmers a friendly environment by any computing standards. It is also extensive because it allows developers to com...
User Profile
Tutor...

In this Assignment on creating a business SWOT analysis for Sandwich Blitz,

Strengths One of the strengths of Sandwich Blitz Inc. is its ability to identify strategic location for its business. Sandwich Blitz is located in a large metropolitan area. The area comprises of three universities, one hospi...
User Profile
Tutor...

In this assignment, you will be writing a 1,000-1,250-word essay describing the differing

Introduction The nursing profession is not an easy profession by any means. It requires continue motivation and commitment to continue as a nurse. It won’t be incorrect to say that this profession requires strategic thinki...
User Profile
Tutor...

In this assignment, you will complete the project plan you

Project name: Front yard Landscaping Procedure: Using Chapter 4 in A Guide to the Project Management Body of Knowledge (text) as your resource, your Project Plan should include the following major topics: ◾Project charter ...

The benefits of buying study notes from CourseMerit

homeworkhelptime
Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
tutoring
Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.
tutorsupport
Uninterrupted 24/7 Support
Our customer support wing remains online 24x7 to provide you seamless assistance. Also, when you post a query or a request here, you can expect an immediate response from our side.
closebutton

$ 629.35