Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. [6 points] Provide Oracle code to create the tables for the DB schema listed below. Assume that all attributes are type number. Be

 

1. [6 points] Provide Oracle code to create the tables for the DB schema listed below. Assume that all attributes are type number. Be sure you include primary and foreign keys as indicated. List at least one general check constraint. 2. [6 points] Show Oracle code to define a view that results from the join of the two tables and its attributes are only the primary keys of both tables. 3.[6 points] Provide Oracle code for a PL/SQL stored function called "f1" that takes as in parameter the primary key of the first table and return the sum of the last attribute of the table. 4.[6 points] Give an example for each of the following using the schema of the DB for this question (a) one insert statement, (b) one delete statement, and ('c) one update statement DB Schema Table name Attributes Primary key First table angustia ell brain cost dcd Foreign key Second Table tortura pet zebra h76 ell

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions

Question

Define Management by exception

Answered: 1 week ago

Question

Explain the importance of staffing in business organisations

Answered: 1 week ago

Question

What are the types of forms of communication ?

Answered: 1 week ago