You are on page 1of 223
“Lnpe = er tant “To opie ICS for Pnterwiewo Preteen K Statements jn SQL ( wv. imp) —> DDL > DML —LInsent — Update => PAL Crotal topics) A& Joins : RR Trine, Toto #F SAL Ton - Sub-Q Noymaly zoction Stogle Rows Funckons (vv v2) Rornum Co- related Subauey ASO 2 View . & Indon K Procedure Se as a a *k * * Peado Columns , — 4c * ~ — fl hy Co--velaled Sule- Que we? > Co-xtlated Sub Query ts mene efficient Aha, aypes Sub - Query ard Jens. Se > We Can Find nth max and nth min Solara. » } 2 +¢ a < L } | } t i i ay wr S@ly [scp 26 | a 7 sypes Of Applications — quase & IPRA oS jn howd ditt Bw 8 ere D) Stand alone Application -—> prt, Exc, we 2 Web Ay yatta; kee - - J Te it Pico gry FR FORA Lain cares to Sota » Gear hess appli aa S Dntenens required bs @ Movdite agpltcottn. VS “Involvement of ahivd part. AWhat 6 “Database 9 > Pata Gn be vecovesd Be ony He ond ont wher. tm ao HT. Gontack with gglatabase le need SAL. fons —) Amigtnieg which og. its existance A Attributes are nothing but — properties LOMAS qeorgh /6uTQve / oS wee” SQL (Strnertanad Chery Konquag.) | Data + Dota ts a yaw fact which describes attributes of an entity. Derobace gt is a plac whew dota will be Stored fn Systematic and Organized Manner. # Basie Cperections — parformed ox database ane ) Create 2) Read 3) Update a) Delete * Generally Known as “crop ” Operections - Deortalsase 7 aSystemaltic * Syaarited als? * Reka Base Menagemen st Te The two tenper lant factors ane ) Sacurity 8) Atrhedzetion > Query Language is used to commimuni cate with dort DEMS. Gp Communicate with “hic Sefteone “SC nad fo Lanquoge coltad Query Lonquost: > Different ky pes of DRMS Software SE a =—_= — | )%& Relational dems Croems) 5 most used & popale, y* Hiearchical DBMS 5 « Networe PeMs 4K Object crianted OBMS C4 Graph DBMS bat Guaphe Batts ER modal xX Document DBMS DBMS RDBMS F It Stands fr Ratational Database =—— — Monooprrent System. 4» TE is a type of oBMs Softu. worl| be Stored in the. Fore of velobons or tables. ano vohore dates To Communicotta. with this Softuscars we need A Longuog. colud Structuoud Query Language Csac) | A EF. D rules EF ceph SN, PRBMS+ RM => RdBmMsS > Create | Insort > Road | Rotriee structoy > Update [Modify ~ leat > Delete | Drop ceup Gaal? Dedalose Ratott onal Moe deol - — *K Gt is a Concept Which was doriqnad by “EF Codd” who iS a data Sctentist. | xt Tn this we Can Store “Khe daca in the fom of | | Yelations af tables, Pitas # We can also hve Meta data in form of tables . * Meta cata: Data about the dota DBMS \ Retotionat Model ——— > Tables 4 Qelereral DEMS] => 7H) x Be aa PRM that follows Relational mede\ Relational PEM. will becomes & op ast Balotionsl model dato stored in Nobles ea Sone oo tn RPMS. § RDBMS r= cel Shot ee pref bl > Ft cant Stove metr data| > we con Ste MM ekod clato. 19 cone evens, > Thos Sulotionship bho 5 Thos iS Flationship blo alata. * doto > PO nied porticulay lonquass| 9 He rand Se ty Communicate “f0 Communicate with RDBMS, D> Bk does ret fold “elatena| 2 TH Allows. > VE does ret alles EFcald ul] Te follows > Me Security g Authorization} Security s pucthyrization Sh, D> wmited datvaluve of data, | 5 Oalimite? vole oF aise Zy pref blo DB and pems? D vidf ble pEms and RDBMS 7 Wihot 1S yotoctional model? Who is EF Cedld? O Database St is a collection of data , A ca, be words yoo horite on ao piece of paper or a digital Hila. henees Database scegramt Sistem £ Coed) Carns 35 a Piece of Softens —thect manages dataloases , arse A TL Gn Create, edit, detete databases thoty tablu and ‘thaiy data , (2) Dems } RDBMS # Tn this dota is Stord [Hk Dota steed in a tabula a a fl. Loren Relacionthip blu two Filey | Rolactenship bo ten tally Bw maintained Prazammad | oF Rly con be specified ath ~colly. tine of tarda Creation, 4© Doms does rot Support Cliedl} de 2: Serves architecetuna, Xo Supports Client SoM ordi tectuaa, A Te does not Support disturi,|* Te Supports distribura uted architecture - orvchitectune, den this Ahir are multiple love of Secusity, ot logqirg level, at Cornm sand Uuel, ot Objact level. & 52 ee | # Dems thew is no cocutly BF oof dato. * Nownalization is net availa| ae nlor wy is a. in oa ‘ ‘ : malizotionn iS awailatlo 1 Ralactonal model ve presents @ Relational Model how dota iS Stored retadional datateases | RRelational dataloase Stwrer Age in tht fer Fo of Anbles. ee Ted” Codd @ EF cedd = Edgan Fron pecs oe and canter of ne Yelational darolease modal. pet oe Tololes + Table is a leqical organization of dota which cmsists of Rows and columns. Columnsy a Gl. 4s also nefarred as Attribute ov eratds. * A Column is used ty Vepresent one property of all Aha ontitien, Ss Rows ~ Rows is also Rafennod as Records © Tumi, & A wo is used tP present all tho Poperties af Stal entity. cll lt is the smattyt Unit in table in which =— Wes Store data. The inten &ction Of Yous and Columng qprerate calls, Tale Shrectoe we Attributes / columns|Fialdg Rules of £.F. Copp |) nthe date stoved Tn the Gall must be o strate } Value data ‘ 2 In RDBMS we Shwe euenything fn the form of tales Including meta cota, Ctra details abeut tle dota is mato data), 3) According +p E-F. Codd we an Store data tn mult ple tobles , Tt Veaded we Can establish Connection pl two tabla using Koy Pcttributes 4) le con Validate the dota entered ‘nto the table In two Steps a) By Arssiqing hostocty pes 4) BY Assigning Cmstyaints, Note} Herne datatypes anc manaloc volo acs NAR CHAR (0) - Sizo> Tt te used to doterm’ wo Ahe No.of che ~Yoreters “that we Can de Ahern we mention Varchay Aaroty pe we baie. to meatim Size fy TL, Saha Nox. cizo that We Can Steve ig 2ey9 * Te i type of * Vavialole loing th memo’ allocating” 4 Then ic ho wostag of Memory lu warchay EXO Vowehan Ce) CUT TTT] YX49 bles one sted in memory location. dated version 7 Nlawchen 9 Dt is just oer of Ane vewrdKt #K LH Con Shere 4RA® QOD +0 Youn. Syotear marcha Csiza © Namb err This dactarryre is used to Stove numerical values, aT a) ) [a Pacts Can accept two orquments i Precision Scale Numbon ( Precision, (scat) tom. Pt ie used to determine the digits We one ping to Sta to numenical Place, Scole> re its used to dortermine the no. Of se daqits within yor OND gig to Shere 19 decimal place | Ane prectsion. ee The max. Precision Wwe can Shre ic 3 oe ivok cca We Cy Stre i 127, FS : Ss — @ vv Rr FAIA © rumber- (5) +*99999 OIG RIC) = 99994 Number (4,2) +7449 Number (5,2) 199,94 Numoen (12) #419492 VF AtamBer (Ce) Le eg 3789999 on P=s © niamber (441) oo + 0.9994 when PLS @ Number (5) s-3 = 40,00089 12g Numbey G7) oe Be oss Le () Narmloey Cue) Fae aes =~ +0,00009999 B-any (9 Nomber Gert) eng Assignment Mn : ce @,8) ts aes ---- + 0.00900099 B26 @ Numb Ga ------- + 99999..99 © Number cy baqae.99 & Numbey (5,5) «----- pea (D Neko (4,8). - = ¥ commana 6-4 Y @ Number (3.8) s--—------ #0, cc000999 | F-2=¢ @ Numba (%,3) ____- mo £9.97 Syntax + DATE eee ie -two OYacle Spectfied Date Ronee ang a) ‘pp - ion -YYX" b) tpp= Man -yovy’ ak Date shoud aluoays cece) atin single quotes. Exonple? © “wo ~mon-yy! , ‘13 —JoL - 20 @ ~ pp mon yyy! 1B - ALG - a7 © Lege Longe Object are a) eee naa object Gey *® This is ae 4p ste the Choractens opto u@e of Size. Syntax — -CLoB 6) Binary hawap object (Bt08) : H This ig used to Ste binary numbers of e , Q of Siz. we mage, Videos, (la etc... apd 44! Syren BLOB ae | CHan ana eee ) BR con accept chowa ) TH is also accep tc che : . -ctos | —S. > BH an steve upto 2) Te ean also Stove upto Qed. Devo. ») Woastace of Memory is hgh. Y) Syntox is Chow (size), ¥) oe Nayehen (ea) @ Diff . VO Ichaw and Newrc hon 09 TA Newco Can Stove only- ePtD Rann. fe 3) +te- No reastana of Men Nlarchom2 Can Styve the ced “pio 4oro. - is a update. Nension of Nexchesr | * Syntox ic Same -fer both 2 * Marches 9 A Thee 0r0 Soma dlis odvantages of darted ype co we ote cing Comstraints , * KH Suppose if we give numba datatype to GO \t iy mumbens ond ik may be maptated. g6 orden to. pot 40 put o- | ive eatagy se stron. feu Ve2arormme| Ys, wo Cans Pe are Constraints : - Constraints coe the Cond rong mn to Aah ow assiqnad 40 parsicator Column Nolidete he cloto. Types of ComStyaints » Ond\oyo D) Not Null 2 Check © Uniques Unique is a Condtraint which 1S assia Ne —ned +o @ parrticalon Column which Cannot eiccept seperated or Duplicate Voluoy . + @ Net Naw: Not null is & Censtraint vnich 1S assigned to particaton column which Cannot be null ot which as -mondacrsry | @ SSE S Check is a constraint hich 16 ascig yp iF to a particule Column fry extya validation. Check censtvaint Ie assigned with a Covclttin, othe conditim © true the value apts ACF tag | elso Yejected . Ea \ chock Chavet Cevntd= 9) Re Check Csate>o) ga ® Primany oer ea Primony Koy is a Constraint Khich is used td assign to a Colurnny *D “aentity a record oniquely Prem the ble. Chovactenistics of 3 ag Ale Can have only ome ee Kuy in a-tabk, Pt Cannot accept nul. © VW Cannot Accept repeated oy Duplicate valusy @ Gt 1S a Combination of Enique And not nut, zoo h ~ Pricnes is not manda lout Yecemended | © FET atone : +o have one in stools . © Foci Key> Tt isacmstmint which 1 used +o establich the Connection between two Characteristics of Foreqn hay ) we Can Mave ‘nH’ nto. of foreign rey! i table - 2) Te Can accept 2 vopeated ot duplicate values 3) Fk Can accept nall. 4) Jt Ys not A Combination of unique ord rot null. 9) se present in Child table but actualy loelongs to Ravers table. 9 St \s alep vefewd as ~ Referntial Tnitiqvity Com straint” note “Se Only Primary Kay oo vohen it gloes oouel, vt becomes foreign Koy. ER? e= Pinar Fn | vanistse | nine | ét| ee EID Eee pai cae Onl ae (.4serrs 215 6189 ' Pavan VARON Pane : y 5 ote bls Prnnont te ae foreg “4 Peremany key for oO BE is used to oasiy~n ty a column to dunn fy a vocwd Laniqqualty Lym the table. @ Only ome we cn base Primary fy any table © Te Cannot accept yeper ~ ted ov dup lreate Vals _ @ © © THE cannot accept null. Te ts a pont Te ig a Combination UNigus and ppt neatl, | @ Th cade bette anerhe ‘oble > © Fo establish Connects, blue *rwr tale. © Ore Move than me poe Con have . © St allows repeated oF duplicate value ® @ Se can echep rel), At Te child th, Te is not a Cowbin ~atm of UNA any not nud. ® Tk can tyewa) 40 - Sls Primony rey EG Unique Cmetaint 2! SQL Srtatement < | Languages | ) Data Defrnition Longuogs (ppt) v > create > Rename — ALR 7A Truncate oe (Pag) 2) Dera Manipulation Language CoML) > Tnsent > vpdote > Delote 3 Transaction Corto! Lanquese (Tet) . Commit > Save point > Reb bacte 4) Data, Control Lanquage (DcL) > Grant Ss Ravoks 5) Data Query hanguegs (DAL) —> Select —> Prjecton aD Selection => Berms (van ¥ Dato Query Language ws. &w Ts sinfekent 1s Used to Ye tie Me a Fren doctalase . HK Were cre 4 Stotements Select 2) Projection 2) Selection % Toins © Selects this stotemant is used to ~retvione te data From datakase and display it. © Projection This statement ie used to Vebiove the data -fum database by Sdetng only column * AN the wolus in the Column will b2 eelected by defaut. / © Projecia Selectan» This Stotement is used ‘to sretvieve ha dato. Lymn dotabase ley Sele Ching Columns as well ac Rocords. © Soins + This Statement js used ty retriewe the) data ron multiple tables Simultonenusy Noles. @ This ctoterent is used to wirieve the data From database — by selecting only Column x All tho Valus in tho Column Will be select by defoutt Syntax Select */ Lpistinct, Cally mo _ Nano. | Expression (astas] J Pe From ‘Table Name Orden Of erecertion. ) From ») select QB son Note + Q Fron Clouse & @ For From Clouse we Con argument. is +0 ar 4D Aho datakase @ The joo of Keom Clowse ond Storch for “the tobe and put “the Table unde, toyts. -the enacution . poss “pole name aS on Crecurion. ® Select clomse onecutes of kon Ayem clouse. the, execution Of 6 for select Clause we - Can Pats a ste Ete Ach “Tosre | avid EXPIeSSiom AL on OP ova ne ©) he tob OF Select cherse te XO qe *> the tay Which is unde execection and elect the dota, and dicplay. & Select Clause’ tc responsible fr tho Yesult “table. ® Ulyte a Query +0 displey all the Noms of he l Student From Student -table. Q—> seleck Shame £2 Prom Studont + dina, DB alp of Student BRANCH] PER Tel a3 Ece FR Rc€ Wraatp Nave and parrcertages of — me ite eotect gname , ree 2¢ From student } Pa WAATP Name. ard branch of all the sh, Pas Select Snlame, branch , From anne} @ WAQTp Nome cond Pr and branch oe Student. pos’ SUlect Some , fun, branch va Farism emp | © WRATD Name, SID, Byanch and percentog, of all the students. Aes Select Srame sip, branch , Pom — , Even amp) S) A stonick ) Tt is used to determing *4o ; all the columns” Semt— colon (3) Be is used tp determing "the end of the Statement”, SQL> Select * R From tab! TName DEPT EMP Boms Salgrode x TO SQL > Aesc emp} SEH HER Eee eee eee eee eee eee eee Eee eee eee eee # Tm ordex to Know all he Hoblos present Taboty pe. ClustenID Table Table Table Tatoo a describ an employee table Nome Nu? TH Re eee —— EMP NO Net null Numba) ENAME varchar2-(io) Naychar 2 (4) Tol Numben Cy) ie ms Tote Hiveda te nlwen'oen (1,2) on Num bon (41,2) Comm Number (2 Deptmo ) HK To duerite an pert tables SQL > adese dept } Fo Name null 2 Ty Pe Dept no Net nud = Number @) D \tavchan 2(14) Name vjarchon 2(13) Lec | To Clea the Screen use Command Cle Seveen (OY) ie eeciel In orden tp use Command Tncrease Size Of Poges ark Ling = eae ay meebo 2 Set Pog pagal @ O bWlrite a Query + display all the details frm the employer table = Select * From Emp * tecaite- Empno. Ename Town mae Higepate SAL cots 5 ke a) Smith Cle 40 'W1-Decw HD @ Waarp Names of alt the Employeuy pay Setect Enorve From EMP} Enlams— imitb 8 Ul Allen ward @ WIAATD Name and annual Salary given +p au he employees, po Y Select Eniama, Salary #1? From Emp S © waar Employes Ld and Deparment 07 ae Select Empnepept no Pum EMP! Salon ond salary with tae © waatre Enawa and Uoredare the employes, Soly Slack ENome, Sat, Salt sal*2o]tm From Emp) fe) wraerr ENamea and sal, Sl with deduchm of ah for all teem. Solr Golect Ename, sol, Sel - Salt O12 From Emp’ KMace the Query ie enplain the. pron. Eapression f~\ Stelemorsl ee tohich qe Ge NeSuUlt Teo Known ag expen ion, #® Expression Consists of 2 types d Operand D Operators (4-4, D * Openand Comsists of — -tusp types Column Nome, 2D Lrtewalk CDireet satu) # Litevale en of thyso types D Nemben — tte! ») Charactey (i teva) d Date Utere | 2 - Sot * to Perand a opemter Opera Column name G swe, /) ti Levee Career vel uss) Note Chevacter literal and date {iteral Showd be, , i. enclosed ty within Single Guotes, Alias ~ 5 7 —— Alas is an alternative name Given to A Column ot An erpredion in the crest table aw Alas now canis ded’ otth or “voted wn ~ As’ Reypooral, Kk Alias name Should be a Single wid tf A Sting enclosed within doula Quotes, “Tost == Se » WAATD SAL as sarory, Hivepate as Pate of Prrirg PT Select Sal as Salers , Hwedate as “Date of Joning From amp) @ wierD lem, Sal of the employe: alerg Sth heir Arnuol Salary. . © : ey Colt enane as name, Cal os Sal of the empl: gol ve mais 7 Annual sloy a From Emp), @ wWaorn Ename and Toh Foy -al the employee nh AneSy half Torn solo. ys _ Sdlect Ename , Tob, gqixie as * Watt term sake = = — Fey amp! 4 ee La' eral ® wWaew a ane details of the erplye,, af ith — cunnual bus of roy AW Select Frome, Empno,Fob MG, Wiedate Sal dirsoa, =_ as “annual bonus 7 anualaz) 7 - Frm emp: a ‘ou (D eer Name, Salary and Salary sith, Oot ae Sob esate =" Sheet Frama as name Cale as Salorry Skea = te Fron, imp! © WIABTD Nome and Salary coith Morty Hike of 9 Pins Setoct Ename os Wame » Salvo os td i From emp =) a) (7) WARTD lame late adic) Sola with deduct of toy. — cohen old Ansi- Select Enome ar None Sort of (2 = = deduction DW”. tnm emp Note Dent Prvide alias fy Column nome # | tee don't ast and should be provided fw the | £apretion. Cemnpe \@ WAGTD total Sallorng qven te cach emmpleyee Carl acemten) | Ps Sod Gorm | \ |= Select Salaeteram “-tota\ Salary 7 | eee eae (Waar details of all the employers alerg sith onnuol Salary Assy selact Emo, Ename, Tob, MGE,Hiredate , salen as ~ Ainquol ——) " Comn, pext ne @ Select EmpP.® Salto Bis ER From emp! (D wrap Name ard designation along with, 160 penal in Soleoy. ansr Select Ename, Tob, Sal — 1 Yereral ty” atl @,, somoe- fase Select emp. * , Sal ¥1r Frum @mP | pokolbar, Pas y Ox Select Emp* | Fron empl Al a Sols 20% “Annual Bonus” tot oo Dis oad 7 ‘To ‘Yemove wepeated values of duplica ted values ty vesult table we use dictinct Clause? > fer distinct clause we can pass Column Name OF an empretion as an aerqunnant, z > Distinct Clause ghould be used as ~the fst avqument th the Select Clouse me > WE Can pass muttipla colurrmt fey distinct chu > TE vemovea the Combination of chap lice Vly Lym all the Glumnsc, WAAIP TWefeunt fon Pam Sthdent table Student fable Mvs> a Select distnet Per From student ) Cs ofp of select olrot PER =. er 80 es {Ses gD \}7 so \s ¥O \ Ao et @ wate diffowat branch and PO : table. | fins: » Select distinct branch, Per” | =_ fom Student ) Bonch 2) a ee Be 1°, be 6s oe |, Dr dsn of emecection ) Fron 2) where 2) Select (0) WA ATD Ename Frm emp table PF ae C Woveing “IN Pept 20, Ansy st ao Seloct Ename Freon 2mP Who rio = 201 ont Emp olp of Fy 202. True a0 F Qe =20 > lo =20 & Bo S206 2o>20 T @ waar? Sal of Emp whose name iS Smith prs Select Sal = lps P SemitH' whore Ename= saith ~ fa) WARTO The annual Salary of Abe arrploy.2e chor Name ig mith ansr Select Sakkio “Annua | salary , Fusm emp Where Crome =~ SmiTH’, & LABTD name of the employees working os clr. FH Select ename From amp whore Tob = ‘crepe’. © WAQTD Solary of te employey who are toorking OS Salesman ws Select Sat frm emp whee gob = “savecmant': _ (©) netD pdetaile of dhe emp oho epanc then 2ovD ays sek eee coloct + Foam | emp . Whow cal > 2000, WASTD name and hivedate if they ae hired befire 1981. ‘ Select -enamse , hiveddate 4 From emp “i gregant 1d 4 whane hivedate < eget Za) +34 PEC ) wretp Details of the employees working “4 manote ‘s t # Bs Sebo go) Fron emP where Jol = S MANAGERS (® ROARED Name ane! Salary given to an cofloys employee earns a Commission of pets (Hed, fins Seloct enome, sat — Fron amp Whar comm = (HOD! @) wnat details of errptoyen having Cemmmisi on Move than Solar ‘ ANS > geloct # Exon en? 7 iho Cone Gee S r © WAETD empro Of employes hired — befuye the Ys 83. AST Seloct empno = Exim emp Whore —hivedate < or TAn- ary 20) > yw—-pec- a loy ee ay 28 ap Fam emp who Jd =~ ANALYST) 7 (@) waerp Details of écips caring 3 1 AWD Hho 2D vupary P27 Month. Ans a Select & Frm emp Where sav > Yooo | } van) (1 Arith mech c Operechuy ¢ (4,-4.1) CZ Operorhuys ( =, i?) @/ Ralational Operators G a ee @ Logica! operators Canv, 08 , NET) @ Comoatiartion Ob Cu) (9 Spoctel operators (am, Nevin, Between Net behoten Line ,NoT Lieo 1s. is not) @ Sub Quen operechsrs (Are PNY, Exics , Not eatsts) f Logo Operertrrs And Operator Binary Mutt phication aA Ana Dparotwe dyecturns sue tf both the. tonditime one true. a find puro should Olusents =n amditiongs, be used betwee 1 OR Opexoctor Binamy Padi hon *K OR operatuy returns tron if ony me of tha, emdition is Satisfied (tue), # OR ofevatsy Shoutd Aluoans Conditions a be ucd be-tween : Not oparatvy BX Mt i UscA nogation tp Rasurr 0 wAATPD E Name Hf the emp is vooreng in pept20 and earning Sol mere then (SoD Select enaome M3 vom emp Vohore apt" 20 AND sal = isav! ® wonetD Ename if an emp is wortig as cole —MOn oF earning more than 180. iy Select name Pum emp wWhow ‘Tob= Salesman’ of sol >\{Od) z ott @ WARTD tNawo emcept. voho is worting in Deptno20 sess Select ename i> Parem ere ohne SY ptno Foe! Ase ‘great __hegicel operates D vonerp details of the employers working gy clawe and nowning ley thon 1So0 Ars Select ¥ From emp ; Lohan toh = “clerk AND Sol Fisap | >) WAATD Name and hivedate of tho employer, eae ac | gs Manager in “Pek dept 20 Stloct enome, hivecate Fron emp Who Tob — “MANB@ER” AND dept 201 | > WABTD Detaile of the emp oleng with annual Salary if Hey working 10 Dept 20 ac caletmg and - theiy annual Seclonny Has 10 le Sreotey then (Yeon, a sin * ss a Ags Select aR Eme.*® sal % i “Annual Salany a Fr emp = hans Dept 30 AND Job ="Satesman! sand sole . WAGTD all the details of the emp vocy ale | ag dept Bo or as Analyst ? Seloct * Frum emp whore dept = 20 oR Job = ANALYST wWAGTD tame and deptno , Tob o-f empe Learn as clkerr tn dept 10 of 20. Select ename , dep tno ao Tob Frsm emp Won Tob = “clare! And Cdept2io ov daptro=4} WOAETD Nome OF the amployees ichos Salary is lew -than Woo ack that designation %s clerk? nse Select enome Exam emp . . , where sal < 00 and @Yob=~ CLERK / WoAGTp Name and Sal, Annual sal and dept no lsptnd is D0 camming more than Woo aret annual sale Benacds OSD. iY Select ename, cal, salobie From emp annual Salary”, dept ro Who dupt yo=20 and Salk> tt and Salary > be, DP WPATD empno and roimes of the employees 20 — Manage in apt a 1 ste Select empno, Crane Frown emp Whoo “ \ TOb = “MBNAGER and daptno = de! ! () WABTD ptails of employssy kcorkieg in Dept 5 oF B0. firs Select ( Ever, crop thor duptno = 26 or chptino = 201 ® WABTD Detarte of employes Working As anal to dept go a Stlect + Free erop rhea Toh = “AnacyeT” and doptno = 40: qR- a, TO Soleo d & ‘AATD Detaile of employee. looking a ptt with Salam Of TUpen Yeop.

You might also like