0% found this document useful (0 votes)
13 views3 pages

MCS-023 24-25 Assignment Q3 - A Ans

The document outlines the creation of various database tables including STUDENT, DEPARTMENT, EMPLOYER, CUSTOMER, PRODUCT, and ORDERS, specifying primary and foreign keys. It emphasizes the importance of data integrity and constraints to ensure valid entries in the database. Additionally, it discusses the objectives of maintaining accurate records and the ability to perform updates and deletions on the database.

Uploaded by

jyotishkag
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

MCS-023 24-25 Assignment Q3 - A Ans

The document outlines the creation of various database tables including STUDENT, DEPARTMENT, EMPLOYER, CUSTOMER, PRODUCT, and ORDERS, specifying primary and foreign keys. It emphasizes the importance of data integrity and constraints to ensure valid entries in the database. Additionally, it discusses the objectives of maintaining accurate records and the ability to perform updates and deletions on the database.

Uploaded by

jyotishkag
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 3
Q3. a) ' Indrgril Comore — Gb orcly ronstract arce ruled or cancfians Crfrerd ar dolabnre toll fe ennoe the oceurnrey, Vabrbilipand Canrilemey of He dole. There combarrts resbuct te Apes off deli ae com be spaorlad updeted ar delolse ALO cola tore, earibajmrcng the ntegoly af th inlbornalion. nes NDorein Comnbrds Canntronvts’ * Thre rpecify tte porrvoneble vole Jor a given able bee, 6Cxe-pL CREATE TABLE STWENT( stadt ID INC, faa INT CHECK (Aye So AND 7p « Unpes Gosne dh (1 Hepa); Dent contin es (i 8° Comk tose volrien byobace} on above /> © Epyenre Lack Carers Lok Orobs meetin Bhle horn usiguee rdbifer (Prmoy 24) ood Hert hn key Carvel thre asf: pss ” Bren?! CREATC TABLE TPIS (Oxo 1p THT PRimaR ye Nome VARCHAR (se) %, Papa Hd leigze ts ee tea alenrjno Erp (Dd, Referontiol ae o Crrurwr plot ae ema «: Ae Poeimorsy Kay in ongttr ible, REATE TABLE DEPARTMENTC Dept i) INTs PRleaey ie Hime VARCHAR (52) )» %, CREATE TABLE EMPLOYER (Emp |) jxlT PRIMARY key, Dek_ 1D INT, FOREIGN key (Dee ID)RERLRENCES DEPARTMENT (Dep. 1D) J} eo Praveen merbio alo Deel ID bble unto if exit, IW) Weg. Canbigind® o Bounds Wolk voles Sin apecidic valam (0 Compiolia~ af. Cobian, ore Urge vOre% oll Hous , ° Corp CREATE TABLE STUDENT (. Rol No INT UNIGUE, Nome VARCHAR s9) 5» WORE G Worantier yo bom, Hadi Ty con have fhe nono Robb W rot Null tonifinche ee ee Nin oles, ®Expe- CREATE TABLE CUSTOMER ( Coofomer ID [NIT PRIMpRY key , : Nowe VARCHAR (50) not nue oy : Weg? Ernirer OE) OLA i CEN res Chew Contents inte mproyee an the Deporlmaret thle mE CREATE TABLE PRodver( Pradeot 1D jap Price Detimel (10,2) Neck ( Pree 0) > ‘ murs HA Ie Price ee Pratlect :,oliratys Vid Defult lonibrasnd “Aigner t coli hae bo volut ts tifa dean innelign. °SeR- CREATE TABLE ORDERS ( Oncan_ID INT, shelin VARCHAR (20) DAEAULT Perding | Je Wroge ; Arderobcolly at, thy tp "Pending elie ela Baeewecls * Retowh He preticko of Ha dedox bore ogo roullearsalaceayy MAS Be cau lo, SUE invalon ype Pigalle OGL oh Othe Lenk o, atterrisko 2 cypLior ond ocean eontiol * Objeclve? To enire HA arly etbonisal Wry por porhnn nitions (rerd ile upate, delte) on the dob bose. Deb bare Inleze ty — *Rlins tlhe weennecy, sedinlioey od voli: lG of be Lhe satan te dobboe . 0 modmrned Mraugh ruler Ihe tontrourts (eg. Peinary Ayr keys, NOT wuLe, UM BUE), Sto errune tak the dole shred inthe dolabose 34 egireol ble. deeb » Dotabare xerothy rrctoot Ye » coh teat roubl hn! te ese linn an

You might also like