Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask PL-SQL Expert

In this project 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.

Project 2 Details:

  1. Create Oracle database tables using SQL Data Definition Language (DDL) for each table listed in Project 1.  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 statements must show integrity constraints, as appropriate, for NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY, REFERENCES, and CHECK constraints. You should test your script to make sure it runs without error.  Capture the script output showing that all SQL in your SQL script file worked properly.
  2. Provide two examples of SQL DML (i.e., "INSERT") commands that fail different table integrity constraints you set up in your tables.Explain why the statements fail.Do not include failures due to syntax errors. You should include comments in the SQL script describing why the insert statements failed.  Capture the script output showing that all SQL in your SQL script file worked properly.
  3. Populate each of your tables with at least five valid rows of data each and show the SQL you used. Populate other tables in your database, as necessary, to satisfy referential integrity. You should test your script to make sure it runs without error. Capture the script output showing that all SQL in your SQL script file worked properly.
  4. Write SQL to perform the following queries and updates. You should test your script to make sure it runs without error:
    • 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 names to married names. You can choose which row to update.  Make sure that you use the primary key column in your WHERE clause to affect only 
    • Delete customers 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 will have to submit two things:

  • a text file containing all the SQL statements that you created for this project: CREATE TABLE, INSERT, SELECT, UPDATE, DELETE. Include comments in the file to indicate what each section of the file represents. This is the content of your SQL Developer's Worksheet window related to the UMUC Oracle connection
  • a text file with the results of running your SQL statements. This is the content of your Script Output panel in SQL Developer.

Please use .txt extension for your files, not .sql.

PL-SQL, Programming

  • Category:- PL-SQL
  • Reference No.:- M91780896
  • Price:- $30

Priced at Now at $30, Verified Solution

Have any Question?


Related Questions in PL-SQL

Purpose of the assessment with ulo mapping the purpose of

Purpose of the assessment (with ULO Mapping) The purpose of this assignment is to develop skills in managing data in databases and to gain understanding of data model development and implementation using a commercially a ...

Continuing the project you have worked on in weeks 1-4 in

Continuing the project you have worked on in Weeks 1-4, in this final week, complete the following tasks: Refine your database and SQL statements by incorporating your instructor's feedback. Verify that the database comp ...

For this assignment you will be provided a database backup

For this assignment, you will be provided a database backup for a database called FinanceDB. You will have to restore this backup to your own version of SQL Server. All of the questions in this assignment relate to the F ...

Complete the following tasksin microsoft access create the

Complete the following tasks: In Microsoft Access, create the database and tables that you identified in W3 Assignment 2. In Microsoft Word, write the SQL statements to create the database and tables. Write SQL statement ...

Assignment - queries functions and triggersaimthe aims of

Assignment - Queries, Functions and Triggers Aim The aims of this assignment are to: formulate SQL queries; populate an RDBMS with a real dataset, and analyse the data; design test data for testing SQL queries; create SQ ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As