Mobile No: +91-9000075637/9642143942 SC HOOL – CASE STUDY ER D M O DE L I NG FUNCTIONALITY SPECIFICATIONS: 1. AB C B a nk is p lan n in g to au to m at e its S a vi n g s B an k O pe r at ion s . It of f ers m an y f a ci li ti es lik e S a vi n gs B an k , C u rr en t a cco un t , L o an A c cou n t et c. Th e c li en ts of t h e Ban k o p en a ccou n ts i n di ff e ren t b r an ch es. Th e c li en t co m es to th e b ran c h an d pu ts th r ou g h t r an s a c ti ons lik e c ash d e po sit , cas h wi th d raw a l et c. W a lk - in Cu s tom e rs pu t t h rou g h t r an s a c ti ons li k e F X S a le an d pu rc h a s e. T he t e lle r w i ll ta k e car e of d at a en tr y of a l l tra n s a ct ion s . C as h Wi th dr a w a ls ab o ve Rs 10 ,0 00 req u ir e au th o ri z a ti on b y Of fi ce rs ; an y w it h dr a w a l g re at e r th an Rs2 5 ,00 0 re q u i r es m an ag e r ’s s an cti on . E m p lo ye es o f th e b r an ch can a ls o h o ld SB a c cou n ts wi th th e br an ch . 2. A co m pa n y’s Pu rch as e d e pa rt m e nt b u ys va r i ou s i t ems f rom m an y ven do rs . E a c h ven do r q u ot es a u n i t p ri c e fo r an i t e m b a s ed on th e q u an ti t y of i te m s b ou g h t . T h e qu ot a ti on f ro m e a ch ven d o r i s co ll e ct e d b y th e Pu rch as e D ep a rtm e nt an d st or e d in a Pu r ch as e C a t a lo g. 3. Use rs a re au th ori z e d to wo rk on on e o r m ore w or ks t ati on s. S om e u se rs m a y n o t be au th or i ze d to wo r k in an y wo rk s t at i on a t a ll. E a ch au th o ri z a t ion ca rri es a pr i ori ty an d a se t o f a c c ess p ri v i leg es . A us e r h as a h om e di re c to ry f or e a ch of th e wo rk s t a ti on s i n wh i ch h e is a u th o ri ze d t o wo rk . Th e s a m e h o m e di re c tor y c an b e sh a re d am on g s e ve ra l work s t a ti on s o r a m on g s e ve ra l u s e rs. 4. A p e rs on m a y h a ve u p to th re e c o mp an i es as e m p lo ye rs . E a ch pe rs on h as a n id . Ca rs m a y b e o wn e d b y per son s , co m p an i es o r b an k s. A ca r is ass ig n ed an id . C a r O wne r i d i s t h e i d of t h e p e rs on , c o mp an y o r b a nk w h o o wn s th e c a r. A ca r lo an m a y b e in vo lve d i n t h e pu rch a s e of a ca r. L o a ns can b e g i ven on ly b y a B an k . A Ban k m a y ta k e a lo an f ro m an oth e r b an k , du ri n g th e p u rch as e o f a c a r. D AT A BA S E DE S IG N: 1. Cr e a t e a D A T AB A SE : SC H O OL 2. Cr e a t e a s e con d a ry fi le gr ou p an d as s ign a c ou p le of fi les t o i t. 3. Mak e th e s e con d a ry f i le gr ou p as th e d ef au lt f i leg r ou p. 4. Cr e a t e th e b e lo w t ab le s . P la c e th e m i n d if f e ren t fi le g ro u ps if th e y a re t o b e u s e d in jo in s . www.GoOnlineTrainings.com Pg: 1 Mobile No: +91-9000075637/9642143942 CREATE THE FOLLOWING THREE TABLES WITH SAME NAMES AND DATA TYPES AS PROVIDED BELOW: Cou rs e Ma st e r Co lu mn N am e Da ta T yp e Re ma rk s CID In te g e r Pri m ar y K e y Na m e V a rch a r ( 40 ) NO T NUL L Ca t e g or y C h a r( 1) B as i c /Me di u m /A d van c e d Fe e Sm a llm on e y NO T NUL L Stu d en t M a st er Co lu mn N am e Da ta T yp e Rem a r k s SI D Tin yIn t Pri m ary Ke y Na m e V ar ch a r ( 40) NO T N UL L O ri gin Ch ar (1) L o ca l/F or e ign Typ e Ch ar (1) Un d e rG ra du at e /G r a du a te En r o l lm en t Ma st er Co lu mn N am e Da ta T yp e Re ma rk s CID In te g e r F ore ign Ke y SI D Ti n yi nt F ore ign Ke y D at e o f E nr o llm en t D at e Ti m e NO T NUL L Fe e W ai ve r F la g Bi t NO T NUL L Gr a d e C h a r( 1) O /A /B /C www.GoOnlineTrainings.com Pg: 2 Mobile No: +91-9000075637/9642143942 USING THE ABOVE TABLE LAYOUTS FOL LOWING R EQU IR EMENTS: AS SCHEMA, WRITE T -SQL STATEMEN TS FO R THE 1. Li st t h e cou rs e wis e t o t a l n o. o f S tud en ts e nr o lle d. Pro vid e th e in f o rm a t ion on ly fo r s t u de n ts o f for e ign orig i n an d on ly i f th e t ot al ex ce e ds 1 0. 2. Li st t h e n a m es o f th e S tu de n ts wh o h a ve n ot e n ro lle d f or a g i ven co u rs e. 3. Li st t h e n a m e o f th e ad van ce d cou rs e wh e re t he en ro ll m en t b y f or e i gn s tu de nts is th e h i gh es t. 4. Li st th e n am e s of th e s tud en ts wh o h a ve en ro lle d f or a t le as t on e b a s i c co urs e in th e cu r ren t m on th . 5. Li st t h e n a m es o f th e U n de rg r ad u a te , lo c a l s tu d en ts w h o h a ve go t a “C ” g r a de in an y b as i c c ou rs e . 6. Li st t h e n a m es o f th e c ou rs e s f o r wh i ch n o s tu d en t h as en r o lled in th e m on th of Ma y 2006 . 7. Li st n a m e , Nu m b e r of E n ro llm en t s an d P opu la ri t y fo r a ll C ou rs e s. P opu la rit y h as to b e d is p la yed as “H ig h ” i f nu m b e r of en ro l lm en ts i s h i gh e r t h a n 5 0, “M e d iu m” i f gre a t e r th an or e qu a l t o 20 an d less t h an 50 , an d “ L o w” i f th e n o . Is l ess t h an 20 . 8. Li st th e m os t re c en t en rol lm en t de ta i ls wi th i n fo rm a t ion on Stu d en t Na m e, C ou rs e na m e an d a g e o f en ro llm en t in d a ys. 9. Li st t h e n a m es of t h e L oc a l st u d en ts wh o h a ve en r o lled f o r e x a ct ly 3 b a s i c cou rs es . 10. Li st t h e n a m es o f th e C ou rs es en r o lled b y a ll ( e ve ry) s tu de nts . 11. For th os e e n ro llm en t s fo r wh i ch f e e h a ve b e en w ai ved , p ro vid e t h e n a m es of stu de nts wh o h a ve g ot ‘ O’ gra de . 12. Li st t h e na m es of th e f or e ign , u n d e rg ra du a t e stu d en ts wh o h a ve go t gr ad e ‘C ’ in an y b as i c c ou rs e . 13. Li st t h e cou rs e n a m e, t ota l n o . of e n ro llm en ts in th e cu r ren t m on t h. S T OR E D P R OCE D U R E USING THE ABOVE TABLE LAYOUTS AS SCHEMA, WRITE A STORED PROCEDURE FOR FOLLOWING SPECIFICATIONS: THE In p ut P a ra m et e r s: D at e F ro m (M an d a t ory ) , D at e To ( op ti on a l, i f n ot sp e c i fi e d, t ak e th e cu rr en t d at e) , & St ud en t ID ( M an d at o ry ) www.GoOnlineTrainings.com Pg: 3 Mobile No: +91-9000075637/9642143942 Re qu i r em en t s: Cou rs e- wi s e , en ro ll m e n t- wi s e in as ce nd in g o rde r of co u rs e n am e to b e p rin t e d. If n o en ro llm en t e xi s ts fo r a gi ve n cou rs e fo r th e pe ri od s p e cif i e d, pr in t co u rs e n a m e an d th e rem a rk s ‘ No en ro llm e n t fo r th is p er i od ’ -- - - - - - - - - -- - - - - - - - - -- - - - - - - - - -- - - - - - - - - -- - - - - - - - - -- - - - - - - - - -- - - - - - - - - -- - - - - - - - - -- - - - - - - - En ro llm e nt D et a i ls o f < Stu d en t N a m e > f r om < F ro m D a te > To <To D a te > O ri gin : SL . No Typ e: C ou rs e Na m e D a t e o f E nr o llm en t F e e W ai ve r ? G rad e ( Y es /N o) … … …… …… …… … … …… …… …… To t a l N o. o f C o u rs e s E n r ol led : *** E n d of Do cu m e n t * ** www.GoOnlineTrainings.com Pg: 4