You are on page 1of 12

ORACLE

APPLICATIONS 11i & R12


SQL ORACLE APPS REPORTS BI PUBLISHER REPORTS INTERFACES PLSQL XML PUBLISHER REPORTS DISCOVER REPORTS CONVERSIONS FORM PERSONALIZATION

WORK FLOW

BOOK-IV XML REPORTS,DISVERER REPORTS AND WORK FLOW


S.NO 1 2 3 4 5 6 7 8 NAME OF THE CHAPTER

INTERVIEW FAQS INDEX

PAGE NO.

9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

SQL 1. What is the diff between Exist and In Operator? A). In operator test for the particular value in the subquery and exist operator is a boolean

operator.so it works more efficient and faster than In operator.


2. What is the Diff between Delete and Truncate and Drop?

A).TRU !AT" is a ##$ command whereas #"$"T" is a #%$ command. &ence #"$"T" operation can be rolled back' but TRU !AT" operation cannot be rolled back. (&"R" clause can be used with #"$"T" and not with TRU !AT".
. !an we drop the table if table is ha"in# the data? A). $es% we can drop the table &. I ha"e executed the Delete co''and after that I ha"e created table whether deletions will be co''it or not? if table is successfull$ created? (es% co''itted% bc) !reate is the DD* co''and% so DD* co''ands are auto co''itted and what e"er we perfor' D+* operations before DD* co''ands those are auto'aticall$ co''itted. , I ha"e executed the Delete co''and after the I ha"e created table whether deletions will be co''it or not? if table is not created? A. -o it is not co''itted% bc) !reate is the DD* co''and% so DD* co''ands are auto co''itted and an$ DD* co''and is perfor'ed successfull$ then before that an$ D+* operation is there that auto'aticall$ co''itted other wise not co''itted. .. What is /owID? When it will be created? What is the for'at? What is the diff 3

between /owID and /ownu'? A. /owID is hexadeci'al nu'ber and rownu' is the nor'al nu'ber. /owId will be created while insertin# a record into a table and rownu' will be created while retrie"in# record usin# select st't or alon# with the result set 0uer$.

1. !an we use /owID in the where clause? if (es can we use li2e follows Where /owID 3 124 A). (es we can use in where clause. 5ut /owid 312 is in"alid. 5ecause rowid is alwa$s hexadeci'al for'at not in nor'al nu'ber for'at. 6. What is Decode operator and what is the s$ntax when u ha"e used in Oracle Apps?
The O !"#e $e"%$e &'!'e(e)' *!& $e+e#%,e$ '% !##%* -& '% ' !)&.% ( $!'! +!#-e& !' e' /e+!# '/(e. F% e0!(,#e1 &!2 *e h!+e ! "%#-() )!(e$ REGION1 */'h +!#-e& %. N1 S1 3 !)$ E. 3he) *e -) S4L 5-e /e&1 *e *!)' '% ' !)&.% ( 'he&e +!#-e& /)'% N% 'h1 S%-'h1 E!&' !)$ 3e&'. He e /& h%* *e $% 'h/& */'h 'he $e"%$e .-)"'/%)6 select decode( region, N,North, S,South, E,East, W,West, UNKNOWN ) from customer; Note: ! using this function "e can #erform multi#le conditions on single colume$

17. What is -8* operator and what is the s$ntax when u ha"e used in Oracle Apps?

In )racle*+$,-$' the NVL function lets you substitute a value when a null value is encountered. The syntax for the NVL function is. /$0 strin12' replace3with ) string1 is the strin1 to test for a null value. replace_with is the value returned if string1 is null. "xample 42. select /$0supplier3city' 5n*a5) from suppliers6 The ,-$ statement above would return 5n*a5 if the supplier3city field contained a null value. )therwise' it would return the supplier3city value. /$7. it will identify the null values and filled values it returns exp8 if it is null other wise it returns exp7. &ere we have to pass 8 parameters and In /$ we have to pass 7 parameters only. If expr1 is not null' then NVL2 returns expr2. If expr1 is null' then NVL2 returns expr3.

SE%E&' last(name, salar!, N)%*(commission(#ct, salar! + (salar! , commission(#ct), salar!) income -.O/ em#lo!ees W0E.E last(name li1e 2 32 O.4E. %6S'(N6/E aer aida anda ates ell ernstein 5 last(name; S6%6.5 9:::: *;:: <*:: >?:: @::: ;A:: 7N&O/E 9:::: *;:: <==* =@<= @::: 99;>:
5

8888888888888888888888888 8888888888 8888888888

issot loom ull

??:: 9:::: @9::

??:: 9*9:: @9::

11. What is 9oin and t$pes of 9oins and what is Outer 9oin? A) 9oin is a 2ind of tas2 in :;*% 5$ usin# this we can retrie"e data fro' 'ore than one tables based on <oin condition. 5asicall$ we ha"e , t$pes of 9oins 1). Equi (or Inner or simple) Join: =sed to retrie"e the date fro' 'ore than one data based on e0ualit$ condition. In this tables 'ust be ha"in# co''on colu'n between the' to appl$ this <oin. If - tables are <oined >-?1@ conditions 'ust be pro"ided. ExA select e'pno%ena'e%sal% <ob% e'p.deptno% dna'e%loc fro' e'p%dept where e'p.deptno3dept.deptno4 2), Non Equi Join: It is used to retrie"ed the data fro' 'ore than one tables without an$ e0ualit$ condition and usin# an$ other conditions. ExA select e'pno%ena'e%<ob%sal%#rade fro' e'p%sal#rade where sal between losal and hisal4 3)Self Join :9oinin# the table to itself. In this table 'ust ha"e the si'ilar colu'n repeated in itself to appl$ this <oin. ExA list the e'plo$ee and their na'es of their respecti"e 'ana#ers fro' e'plo$ees. :elect wor2er.ena'e BsubordinateC +ana#er.ena'e BsuperiorC Dro' e'p wor2er%e'p 'ana#er Where wor2er.'#r3'ana#er.e'pno4 4). Cross(Na ural) Join : =sed to retrie"e the data fro' 'ore than one tables without an$ condition. Eere need to ha"e co''on colu'n between two tables. In this result is 7 <oinin# conditions and co'binations both 6

tables data ExA select e'pno%ena'e%sal e'p.deptno%dana'e%loc fro' e'p%dept4 -oteATable1 will ha"e n rows% Tables2 ha"e ' rows. The result is +F- no.of records will co'e. !). "u er Join Outer <oin is a 2ind of <oin % b$ usin# we can retrie"e 'atched records fro' both tables and un'atched records fro' specific table. Outer 9oin can be cate#ori)ed t$pes a). *eft Outer 9oinA =sin# this <oin % we can retrie"e the 'atched records fro' both tables and un'atched records of *eft side table. Ex. *ist all the e'plo$ee details with 'atchin# dept details. :elect e'pno%ena'e%sal%<ob%e'p.deptno fro' e'p%dept where e'p.deptno3dept.deptnoGH)4 -oteA here H indicate un'atched records fro' dept table. b). /i#ht Outer 9oinA usin# this <oin we can retrie"e the 'atched records fro' both tables and un'atched records of ri#ht side table. ExA select e'pno%ena'e%sal%<ob% dept.deptno fro' e'p%dept where e'p.deptnoGH)3dept.deptno c). Dull outer 9oinA usin# this <oin we can retrie"e 'atched and un'atched of both tables. ExA select Ffro' e'p e full outer <oin dept d usin#Gdeptno)4 12. What is :et operator and what are the t$pes what is the diff between :et operators and 9oins? 1 . What is 8iew? What is the ad"anta#e? What are the t$pes of "iews we ha"e? 1&. When we can not update the "iew? 1,. What is +ateriali)ed "iew and what is :nap shot? 1.. What is the diff between +ateriali)ed "iew and :nap shot? 7

11. What are the Inline "iews? 1I. What is s$non$' and what are the t$pes and what is the ad"anta#e? 16. What is Index? Ad"ante#e of Index? T$pes of Indexes? 27. What are the 5it 'apped Index? Ad"anta#e? 21. What is sub?0uer$ and what is !o?/elated :ub ;uer$ and diff between those two? 22. What is the s$ntax for ToJDateG) and toJcharG)% toJnu'berG) functions? A)A#o$%a e(&,forma ): It can be used to con"ert the #i"en character into date for'at. Dor'at indicates in which character is pro"ided. :$ntaxA toJdateGstrin#% date for'ate) ExA select toJdateG>177@%@ddd@) fro' dual4 oKpA 17?apr?17. #o$&'ar(%,forma ): it can be used to con"ert #i"en da 2 . What is diff between /eplace and Translate? A)A (epla&e 1).It replace a character with another character in #i"en strin#. ExA select replaceGs%c1%c2) fro' dual4 #ransla e 1).It also replace a character with another character in #i"en strin#. In this both strin#s 'ust ha"e e0ual no.of characters. ExAselect translateGs%c1%c2) fro' dual4 2. In this "alue b$ "alue replace'ent will be done. 2). In this character b$ character replace'ent will be done. 2&. What are the Lseudo colu'ns we ha"e? 2,. Eow to execute DO: !o''ands fro' :;* Lro'pt? 2.. Eow can we find out no of Indexes we ha"e created a#ainst a Table? 8

21. Eow to #et second 'ax salar$ fro' the table? 2I. Eow to delete duplicate rows fro' the table? 26. What is where clause? 7. What is ha"in# clause and what is the diff between these two clauses? 1. Eow to handle the table le"el loc2s and colu'n le"el loc2s? 2. What are the constraints we ha"e and how to declare? . What is the diff between pri'ar$ 2e$ and =ni0ue? &. !an we co'pare two -ull "alues? !an we insert 'ore than one null "alue in the uni0ue colu'n? ,. Eow to handle null "alues? .. What are !5O and /5O? What is the diff between these two? 1. What are the perfor'in# tunin# le"els? I. What is Explain plan and what is t2proff? 6. Eow can u tune the 0uer$? ()L*SQL) 1. What is Exception? T$pes of Exceptions? Exception Lropa#ations? 2. What is /AI:EJALL*I!ATIO-JE//O/?and what is L/AM+A I-ITJEN!ELTIO-? . What are the Lredefined exceptions we ha"e? &. When we is :E*E!T state'ent in the Execution bloc2 what are the Lredefined exceptions we ha"e to use in the Exception 5loc2? ,. What is the diff between -OJDATAJDO=-D and O-OT DO=-D .. What is !=/:O/? What are the !ursor t$pes? what are cursor declaration steps? 1. What is the diff between I'plicit and Explicit and /ef !ursor? I. In which pro#ra' u has used the !ursor? One exa'ple for i'plicit cursor? 6. What are the !ursor attributes we ha"e? 17. !an we issue the co''it inside of the !ursor for *oop? 11. What is Dor =pdate OD !lause in the !ursors? 12. What is Lrocedure and what is Dunction? 1 . What is the /-D and W-D? 1&. What is the diff between Lrocedure and Dunction? 9

1,. When we will create Lrocedure and when we will create function? 1.. What is the diff between Lac2a#e procedure and :tandalone procedure? 11. If we drop the table which we ha"e used in the procedure do we need to reco'pile the procedure then how? 1I. Eow to #et the Lrocedure :ource code fro' database? 16. What is the Ad"anta#e of Lac2a#e? 27. What are the other ob<ects we can #roup inside of Lac2a#e? 21. Eow to /eco'pile the Lac2a#e? 22. When we will #o for creation of Lac2a#e? !an we create Lac2a#e bod$ without creation of Lac2a#e :pecification? 2 . !an we declare Lrocedure directl$ in the pac2a#e bod$ without declarin# in the pac2a#e specification? 2&. What is Tri##er 2,. !an we co''it inside of tri##er? Eow to delete the Tri##er? Eow 'an$ tri##ers we can use 'axi'u'? 2.. What are The D+* Tri##ers? What is diff between /ow and :tate'ent le"el tri##er? 21. Eow to Debu# L*K:;* !ode? 2I. What are the Tri##er Lredicates we ha"e? 26. What is diff between Tri##er and Lrocedure? 7. What is Lac2a#e 8ariable what is ad"anta#e? 1. What are the !ollections? 2. What is L*K:;l Table what is the ad"anta#e of that when we will use L*K:;* Table? . What is Mlobal te'porar$ table what diff between L*K:;* table and Te'porar$ table? &. What is O/OWT(LE? ,. What is Instead of Tri##er? Eow can u use that? .. What is 'utatin# tri##er how can $ou handle this? 1. What are L*K:;* table attributes? ((epor s) 10

1. What if Dra'e% /epeatin# fra'e and Anchor Ob<ects? 2. What are :(:TE+ Lara'eters? . What is 5ind Lara'eter and *exical Lara'eter and what is the diff? &. When we will use *exical Lara'eters? ,. Where we will Eandle the *exical para'eters? .. Tell 'e where u ha"e used *exical para'eters in u r exp? 1. What are the report tri##ers? I. What is the se0 of tri##ers firin#? 6. What is the diff between After Lara'eter Dor' and 5efore /eport Tri##er? 17. What if Dor'at and "alidation and action tri##ers? 11. What is Drill down and +atrix report? 12. Eow to call another report fro' report? 1 . What if confine 'ode and Dlex +ode? Eow to Define Anchor? 1&. What are :/W Lac2a#es we ha"e? 1,. What is =ser Exit? 1.. What is Dor'ula% :u''ar$% and Llaceholder colu'n? and diff? 11. What is the diff between Data lin2 and Mroup b$? 1I. What is the purpose of 5etween La#es tri##er? 16. If out put is 17 pa#es how 'an$ ti'es between pa#es tri##er will be fired if #o fro' last pa#e to first pa#e whether the tri##er will be created? (+orms) 1) When we open the for' what are the tri##ers will be fired? 2) What are tri##er le"el? What is the se0uence of tri##ers se0uence firin#? Eow to o"erride that se0uence? ) What are the t$pes of can"ases we ha"e? &) What is default !an"as and diff between :tac2ed and !ontent? When we will use stac2ed can"as? ,) Eow to de"elop Tabular for's in D22? .) What is Lre?0uer$ and Lost?;uer$ tri##er and what is the diff? 1) While de"elopin# whether we will tables or "iews? If "iew how to handle the -on updatable 11

I) What are propert$ clauses and "isual attributes? 6) What is diff between L! and 8A? Eow to call 8A d$na'icall$? 17) !an we write the tri##ers on Lropert$ clause? 11) What is the diff between !A**JDO/+% OLE-JDO/+% -EWJDO/+? 12) What are the wa$s we can call the report fro' the for'? 1 ) What is the diff between L/E?DO/+ and WEE-?-EW?DO/+?I-:TA-!E? 1&) !an we create table throu#h for' if so how? 1,) What is the for' Lra'eters? Eow to pass para'eters? 1.) What is the diff between standard procedure and for' procedure? 11) What are the ob<ect #roups? 1I) What is the diff between *ibrar$ and Lac2a#e? 16) Eow to chan#e for' la$out d$na'icall$? 27) What are the wa$s we can #enerate .f'x? 21) If cursor transfer fro' one text ite' to another text ite' then what is the tri##er se0uence fire? 22) What are the areas we can use ob<ect #roups? 2 )When we create +aster detail for' what are the tri##ers will #ets created and at what le"el and what are the na'es and what is the functionalities? 2&) What are the t$pes of relationships and what is the diff?

12

You might also like