0% found this document useful (0 votes)
0 views13 pages

mtech plsql record

Ok ok

Uploaded by

venulucky951
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)
0 views13 pages

mtech plsql record

Ok ok

Uploaded by

venulucky951
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/ 13
a= fini ph Sa peo PE sad —esieg [acing Fok loop 101222162 0808 tates otainee pee ||| peck are [y NumBER = 102% BEGIN | poR LNA lo Loop ' op Wa) =o THEN -- LIS even riteter Ino terap vALVES Lua, 14s ever! )2 ELSE v aed la 4 Z Exln LF 5 gteatloor EALD Loop Corom iT FAD: outpat’ SQL. > sE/E CTX FROM terop oRDER B? fo145 AluM=Cok1 NuM-cahar _ cHAR cob | it __ 100 —— 4s odet | 2 | a 1S even : | 400 Vis even ; S00 Lis actet ; aes Lis even LH 00 | 5 oda g god 7 q Soo \ Las even toe | CIS dda limi ae! OI Lis even | iD a aalte o nd ee he. live pighesk pid ercployee fram the tale | hive BLPKE 7782 SO ge gogo aoa J pLLEA hee oD eee eC MILE ed ok ee Ufa) ao = ZI 7é SH 1aSo Tapams | 7976 too | JAMES WOO. Oso ri TH eo 800 = eB ae ce 250k. e.ts oe Coe rnp na SaiEROM erp ORDER BY Soi DESC’ Stast with highest poict ecplose my- tnoroe CHARMS LL 107 = Sed Ermpna NUMBER) roy Soi NomBeR (Taji Ve T LLGIA Mite? OplAL Cad puR TIN den Loop. Pb Cy UNTO MAL = 600196, (94 = werepo,5-SOle EXIT WHEN C1 %/o HOT FOUN Dp we DL LOG= Lop 2 WISERD INTO. Lerop VALUES Leer commits 2 it EAD hoop je Chos& C14 = EAD. Dut pul Tablet SQL> SELECT x FROM jerop ORDER. G7 Crit DESCY cob Conn | MESSAGE S00 78.39 KING | gooo | 7702 |: FORD \. 3000 77 BB SCoTt \ QQ 1S eas) _ Lei ie B50 | 769% BLAKE | * FROM n FR BY account 1d AccounT: Tp | BAL t 1a00 | & 2000 | . | 1500 A 6S00 le Soo Fac lise Block oo 6 pean Ze om ni on oe choy buf [2037 EXEC “sab BEGIN DECLARE SECTfoNj int__ acct? Bouble _Asbit ¢ aa eta : nec a VARCHAR uialaol’ VARCHAR prcttaol j EXEC SQL £A/D DECLARE SE eto ExEc seh IncLud— SeLcAs _— reooin ‘ a fete oe Lstrepy (puidon’ tigger) i pwict- bene Slrten [puid+o% Vniote Choke Ere_bedldeot ph. (sel. Debil Trensoction peroo_ a\nl lpiotf Cixyieg to connect = )7 ____ lEx£c_ SQL NHEN EVER Sol ERROR GoTo exrprints IEXEC _S@L CONAIECT $ Urol ID EMT JFLED By: Pwd) | parotf. Ctonnecled. Ae) ———— Worn ee 00> tee Le print ine nebil fe accounl number (1 to end) )* oe “nee to dis conn ick fre _ofocle™ \_ “anet_exit loop tf ottount_is -\*\ Se! Commis RELEASE! a8 [Bere foot a aos printfe bhak is the able coount? 7? | gets lbul); : : dabil_ = alos bul EXEC SQL FRECUTE ee DECLARE Ee fasutlictent—fondS EXCEPTION 3 loth rt NO herent Bay eee = 800) ee ee ALCOUS WHERE arcount id=! actk i la £6 the actounk doesnt _exichs the Mh =DN1N =f OL by I. exception will be audorraticatly— «0lSt 2 ptte—bars= olet = bot = i debits 2 VE? netw=bat> = roin=bor THEN |UppATE accounts SET bai nthe bal WHERE account id =: oecls VALUES [2 acch, bebit : debit, 57S PATE)! 1 Stolue 2 = Transaction Compleled’/ 2s 2 eee eee Sudhir cr Fund Soe TA Disa DTHE AS __ __ Stotus : Arcount OO one BHEN fosufficreot — funds THEA is [2 neto = oe = Ola — a WHEA) oTHERS THEN _ 6 Re i Status s= Bor: I SOL. ERRM [Sel Lobe. Vy. Enns EXEC? ——— $5 : erate « orvistatutstent=\o1/ “une dine tabe™ \ | Z*_the Sting. : tore talus | ?f (new — bal > =O) e rte Ts nocei So QS Ww Nea bar) t_Z* End _of loop™\ | exy prints ___ lexEc_ S@L WHEALEVER Sel. 6 RROP CW TINOLS palolEl\n\m>>o>> Ev0r luvin XC cation Ww) 5 prink£U LS, Spica: Splenm + S9/eere)) llExéc sal RolLBAck RELEASE exiktys 3 oo |dnteraclive Session Embectdeck PL /sek pebrl Transaction penr Toying to connect=.. Connecter eee account auwnber’) Ll to end) 1 Kihal ?o_ tht debe arnaunt 2 Toe | stalas: dncelficionl funds | Balance ts nator {100-00 ex pebst ewhich account nurcber (Le ent ).2. | chat fs the eebrf amount? Soo |_stalus! Transaction coreple ted | alance i's ndces $ 1800-00 x nebit chick account ncerober? (1 te end Q \ny Slalass avd oul pod : 4) . Necounsl-bo| BAL { | Joo Q ad | 3 1S OU | yy 6500 S | 600 | \Accoony- WD NePtont NiMOvblT DVATE-TAG Debit 200 DY-NOV-t% 2 be br 500 3 ) Debit 100 ee escelio On Cormmplet: eo a IBalance_?s near i$ 0400200 bee pepik which accocart number S (1 to ene) AN lwthat 2s the cebih amount? loo Chats? Account net femal ; we TR RX pebthcuhich accetent runbe a ( oend J-| S@L> SE LECT. X FROM accounts ORDERY. ey AcCcaunk = fa) 2 cae > > SE Le cL x FRON Jouynad ORPERY BY oe 2 fog: =e GQ — = H IGiven an sees i, cori be a PL/ sal proce oe & given, xtlofion Solvtlon* CREATE TABLE Ta la INTEGER, b cHAR LO) s __ | CREATE OR REPLACE. PROCEDURE ode? tupl¢ + ____—_. (Xow NUMBER) oS BEGIN INSERT INTO EAL b oct Luple 43 To VALVES Ox,” oo —— Page Nat 0 = 8) asile a POL momanr to_dtmonslacah Lx cepllons 1o_warie_| AGL |_APPRESS SILARS Ramesh | a3 | ANehebact 20000 a Such | 92 Konper AL 000 Ghaziabad QIL000., Noida at ooo Povis 23,000 |__péihi_ | ap apo __| USELEcr* Ront_coustonle RS Porc tage Leatd Cestorn eye. iat fo {ype Canamé Custamedl -nancé/o ty pet Cradk’y Crsfomert - acter rC ce | LREGIN oe SELECT mane, coleliess INTO _¢.1 name. te _adoly, FROM orcs sone w ik _= c-ich! Z a heme -ovrper. pur -tiae CName, Cc. namelj | D&MS= ovrper-puT_ LINE CAoldtest: Wc acer) || LEXce prion. WHEN no. data - forme THEA lone. ocitpuk-put- Vince Clo Suck Customer!) RHEN others THEN ‘abmc- output» Pub — tine _CEwor) } rr

You might also like