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

  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