Create oracle database tables

Assignment Help Database Management System
Reference no: EM13808622

The instructions are below:

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. Each of the steps below requires a SPOOL file to be submitted. Be sure your SPOOL file 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. If you are using iSQL*Plus you must screen snapshots as necessary of your SQL and the results. 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. Be sure to save your script used to create these tables as yournameproject2step1.sql. You should test your script to make sure it runs without error. Submit your SPOOL file 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 one of your table. Explain why the statements fail. Be sure to save your script used to as yournameproject2step2.sql. You can include comments in the SQL script describing why the insert statements failed. Submit your SPOOL file 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. Be sure to save your script used to create these records as yournameproject2step3.sql. You should test your script to make sure it runs without error. Submit your SPOOL file showing that all SQL in your SQL script file worked properly.

4. Write SQL to perform the following queries and updates. Be sure to save your script used to create these records as yournameproject2step4.sql. 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 a specific row.

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

Reference no: EM13808622

Questions Cloud

Determining the existence and causes of climate change : Which federal agencies and cabinet departments are most important in determining the existence and causes of climate change
Findings of research studies on organizations : Findings of research studies on organizations that lack an effective vision statement include all of the following EXCEPT _________________.
Write a one-page position in favor of the policy : Write a one-page position in favor of the policy. Write a one-page position against the policy. Write a one-page response to the argument in favor of the policy.
In order to utilize and implement business analytics : How do you think business analytics can help your current organization with their decision-making processes?
Create oracle database tables : 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 dec..
Explain the constitution is most relevant to you personally : Discuss which freedom guaranteed to you in the First Amendment to the Constitution is most relevant to you personally.
What interest groups would be involved : What interest groups would be involved
Availability can lead to disastrous decisions : Behavioral heuristics, such as availability, anchoring, vividness, storage, conjunction fallacy, and representativeness, all reflect behavioral traits, which if left unchecked may lead to systematic bias in the choices you make. For example, ancho..
Explain through physical concepts : Explain through physical concepts why the following are words of wisdom - You and a friend are watching a pool-shark showing off his prowess at billiards. In one demonstration, the pool-shark placed two billiard balls, one red and the other white, ..

Reviews

Write a Review

Database Management System Questions & Answers

  Explain the need for key restructuring

Give at least three reasons why ETL functions are most challenging in a data warehouse environment.

  Creating an er diagram

Creating an ER diagram, Listing the functional dependencies, confirming that the database is in at least 4NF, Using SQL commands to create the and populate the database (there do not need to be many rows)

  Web server vulnerabilities

Describe at least three web server vulnerabilities and how they are typically exploited. Provide unique answers here, posting early will help.

  List and summarize all new loans for residential housing

This analysis report will clearly list and summarize all new loans for residential housing in the past month

  Diagram of the table containing the initial data

Diagram of the table containing the initial data - state how you checked that the XML file is well-formed and what messages are sent if it is not well-formed?

  Draft the requirements for the new web site

Draft the requirements for the new Web Site - questions including all the SQL scripts that you may have created. You also must provide screen shots of specific portions of the work you have done, especially the final results and some important inte..

  Make the flowchart of the above business processes

create the flowchart of the above business processes. The assignment will be completed in 2 parts:1. AS-IS Model2.TO-BE Model once feedback is given from Professor after completing Part 1 (AS-IS Model)

  Choose a data storage problem of storing data in database

You should choose a data storage problem of your interest and identify the different pieces of data that should be stored in database.

  Vehiclerentaloz data warehousevehiclerentaloz is a large

vehiclerentaloz data warehousevehiclerentaloz is a large chain of vehicle rental company over 500 stores distributed

  Create the appropriate relationships between each entity

Modify the database diagram from Lab 1 with the entities and attributes that the scenario identified (i.e., a college tracking students, courses, and instructors). Create the appropriate relationships between each entity within the diagram.

  What physical and logical topologies are recommend

Draw a simple floor plan for New Cenrury Wellness group and include the placement of all network nodes including the placement of a server, and network equipment. How many ports will your switch need to accommodate?

  Identify and create database tables

Identify and create database tables with appropriate field-naming conventions. Then, identify primary keys and foreign keys, and explain how referential integrity will be achieved. Normalize the database tables to third normal form (3NF)

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