Answered step by step
Verified Expert Solution
Question
1 Approved Answer
DROP TABLE crop; DROP TABLE animal; CREATE TABLE crop ( crop _ id NUMBER ( 6 ) PRIMARY KEY, crop _ name VARCHAR 2 (
DROP TABLE crop;
DROP TABLE animal;
CREATE TABLE crop
cropid NUMBER PRIMARY KEY,
cropname VARCHAR UNIQUE,
seedcost NUMBER
yieldperacre NUMBER
numacres NUMBER
avgcost NUMBER
dateideallyplnt DATE,
harvesttime INTERVAL DAY TO SECOND
yieldcost calculatedfield NUMBER GENERATED ALWAYS AS yieldperacre avgcost STORED;
CREATE TABLE animal
animalid NUMBER PRIMARY KEY,
animalname VARCHAR NOT NULL,
type CHAR
numhead NUMBER
maturitytime INTERVAL YEAR TO MONTH,
offspring VARCHAR
crop NUMBER NOT NULL REFERENCES crop cropid;
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