Implementation using sql data definition language

Assignment Help PL-SQL Programming
Reference no: EM131056494

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.

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. You should test your script to make sure it runs without error.  Capture the script output 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 your tables.Explain why the statements fail.Do not include failures due to syntax errors. You should include comments in the SQL script describing why the insert statements failed.  Capture the script output 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. You should test your script to make sure it runs without error. Capture the script output showing that all SQL in your SQL script file worked properly.
  4. Write SQL to perform the following queries and updates. 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 
    • 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.

You will have to submit two things:

  • a text file containing all the SQL statements that you created for this project: CREATE TABLE, INSERT, SELECT, UPDATE, DELETE. Include comments in the file to indicate what each section of the file represents. This is the content of your SQL Developer's Worksheet window related to the UMUC Oracle connection
  • a text file with the results of running your SQL statements. This is the content of your Script Output panel in SQL Developer.

Please use .txt extension for your files, not .sql.

Reference no: EM131056494

Questions Cloud

Analyzes project that requires an immediate outflow : The Allied Corporation analyzes a project that requires an immediate outflow (an initial investment) of $455. Allied estimates that at the end of the first year the project will generate a positive cash flow of $660, but that at the end of the second..
Execution of the program segment : What values will be assigned to the variable ua ,ub, uc and fail after execution of the following program segment:
Grouped data with progressive censoring : Exponential fit to grouped data with progressive censoring. For motivation, first see the distribution transformer data in Table 3.1 of Chapter 10. Each group there is assumed here to have the same exponential life distribution with common mean θ,..
What would be the state of the user ids after following call : Assume in each of the following cases that the initial set of process user IDs is real=1000 effective=0 saved=0 file-system=0. What would be the state of the user IDs after the following calls?
Implementation using sql data definition language : 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.
Which has the following initial set of process credentials : which has the following initial set of process credentials:
Optimum grouped exponential : Optimum grouped exponential. For Problem 9.3, suppose that all I units have a common time T~ between inspections; that is,
Assignment on computer memory hacking : Describe what hacking of memory or hacking of RAM means. Examine the common tools that hackers use to hack into memory of computing devices. Detail two (2) real-life examples of such tools in action.
What leadership style is used by the manager : How are the employees motivated to perform better - Which motivational approaches are used and what leadership style is used by the manager?

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Assignment related to sql querries

Write a SELECT statement that returns these columns from the Products table: The DateAdded column, A column that uses the CAST function to return the DateAdded column with its date only (year, month, and day)

  Write pl-sql block to display the last name of people

Write a PL/SQL block that displays the last name and salary of the following people. Each of these can be done separately as PL/SQL, first to test and get the output lines then encapsulated in the procedure.

  Assignment related to products table in sql

Write a SELECT statement that returns these columns from the Products table: The ListPrice column, The DiscountPercent column

  Write an application for the events

Closing the application. Close your running application by clicking its close box.

  Identify the attributes of the entities

Identify the various entities and their attributes involved in the application and identify the attributes of the entities that are unique to each entity.

  Question 1 given the series rlc resonant circuit in the

question 1 given the series rlc resonant circuit in the figure operating at variable frequency determinenbspa. the

  Gathering requirements to develop sql queries

Describe some techniques for gathering requirements to develop SQL queries. Provide an example using a business case.

  Write a sql statement to return some columns

Prepare this SQL query and sort the result set by CategoryName and then by ProductName in ascending order- Write a SQL statement to return some columns

  Use the provided appbdbcreatesql sql script to create the

use the provided appbdbcreate.sql sql script to create the database to be used when working on this assignment.question

  Write a query to display the starting salary

Write a query to display the starting salary for each employee. The starting salary would be the entry in the salary history with the oldest salary start date for each employee. Sort the output by employee number.

  Write a sql query that uses union of the two tables

Write a SQL query that joins two tables in the example database and uses LIKE to restrict record selection (use zip codes to restrict data).

  Median-of-three partitioning method

Show the steps of partitioning  36, 38, 8, 31, 19, 15, 14, 35, 20, 7  with median-of-three partitioning method  (only show the first partition into 3 subparts, elements are less than pivot, pivot, elements are larger than pivots).

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