Perform the physical design

Assignment Help Basic Computer Science
Reference no: EM13318800

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

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. Do NOT submit your SQL script files. Also, submit all of your .sql files.

Reference no: EM13318800

Questions Cloud

Describe the various components of the logic of the study : Describe the various components of the logic of the study of science. How does an understanding of this logic contribute to an understanding of the goals of science?
Describe the model''s strengths and weaknesses : Describe the model's strengths and weaknesses
Define the diffie-hellman key exchange : Define the Diffie-Hellman key exchange? How is this information relevant to you?
Examine the interview structure presented in the sequencing : Examine the interview structure presented in the sequencing
Perform the physical design : Perform the physical design and implementation using SQL Data Definition Language
Design an e?cient algorithm to handle a sequence : Design an e?cient algorithm to handle a sequence of such operations.
The amount of sales as input and outputs the total amount : A sales person gets a base salary of $200. They also get 3% of any sales between $500 and $1000 and 5% of any sales over $1000. Write a driver program named Commission.java that takes in the amount of sales as input and outputs the total amo..
Ethics begins at home explain : Business ethicists claim that the recent spate of business leaders, especially bankers, who have admitted to unethical behavior, is not surprising. In fact, these experts explain that when rewards are high and risks are low, the brain often giv..
Ceo of marketing plus : Write a persuasive email message to Dick Elders founder and CEO of Marketing Plus.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Difference between data block-extent-segment and tablespace

Allocation in Oracle can aid recognize problems more easily. In your own words, give the description of difference between data block, extent, a segment, and a tablespace.

  Show that the regular sets are not closed

Exhibit an algorithm that detects whether one finite automaton accepts a subset of the set accepted by another machine. Show that this procedure works.

  Stage of ec purchase decision-making process

Banner advertising on Websites helps trigger a realization taht there is a gap between reality and a desired state, which occurs in the ______ stage of the EC purchase decision-making process.

  Both the discussion and in the assignment tool

Post your response to the following questions in both the discussion and in the assignment tool. Name your assignment in the following manner: LastName_4A

  Indentify a network topology

indentify a network topology that would best suit each of the following environments and explain why: dormitory floor univeristy campus airport state of province

  Convert decimal mumbers into bit binary number

Convert the following decimal mumbers into 8-bit binary numbers a required for 2's complement math, and perform the indicated operations.

  Define the term information systems planning and list

Identify the key participants in the systems development process and discuss their roles. ·  Define the term information systems planning and list several reasons for initiating a systems project.

  Write a program that reads in the length and width

Write a program that reads in the length and width of a rectangular yard (in meters) and the length and width of a rectangular house (in meters) placed in the yard.

  Interface perating system with uninterruptible power supply

Windows XP Professional can interface through the operating system with an Uninterruptible Power Supply (UPS).

  Write assembly language program that prints your first name

Write an assembly language program that prints your first name on the screen. Use the .ASCII pseudo-op to store characters at the bottom of your program. Use the CHARO instruction to output characters.

  Finding slowest clock rate used and not lose any data

What is the slowest clock rate that could be used and not lose any data? Assume that the number of instructions to be processed for an interrupt is constant.

  Illsutrate how bound seem realistic

Sufficient to assure with 90% confidence that the learned perceptron will have true error of at most 5%. Does this bound seem realistic?

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