Answered step by step
Verified Expert Solution
Question
1 Approved Answer
c ) ALTER TABLE WORKS _ ON ADD CONSTRAINT FK 1 FOREIGN KEY ( Essn ) REFERENCES EMPLOYEE ( Ssn ) ; d ) None
c ALTER TABLE WORKSON ADD CONSTRAINT FK FOREIGN KEY Essn REFERENCES
EMPLOYEE Ssn;
d None of the above.
Consider the following relation schema:
PRODUCT
Which of the following statements creates the above relation?
a CREATE TABLE PRODUCT
PID INT CHECKPID BETWEEN AND UNIQUEName
Name VARCHAR NOT NULL PRIMARY KEY PID
Color VARCHAR DEFAULT 'White' CHECKColor INRed 'Green', 'Blue',
'White';
b CREATE TABLE PRODUCT
PID INT PRIMARY KEY CHECK PID
Name VARCHAR NOT NULL UNIQUE,
Color VARCHAR DEFAULT 'White' CHECKColor INRed 'Green', 'Blue',
'White';
c CREATE TABLE PRODUCT
PID INT PRIMARY KEY CHECKPID AND PID
Name VARCHAR REQUIRED UNIQUE,
Color VARCHAR DEFAULT 'White' CHECKColor INRed 'Green', 'Blue',
'White';
d None of the above.
Consider the following database state and SQL query.
SALESMAN
SELECT NAME
FROM SALESMAN
WHERE CITY IN Paris 'Cairo' ;
Which of the following represents the result of the above SQL query?
a
b
c
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