Write an sql statement to delete the nantucket record

Assignment Help PL-SQL Programming
Reference no: EM131275209

Assignment:

Turn in the SQL to answer the following questions (I do not need the tables, just the SQL).

1. Write SQL to correctlycreate the OCEAN table as specified below and to insert the data into the OCEAN table as given below

OCEAN:

Ocean

AverageDepth

PercentOfSurface

Pacific

13740

48

Atlantic

12254

28

Gulf

5299

1

 

Ocean is the primary key

2. Write SQL to correctly create the BEACH table as specified below (including the foreign key constraint) and write SQL to insert the data into the BEACH table as give below

BEACH:

Beach

State

Ocean

Manele Bay

Hawaii

Pacific

Myrtle Beach

South Carolina

Atlantic

Nantucket

Massachusetts

Atlantic

Clearwater Beach

Florida

Gulf

Coronado

Californa

Pacific

Beach is the primary key, ocean is a foreign key, set up a cascade on insert and cascade on delete for the foreign key referential integrity constraint

3. Using an update statement, update the Ocean Column to say "Gulf of Mexico" instead of "Gulf"

4. Write an SQL statement to delete the Nantucket record.

5. Write the SQL necessary to drop the Ocean table.

6. Write the SQL necessary to recreate the ocean table in the same way it was create for question 1 but add the constraint that PercentOfSurface must be Between 0 and 100. (insert the data into the table as well).

7. Write the SQL necessary to create a view that contains all of the beach data and ocean data (recompose the tables in a view).

Reference no: EM131275209

Questions Cloud

Write program which accepts a space-delimited set of symbols : Write a program which accepts a space-delimited set of symbols representing an infix arithmetic expression as described below. The user should be prompted for the input (to be entered via keyboard)
Define quantitative research and qualitative research : Define quantitative research. Define qualitative research. List the differences between these two research methods. What is pluralistic research?
Describe two formats of online focus groups : Indicate why covert observation would be appropriate for a study on how parents discipline their children when dining out. - Describe a traditional focus group.
Should the members of a focus group be similar or dissimilar : How are focus group participants recruited, and what is a common problem associated with this recruitment?- Should the members of a focus group be similar or dissimilar? Why?
Write an sql statement to delete the nantucket record : Write an SQL statement to delete the Nantucket record. Write the SQL necessary to recreate the ocean table in the same way it was create for question 1 but add the constraint that PercentOfSurface must be Between 0 and 100.
Advantages and disadvantages of client interaction in design : What should be included in a report that summarizes the findings of a focus group?- Indicate the advantages and disadvantages of client interaction in the design and execution of a focus group study.
How do you lift someone out of poverty : Watch the video below. Is our foreign aid charity misplaced and hurting more than helping? Are we keeping the poor in poverty? How do you lift someone out of poverty?
Develop your argument such that they are logical : Develop your argument such that they are logical and convincing to the reader - All agrument needed to be developed more fully application of the theories concincingly. Also, all aspects related to the theories needed to be considersed in their app..
Find the probable identity of the metal : If the cooling curve was obtained at the center of the casting sketched in the figure, determine the mold constant,

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Process of normalization to transform

Use the process of normalization to transform the table below into 3NF. Show the tables in 1NF and 2NF that are created in the process.

  Display the customerid from the orders table

Display the CustomerID from the Orders table and the sum of the associated ItemPrice multiplied by Quantity using Gross Sales (with a space) as the column name from the OrderItems table.

  Select distinct cmdclient

SELECT DISTINCT CMDclient.'Client Code SCA' as GuestCode, CMDextras.ArrivalDate as arr, CMDextras.DepartureDate as dep, CMDapr.FirstName as fname, CMDapr.Surname as lname

  Available on a major operating system

Which web browser below is natively available on a major operating system? Which type of components below generates the most heat inside of a computer?

  Security and privacy issues in internet of things

You are required to prepare and submit a report on your topic to address the following questions (the length of the report within 1500~2000 words, excluding references):

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  Create report to display scr courses in alphabetical order

Create the detail report which will display all SCR courses in alphabetical order, with a course name and instructor name in the group header.

  Write sql statement to create stored procedure

Write SQL statement which creates stored procedure with one int input parameter. The stored procedure selects the supplierId field and the total of all Count field values for each group of supplierId's from the Part table.

  Find certain governors general of australia

Find all Leaders of the Opposition and their date of appointment, who assumed their position after 01/01/1980 and For each Leader of the Opposition listed, add their wife's name and their date of marriage.

  An er diagram for the system

An ER diagram for the system. Show all entities, relationships, cardinalities and optionalities. Also, include all intersection entities. You must use the Finkelstein methodology as per the study book and tutorials.

  Calculate days between ordering and shipping

Calculate the Tax on an Order, Calculate the Total Shopper Spending - Develop a SELECT statement using the BB_SHOPPER table to produce a list of each shopper in the database and his or her respective totals.

  Explain your experiences related to your setup of mysql

Describe your experiences related to your setup of MySQL. Include any difficulties or issues that you had encountered during the installation.

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