Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started