Create oracle database tables using sql ddl

Assignment Help Database Management System
Reference no: EM131487844

Project

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 Assignment 1. 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 error. 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.

o Retrieve all of your customers' names, account numbers, and addresses (street and zip code only), sorted by account number.

o Retrieve all of the videos rented in the last 30 days and sort in chronological rental date order.

o Produce a list of your distributors and all their information sorted in order by company name.

o 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.

o 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).

Attachment:- Entity_list_project.rar

Reference no: EM131487844

Questions Cloud

College graduate received a job with a new company : A college graduate received a job with a new company. He will rollover $19,000 from his last employer's 401K into the new 401K.
How to sustain market leadership : How to sustain market leadership. Whether to bring back some of the manufacturing to the USA.
Forecast the rate of return on the book value : Creating Earnings and Valuing Created Earnings (Medium) The prototype one-period project at the beginning of the chapter was booked at its historical cost.
Section regarding thermoregulation and thermal hazards : Review your assigned text reading, especially the section regarding thermoregulation and thermal hazards for the older adult. Thermoregulation
Create oracle database tables using sql ddl : CMIS 320:Create Oracle database tables using SQL Data Definition Language (DDL) for each table listed in the metadata.
Calculate residual earnings and return of common equity : Residual Earnings Valuation: Black Hills Corp (Easy) Black Hills Corporation is a diversified energy corporation and a public utility holding company.
What is current stock price : The required rate of return on Groningen stock a 15%. What is the current stock price?
Cultural differences between the us and germany : Compare and discuss current cultural differences between the U.S. and Germany that might effect marketing management (or a marketing manager's) style or actions
Compound average annual rate of return : How long would it take the 401K to reach $100,000, if the compound average annual rate of return is 6.5% a year?

Reviews

Write a Review

Database Management System Questions & Answers

  Create the primary key and foreign keys using a uml class

Provide an Entity Relationship Model (ERM) that will describe the data structure that will store all data elements.

  In what ways and to what extent do you agree with statement

As a result of convergence processes HRM and HRD practices are increasingly similar throughout the industrial world and can therefore be transferred between countries without any problems.'

  Machining activity cost pool

Determine the total amount of supervisory wages and factory utilities costs that would be allocated to the Machining activity cost pool.

  Create all necessary and appropriate relationships.

Create all necessary and appropriate relationships.

  Location information for dui checkpoints

let's consider location information for DUI checkpoints. If law enforcement agencies publish this information, is it okay to have law an app for drivers

  Systems analysis and database design

Based on the information in the Bike Mania case study, use a suitable CASE tool or drawing package to draw up a set of diagrams showing the current physical view of the systemusing the unified modeling language (UML 2.0) notation

  Discuss the garbage collection in a structured programming

Discussion Compare and contrast garbage collection in a structured programming languages

  Reverse-complement of a dna string

The reverse-complement of a DNA string is a new string in which each nucleotide is replaced by its complement and the string is reversed -  its complementary strand can be read in its forward direction, which is reverse of the original string's dire..

  Importing and analyzing data for johnson equipment

Importing and Analyzing Data for Johnson Equipment-Johnson Equipment, the medium-sized laboratory equipment manufacturing company where you work, is in the process of acquiring Sloan Manufacturing, a smaller equipment /manufacturer in the same indu..

  One of the needs that your client has is a databaseto

one of the needs that your client has is a database.to design a database a database planner should spend a considerable

  Database upgrade

Database Upgrade Using research notes and Oracle documentation plan and execute an upgrade of an installation of Oracle 10g to Oracle 11g release 1. To do this you must show in screen shots and written notes

  Use a two-dimensional array to accumulate the number

Create a form containing labels with each of the questions and a group of radio buttons for each question with the following responses: Always, Usually, Sometimes, Seldom, Never.

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