Co1 SQL
Co1 SQL
h) Guate the
tonament talee as her nomation belous
CREATE TABLE Townnint(
INTEGER PRIMARY KEY,
TNane VARCHAR2 C30) NOT
NULL,
Startot DAT E NoT
nddt DATE
INTEGER NOT
TABLE Match C
CREATE
PRLMARY KEY,
MId INTEG ER
NOT NULLy
TId INTEGER
NULL,
Mar INTEGIER NOT
NULL,
llayer 2 INTEG ER NOT
Matehbt DATE NOT NULL)
Matehelayol NUMBERJ
MatoheWon NUMBER,
FoRE IGN KEY (TId) REFERENCES TouUnament (Trd),
enol 20
KThe name ot he authot doe nut
ohacs
ALTER
TABLE Rlaye
ADD Malcheswen NUMeER
5) a) Guate the shonn dalle with aeriate sata tyrus
kor the attibwtes desoibed belos
CREATE TABLE shennerC
07 NVL,
EMP_ LN AME VARCHAR2 C15)
NO7 VL,
EMP.FNAME VARCHAR 2Ci5)
EETWEEN
CHARC) CHECK CEMP-2IT IA L
EMP_ INITIAL
IA' AND z')
|leouty the iill sot tabe to stoe the Bie Tas. The
comn mame shod e tarc and the data
|tyre sheuio be an mmbe.
ALTER TABIE Bl ADD Tax Numlr
2) Ado not ll
UNIQUECtikl);
constaint he nice ¢m books talle
ALTER TABLE books MODTFYy °e FLOAT
NOTNULL)
)ALTER bhe NoT NULL comsthaint An khe we celuumn
and et a chuek cesaint to enu he Vaua s
qteat than o.04.
|ALTER TABLE boots MoDTFY ce FLOAT WOT NULL)
ALTER TAB LE books ADD CONSTRATNT ehck.ouee CHECK(PPe 7004);
d) DROP THE NoT NOLL enstint to the aty coumn dm
the boets table