Create oracle database tables using sql ddl

Assignment Help Management Information Sys
Reference no: EM131232111

Instructions

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:

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.

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.

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.

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.

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.

Reference no: EM131232111

Questions Cloud

What competencies were you able to develop in researching : What competencies were you able to develop in researching and writing the course Comprehensive Project? How did you leverage knowledge gained in the intellipath assignments in completing the Comprehensive Project
What logic function is implemented by this circuit : Consider the circuit in Figure. - What logic function is implemented by this circuit? - Are there any potential problems with this circuit?
What evidence can you cite for or against this view : "If more nations become as rich as the United States, the pressures placed on natural systems will quickly become intolerable. Our world cannot sustain such increases in consumption." What evidence can you cite for or against this view?
What is the competitive ratio of the greedy algorithm : Normalize the matrix by subtracting from each nonblank entry the average value for its user - Using the normalized matrix from Part (a), compute the cosine distance between each pair of users.
Create oracle database tables using sql ddl : 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 s..
Design an nmos pass transistor logic circuit : Design an NMOS pass transistor logic circuit to perform the given function. - Assume that both the variable and its complement are available as input signals.
What is their policy and it is illegal : Chipotle is under fire for their employee social media policy. What is their policy and it is illegal? There is a growing body of research suggesting that a dog-friendly office could have a real impact on employee well-being and productivity - do y..
What is the logic function implemented by the circuit : Consider the circuit in Figure. - Determine the value of Y for φ. - What is the logic function implemented by the circuit?
What action steps could improve team member alignment : Do individual team members possess goals or values that compete with or hinder attainment of the team vision or goals? What action steps could improve team member's alignment

Reviews

Write a Review

Management Information Sys Questions & Answers

  Describe the four stages of the bpm process

The Four Stages of the BPM Process - Describe the four stages of the BPM process and summarize the activities in each.

  Discussion of the strategic role the system will play

A discussion of the strategic role the system will play in the company and A high-level discussion of how the system should be acquired and maintained

  Software application implementationprepare a paper

software application implementationprepare a paper describing a successful or unsuccessful software application

  Current events or topics on management information systems

Please write (3) blogs regarding current events/topics on Management Information Systems

  What could you apply to an organization

In addition to the three questions listed above, there will be additional specific questions for each of the articles listed below. All Businesses Are Data Businesses - Can you think of other examples of businesses that would typically be conside..

  Case study on social graphs

Case study on social graphs (the term coined by Mark Zuckerberg of Facebook) - The essay has to basically deal with the relatively new phenomenon of social networking.

  The technology s-curvedescribe a technology s-curve explain

the technology s-curvedescribe a technology s-curve explain why it is important describe what leads to a shift in the

  Please see below for specifics requesting assistance on

please see below for specifics. requesting assistance on supply chain management paper.your assistance is appreciated

  Designing and installing an information system

Write 250 to 500 word essay, describe the four components of an information system. Why is it important to consider each of them when designing and installing an information system

  Describe risks related to making a lot of modifications

Information Technology - Packaged System Modifications - Describe risks related to making a lot of modifications to a packaged system.

  Identify threats and vulnerabilities in it infrastructure

What are the differences between ZeNmap GUI (Nmap) and Nessus?Which scanning application is better for performing a network discovery reconnaissance probing of an IP network infrastructure?

  Three fundamental control structure

Three Fundamental Control Structures - Review fundamental control structures. Does not it look strange and surprising that any computer program can be constructed as a combination of only these three structures?

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