Question
Need help creating constraints for the followuing SQL program SPOOL ddl.out SET ECHO ON /* Homework on SQL/DDL Author: < < >> */ -- --
Need help creating constraints for the followuing SQL program SPOOL ddl.out SET ECHO ON /* Homework on SQL/DDL Author: <<>> */
--
-
-- IMPORTANT: use the names IC1, IC2, etc. as given below.
-
-- -------------------------------------------------------------------- /*The following DROP command is inserted for convenience so that if you need to recompile
your code, it will drop the table (if it already exists). */ DROP TABLE Employee CASCADE CONSTRAINTS; DROP TABLE Dependent CASCADE CONSTRAINTS;
-- CREATE TABLE Employee (
id INTEGER PRIMARY KEY, name CHAR(10) NOT NULL, rank CHAR(10) NOT NULL, salary INTEGER NOT NULL, /* IC1: The rank is one of: 'DB guru', 'DB expert', or 'DB rookie' */ <<
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