You are on page 1of 92
BPEELLLLLELLOCLLLILELLULALALL AS, ‘atobase Manauement System 22519) Content Page wo Assess ment SI ‘Title of the Practical Date of [Date Page |pector | submi No. | mance | sion Assess of ment Dated slg, AF lor iachir Htemarhs (any) | Perform following in GUI basea database software using GUI only 4) Crea ¢ Database ii) Create tables and assign primary key 4is) Modify the table structure-add 1. | column, change the data type of colunmn, delete the column from table. iy) Insert, update and delete the record from table, v) Retrieve data from the table according to condition given Perform following in GUI based database using GUI only i) Apply given validation on table and set error messages. ii) Set default value for column. iit) Set and remove _database password. Design E-R diagram and Create Normalized Database on given data 10 i) Create and Execute DDL commands using SQL. ii) Apply following Integrity constraints 4. | on table ili) Primary key’, Foreign key, Unique key constraint, Null, Not Null and ‘Check constraint. ‘Create and Execute DML commands using SQL. 18 Oo} 9 ats Write Queries using following operators: 6. | Arithmetic Operators, Comparison Operators, Logical Operators, Set Operators, ‘Maharashtra State Board of Technical Education a atabasie Man eont System 22319) Date oF [Date of] Date of Dave of assessment paced | Remaria | sign. | Gfany) CEGECCECGEECCECECEECEETS oe ii) Grant privileges to users iii) Revoke privileges from users. Sr. Title of the Practical — |/Xf 8 | ote | No = Range Searching operators- Between Pattern matching operators-Like, Write Queries using following Functions 7. | Sting, Arithmetic, Date and time 35 { Aggregate Funetio Execite Queries using the Select §, | command with Where, Having, Group ty | 41 and order by clauses, Execute the queries for implementation 8. | of Inner and Outer Join, 46 Triplement Views 1) Create different view: 10. | 1i) Insert, modify and delete records SI nik c views, aha ® the views bi eolite Indexes, Sequences, U1. | and synonyms in SQL. 55 ,_| Write a PL/SQL programs using if then La 12. | else, for, while and nested loop. 59 Janay) china ( ,_ | Writea PLISOL code to implement ] 13. | implicit and explicit cursors. oS Waite PLSOL Programs based on 14, | Exceptions handling (Predefined end n user-defined exceptions) | Write PUSQL code t9 create Procedures 15. | and functions 80 Write PLISOL code to create triggers ; 16. | on given database. BY | | Executing DCL commands using SQL | aa i) Create users | W | 95 Total * Tobe transferred to Proforma of CIAAN-2017. ‘Maharashtra Slate Board of Techical Edocation SeSCUEEEEEEC EEE | 0-D-D-D-D-0-0-0-D-0-D-D-0-2-2-8-D-D-D-D-B-B-O-B 2-0-1-1-0-0-0-02-0 Iv. Management System (22319) Practical No.1: Write Ms Access Code to create database, table and modify table 88 is a Relational Database Management System (RDBMS), designed primarily for home or small business use, Student should be able to create and execute MS Access database, table and modify table structure by adding a new column, changing the datatype of column, deleting the column from table, insert/Jupdate/delete record from table, retrieve data from table according to condition given. Microsofi Ac Relevant Program Outcomes (POs): © Basic knowledg pply knowledge of basic mathematics, sciences and basic engineering to solve the broad-based Computer engineering problem. Discipline knowledge: Apply Computer engineering discipline - specif knowledge to solve core computer engineering related problems. Experiments and practice: Plan to perform experiments and practices to use the results to solve broad-based Computer engineering problems. Individual and team work: Function effectively as a leader and team member in diverse multidisciplinary teams + Communication: ommunicate effectively in oral and written form, Competency and Practical skills: This practical is expect to develop the following skills in you Develop MS Access code to solve computer engineering related problems. ‘Write MS Access code to create Database, Write MS Access code to create table and assign primary key. Write MS Access code to modify table Follow ethical practices. eee Relevant Course Outeom © Create and Manage Database using SQL command. Practical Outcome (POs): ‘© Perform following in GUI based database software using GUL only i) Create database ii) Create tables and assign primary key. iii) Modify the table structure-add column, change the datatype of column, deleie the column from table. iy) Insert, update and delete the record from table. y)_ Retrieve data from the table according to condition given. Vi. Relevant Affective domain related Outcome( 1, Follow safety measures 2. Follow ethical practices, ‘Maharashtra State Board of Technical Edvcation 7 : b a : ' so es ee i a pustase Management Syston (22319) x. Peeeauitionss i) AMSQL stateineiis nus enc! with a germicobon () ii) Follow safety prictices, computer (is & 1), RAM 4 GB, HDD som GB ——— MS Access ‘Any oilier resource wed XH. Result (Qutput of the executed query): have createcl clatabese. tables .tm. 6235, in ESO Macstetan ee “Oe. XII. Practical Related Questions: Note: Betow given are few sample questions for reference, Teachers must design more such questions s0 as (0 ensure the achievement uf identified CO. (Note: Use Point VIIL to X and XII to XV for all relevant programm Use blank pages provided or.attich more pages if needed.) 1. Name the types of GUI databases available in your laboratory. 2. Write down the procedure for ereating tables ina database. 3. Name open source SQL database management system. exercise, {Space for Answers] Recess —> click..on..Blank. olatalase > cli PS eaane les Maharashtra Stale Board of Technical Education XIV. Exercise: Attempt Qi, (Note: Use pi use bla E m m 5) View the an} = Istaxt A cc94s Bolte ke the and teacher shall allot Q. 2 TO Q.5 from the following: int VII to X and XU to XV for all relevant programming exercise ink pages provided or attach more pages if needed ) Student’ database and save the database. ployee" database and save it. ultiple tables in database "Employee" and renaine it ultiple tables in database for ‘student? database Thultiple tables in ‘student’ database [Space for Answers] “Blank. clesLigp bbab- 982." template, 3) Type...a..file. name, fore che. ola to hase you re. ei sett. AG... creethe..@l choose the Fololen. PONEIE..... 104..cdard., de Stee. .yatis..aledaubase . S| Cline cthe..big.. Creed) Acs le pen O.new. oladehas othe Nome laxchaw (ess) Rajdhani DATE use Pmplaycc > | aa aa ts a lcxeate table Sushant( [field Fppe Flu! 5) /nsall! c eyeball Cases (name basal sve | ? Aclebiess; anc han Cass) reste} |_| | 2 Phe dnd. cu HProm loge ivest | | 25 iit I 2 Sa Type Tritt Ul Kens Dek > Abme —vonichnur(ose), |Abyne |sewchnsts YES| | on = > Aolclie 8s vanchewr C2 ceresshembevbss NE | f 1 [Sad cu Ve51 1 | __Icseade table Shan tC On FH > Phno Tatu) ee 75 FS create Ico teu hase tucle age steolent + nt 5 Crew le tab > Name Nanchar (0SS) 5 Tie eee | Z Price Int G1! pave! seleal 4 > Acthad NOW, ir ( 28s" ih > type Cre), New aha > company ibe 10 — ah = 2 95 ? bank Tel 9 ) lee 8 51 iI 5 | } Carte table RenC {field Miype Als] Leyton! Cadre | = It value for column, set and p¢ 7 and set sa d my le rror me 4 password Mah a . work The Validation Rule and Vatldation Text properties don't apply Wo chevk hen, option ‘button. oF toggle thuttom contyols when they are in an.optiin groups. They apy ¥ 0 the ontion group iivell: Set the Default Value of each control so they offer the same vali ax oon AS YOU MOVE Ano the new ree VII. Procedure: Open Database. 2, Opea the table in Design View 3. Atthe bottom of the screen find the "Validation tule” field. 4. Inthe Validation Rule field type validation rule, 5. In the Validation Text field ype an error message like 6. Save the database. 7. Use different features on it and apply it on database Close the database Resources required: Sr. ane 7 No. Specification Oy. Remarks 1 ‘Computer (13-15 preferable), computer system, | RAM minimum 2 GB and onwards, HDD 3006 As peetiatek For all 2 | Operating Windows 7 and above size Experiments system: /LINUX version 5.0 or later 3 | Software ‘Any MB Access software, X. Precautions: i) All SQL statements must end with a semicolon (:), ii) Follow safety practices. XL Resources used: 5. No] Name of Resource Specification T | Computer System mputer Cis - prefembe), 2 QB ~ with broad specifications ce. i M1 SasGeh HDD 2 2 | Software ramnape» MS Acced> 3. | Any otlier resource used My 34 ) PROUMP?. XII Result (Output of the executed query): Maharashira State Board of Techical Education fi sase-evel password from a database = s [Space for Answers) 2 Aes i Bele! that necals...e. message fax. input alg Se oo the..ftelel. shell. dlaeadly..NOWe...g..._ so Vedialedion. cxile..On.dhe.. hrelels dah, ti the fits = valfolation. group, click. valiolation,<-cthen..cltek Frelel * ut i ui lial? message’ An... po Periarbe message, 9 i Pox.29...ththe walt”. cule |e 28S, tthe -mneasage 9 = anight. be Enter cx. mule. they. 13.1098.. than 66? | Maharashia Site Board oF Tenia Easton a L f 4 | Ge v Fi as | a lect Us : oh 1 i i [puken tne set lalshhase possconsd—aitsclau) ——_| } i mys. nate ev at a tT [oetick an tne Ox button: Le r |s\oTo semove 3 cotahase + level pass coord exclusively t | ppen Yaur Access inclea the Jacl —merti elect leon Us fal sonal LIne \> sel cl_cthe Ficlol tne meecls am e Fa: | | i fe fi lalseady have 0 validation ules on the | | Fielels dob, fn the fel! valiclatina 9 | [click olinledian & then click Fielel valiald?’ — | le.g. if tre ae aule 35 >10,+he message eis he “Erdey om value tha} is leas chan 651 [a To set ee goaacone. eae enter yote nk —_ pasou was-ol omiol cls ck an Hee ok bot Ds. Pacliml Reladen! Questions: ameccd. At dhe Ciela) level the oa. =the ee To anol “0 Cindusite). To mee the fo) Jaina © enpressi¢n an on Taha |Rreble¢s4o Awol 220: When 0s enters a value atheal Jne_O Ag I Qo, Access alisplays an saa message avuel mejects the. 2 —tepd stig) [Rg aclick the fable Cin Design vig anol select ore i |_ 2. dys the Vedialation Rule prensa He" dhe ent cpress]ou_ Clow weet 6 1 CChanys. See | 4 ee e. This a ‘vqlue other tan O + alee haa only cohen the hoot —vahie | —}— equals 40. —— 12> Uncles Fielal prop sopeaties ad OF |! eee eh ANE le Cu [gerne fosb, click in the Default | nae aperky bore , and _- then _ Pa Jax TaieO. click the “Shay te picket _propesty how, Onl | shen) _select ae fyom_the ed — Save your select! Aleve ) close hel i, Mn, ize Data Practical No.3: Design ER Diagram and Normalize Database Practical Significance: jonship among them, The po Set shot babi identity teenies and relationship among pe Te esse ea all the updation anomalies for ensuring data dependency. ‘mex ‘hese skills in students, Relevant Program Outcomes (POs): * Discipline knowiedge: Apply Computer Programming knowledge to solye ‘broad-based Computer related problems. - . Experiments si peice Phin {o perform experiments and practices 19 se. the results to solve broad-based Computer related problems, hows * Engineering tools: Apply relevant Computer programming tools with ay ‘understanding ofthe limitations. ‘Communication: Communicate effectively in oral and wet AO 4 Life-tong Learning: Engage in independent and life-long leaming activit in the Somext of technological changes in the Computer engineering fickl and allied industry. Competency: and Practical skills: This practical is expest to develop te following skills: Draw an E-R Diagram and Normalize the database of any systems. 1 Kdentity and relationship for E-R Diagram, 2} Normalize the database wing normalization concepts 3. Draw E-R Diagram for the given database. 4, Draw tables for the normalized database, Relevant Course Outcomes: * Design Normalized database on given data, Practical Outcome (POs): *)Pesin E> diagram an Crest Normalized Dts on gen dt ETE ee ee da “2 yee S| Qualification A Bernd le Docrid oreiian ke: Foreigh key references to Dos-id of Doctor table Patient: ree Yi Ge Primary Key ati | Recordid | Foreign key references to Record-id of Medical Record table Hospsid Foreign key references to Hosp-id of Hospital table Medical record: Record-id Primary Key Problem Baas Date_ofexaminstion | A at Shute Pai Foreign key references to Pat-id of Patient table Doctor: Doc-id | Primary Key Be) Athilade See Atiibule . Hosp-id | Foreign key references to Hosp-d of Hospital table Procedure: i. Consider the Database ii, Normalize using normal forms iii, Draw ER diagrams ‘Naharashira Siate Board of Technical Eduestion B ¥ —————— Te Remarks ( Resource ‘Gor laier_| Asper batch For alt | ine Experiment { 1 arams Use appropriate Notations for E-R Disa { 2 Properly Normalize database using INE2NF and 3NF 3. Follow sufety practices XL. S.No] Name of Resource ee Conus Syoen ——/CEROPREH C1 -S= preFERBBIe, with cations DGB RAM Soliwa 4 Any other resource used XII." Result (Output of the Program): have... steokiel.Ho.ss...bo.elaan, GP...cUEy wa, ONG PAO ES...OF NOMATALOD cc cceneuniansraminmman NIL. Practical Related Questions: Noter Belo ven are few sample questions fort F ce, Teacher inust design more Such questions so as 10 ensure the achievement of identified CO. (Note: Use Point Vill to X-and XIll o XV forall relevant programming ex ercise Pages provided orattach more pages if needed) blank ‘ t ‘ ‘ ‘ ‘ ‘ ‘ 1 Draw notations for Multivalued and Derived Attribute. Pt) Metivalucd Aide | 0 Desiveal Attvibute. } « ) 6 ' i | Mahorashira State Board of Technical Education Ai (me TT) | ‘pura seo cme Pubtel Aare — || oe tht ste a ret) : 1% E shelat ‘htt - sbcoletol Aleume (yatta! Cracives Tete __ 4, TA 1 # ONE C Tad Alormall Ram) haan | Das ate New neers i en ! Dedman —< Berton i as, ; Coie Toons | tony Y | a ee Cie >) i Fig2.ER Diagram for Student Borrowing Books Published by Publisher i) Idemify Derived Attribute } {i) Identify Muttivalued Attribute ] iii) Identify Primary Key and Foreign Key 3. Consider the database of Fig2.and Draw normalize tables upto 3NF _ ‘Theory Related Questions: (1) Draw notations for strong & weak entity, (2) Difference between strong & weak entity (Space for answers) ad.) > Theré..2.re.cleniven!...oF Abide... Mahiarashira State Board of Technical Education semen! Systern (22319) ise: Pt QI. and Q.2 from the followings Jse Point Vill to X and XII to XV forall relevant programnung © pages provided or allach more pages Hineeded.) using minimum 4 1. Draw ER Diagram for Railway Reservation Syste sete) entities(Hint: Customer Details, Trait_ Details Coe eee oa _ (Space for answers) Reahoones clvess) + Maharashtra State Boand of Technical Education 16 te | \ | | i> oo QNE CSecomal Normal For’) ble 2: Aslan =S [A 2.1] A Name! anger =| rol [Pp - |p N Age | Table 43 Bonbing 316 tl [souece |Destination B Pacel | BNE Cthirel Alocmal Pawn) Teen oma eal ! 20) Favle- 516 i ~ho | Souace | Destined ian! B fone | ‘ ‘ es based on DDL Commands / : base ky timings and modlify the structure of ble, The 5 iT AE amo create prope dalaboe { I. Relevant Program Outcomes (POs): | : Apply knowledge of basic mathematics, selences ind bis + Bitceine wdoniage: Avnly Comper Progen: now aie (40 broad- based Electronics related problems. + Experiments and practice: Plan to perform experiments and practices 10 use i the results to solve broad-based Electronics related problems * Engineering tools: Apply: relevant Comput tools with an understanding of the limitations. * Communication: Communic in oral and written form + Life-long Learning: Engage in independent and life-long tearing activities programming teehnologics and context of technological s in the Computer engineering field and t allied industry TH. Competency and Practical skills: | This ppractical is expect to develop the following skills: { Create and modify database structure for maintaining any information, 1. Write and Execute SOL queries for creating and altering table structure with all integrity constraints 2. Write and Execute SQL queries for changing the structure of tt 3, Write and Execute SOL queries for Removing structure of table the table nam and Renaming IV. — Relevant Course Outcome(s): Create and Manage Database using SOL command Y. Practical Outcome (POs): a) Write and Execute SQL queties tor creatin structure. ind modifying the data VI. Relevant Affective domain related Outcome(s): | tL. Select proper SQL Statement for creation and modification of database structure 2. Follow safety measures ! 3. Follow ethical practices Vil. Minimum Theoretical Backer Basic SQL Data Types: 1, CHAR(SIZE) i 2. VARCHAR/VARCHAR2(SIZE) 1 Mahurashira State B nical Educath Tian = ‘ a = 1 ‘ x XL Resources used: x S.No] Name of Resource Specification a [oT [Compaeeswien RSPR ae PAM, Soo HOD = swith broad specifications | “yeae. 2 | Softw, | | | Software xampp << ] Any other resource used | my Sq] a NIL. Result (Output of the SQL Commands): ~] we successfull r _Pegutsel. che. B ees bates]. ox 0. a NIM. Practical Related Questions; S Note: Below given are few sample questions for reference. Teacher must design more such questions so as to ensure the achievement of identi} tified CO. = (Note: Use Point VIII to X and XIII to XV forall relevant. programming exercise en use blank pages provided or attach more pages if needed.) 1 (Create a table EMPLOYEE with following schema: Eimp/Emp_to as primary = name,, Dept_no. Dept_name,Job id, Satary) ~ 2 Create a tables EMPLOYEE and DEPARTMENT. with following a eee ey .emspname, salary, phino} — “7 primary key, empno foreign key, depiname, location) Theory Questions: il (1) List DDL Commands with syntax (2) Use of Desenibe Command a (G) Analyze the difference between drop & truneste- R (Space for answers) Prachical Relates! Questions. = > ae | a fan ee (eat ae tt : eoprene | ea c55) : [pe Basan ees ] t Es SE) ree Lnlnlalype — 2 7 = —_eahimn_0- al e-——$—$$$———— mT | ce iE (oe = a7 ON a a sen -0 sla byes es oe pe Dame ele aE ae —_ | vinta = ALTER “TABLE name T — ADD. column. feame.clelal ype} 3) TRONCATE be aa 2 = ij ames ies = QDROP : ni pace TABLE table name 3 ——___ 3) QENAMES i 1 te enaine Thole —oldtnble-name to — | new _table names Hi | oo oes ee Sl a |< ‘amety : 7 __—_——|_ —The Es epee cen 23 atl te olescaie 2 tthelps slahyects_neays the clept : acer linge ploy the ne umber \ adtyihute av column neste shen an hie 59 TRUNCATE fo serve table eked (Seal to ob =e Sts content Yecm the ane! || Prong memo 14s 4 foal DeFini tian] be ighated 2h anal. Sta the DROP command, in this cammanal sedeqaily constaciinds. ool freee! 0 os ™ ~ Mancha Coss)... i ' i, as ID. i % = Se y. Exercise: Attempt QI- and teacher shall allot Q. 2 to Q.4 from the following: i “ (Note: Use Point vl to X and XII to XV for all relevant programming exercise use blank pages provided or attach more pages if needed.) oe i 1. Create table for stud using attributes Rolino, studname, percentage)apply primary key for rolino and check constraint on percentage should not grester i ae 2. Change the stud table structure by adding column city la 3. Increase the size by 10 of studname column. t 4. Write output of the following: ly t a) Create table Write output here | r passenger_details(passenger_Name varchar2(30), train_details < varchar2(30),travelling_date date Qrtoy | 6 birthdate date); ° | b)Alter table stud add column 7 A Ticket_cost number; ervey 5 wers) (Space for Dz. eens : De Veg T aigpe UROL IAB vorerned adr. 1 NO.) PRE NULL 4 wat EE AES conned NOLL oo om tet NL Moharashara Staie Board of Technical Education pe eee z r Sy fo a = $ ~T Alal\_) Key_1Defanlt (fad fe Ne eae Vauaage Manggsingnt Syston (22819) Q.99 ae ala. 4 “Type yall set ‘pshoult Cera Uttara boil pment eeeeoeee i Rellnva i atCie) stuslacme...| voschar Css) |. NES p-peaseralosje vo kECUD, Es A eo) Yom nfen MOC a0. 90) 4. NED ap XY. References / Suggestions for further Readings Wwww.waschool.com XVI Assessment Scheme: Weightage formance in icators Process related (15 Marks) 60% 1, | Formation of MSA 9, | Execution of MS Ace 3. _| Follow ethical practi Product related (10 Marks) 40% 4, | Correctness of MS Access Code 15% 5. | Timely Submission of Practical 15% 6, | Answer to sample questions 10% Total Qs Marks) a List of Students ‘Team Members Marks Obtained Process | Product | 4, Related(15) | Related(10) Total(25) 4 lc ee Sls a NSCS ls i ttc, neo ramon No.5: = Execute DML Con mands in SOL 1, Practical Signifiea Stoilent should b ll be a should be able to use | on manage the database, 7 lesign and impleme ereate a database tab i a tains able usin ing contain and Was 16 insert, upadats, delec and This will help ation ar tel © anders diferent soe. uvolved in HW. — Relevane P sgram Outcomes (POs): line knowledge: Fa Wedietasclie coe se ee ee . ‘ommunication: Comm 5 TL. Competency and Practical ski his practical is expeet to develop she following skills Design and Execute Dat ata Manipulation La a Creating the database table, Hrrnstiee ene ng 2. Insert single iti ile or multiple rows into the table 3. Update single and multiple rows ofthe table 4. Delete single and multiple rows ofthe table IV. Relevant Course Outeome(s): Create and Manage Database using SQL commands Practical Outcome (POs a) Create and Execute DML commands using SQL. Relevant Affective domain related Outcome(s): Vi. 1, Follow safety measur 2, Follow ethical practices Vil. Minimum: ‘Theoretical Background: Lunguage(DMIL): DML statements are used to insert sine 06 part as multiple rows/tuples, update single or mnie owsituples. in the table: Tulete single or multiple rowstuples from the able ‘and to retrieve the data ie rows/tuples from the table. The different DML commands used are: £3) DELETE 4) SELECT Data Manipulation 1) INSERT 2) UPDATI nt is used to add new rows/tuples into the 1)_ INSERT INTO: This salem? : ype of INSERT INTO queries: felationtable. There are three © -cinieal Education ‘Matiarashiea State Board of Te —=— Se ue al pat, Ie rf y = = 1 ee Se a ee ae “PELETE deme some an | Doop con aemave entine— all-the tuples Fram _o table | schesmm,Leble clomain,.ox— pO cng ates Bron ctl lalla, ELETE is a Dale Manipult| DROP to “bala Definilina fon language cemmanel | Language cescmmanal. WHERE clowse con be tiseal| No cbuse t _ jotlong edith He “Dele TE = | ti _ comm | commana ond. [Relions pesfosmec! by DELCTE| Actions perfeames!_by DRaP. loam be well ee P= aTeenET a [el | GT foes tf you olelele all the | “Table olelele cl essing ki Jes of the [able runing DROP Freos the table pete, smce_ccc uuptedl by | Space Foon? memeay.— | [IAA 2S Ee | fn (oat Fas) [eR ees ee eee

You might also like