1. to see current user name sql> show user; 2.

change sql prompt name sql> set sqlprompt �manimara > � manimara > manimara > 3. switch to dos prompt sql> host 4. how do i eliminate the duplicate rows ? sql> delete from table_name where rowid not in (select max(rowid) from table group by duplicate_values_field_name); or sql> delete duplicate_values_field_name dv from table_name ta where rowid <(select min(rowid) from table_name tb where ta.dv=tb.dv); example. table emp empno ename 101 scott 102 jiyo 103 millor 104 jiyo 105 smith delete ename from emp a where rowid < ( select min(rowid) from emp b where a.ename = b.ename); the output like, empno ename 101 scott 102 millor 103 jiyo 104 smith 5. how do i display row number with records? to achive this use rownum pseudocolumn with query, like sql> sql> select rownum, ename from emp; output: 1 scott 2 millor 3 jiyo 4 smith 6. display the records between two range select rownum, empno, ename from emp where rowid in (select rowid from emp where rownum <=&upto minus select rowid from emp where rownum<&start); enter value for upto: 10 enter value for start: 7 rownum empno ename --------- --------- ---------1 7782 clark 2 7788 scott 3 7839 king 4 7844 turner

7. i know the nvl function only allows the same data type(ie. number or char or date nvl(comm, 0)), if commission is null then the text �not applicable� want to display, instead of blank space. how do i write the query? sql> select nvl(to_char(comm.),'na') from emp; output : nvl(to_char(comm),'na') ----------------------na 300 500 na 1400 na na 8. oracle cursor : implicit & explicit cursors oracle uses work areas called private sql areas to create sql statements. pl/sql construct to identify each and every work are used, is called as cursor. for sql queries returning a single row, pl/sql declares all implicit cursors. for queries that returning more than one row, the cursor needs to be explicitly declared. 9. explicit cursor attributes there are four cursor attributes used in oracle cursor_name%found, cursor_name%notfound, cursor_name%rowcount, cursor_name%isopen 10. implicit cursor attributes same as explicit cursor but prefixed by the word sql sql%found, sql%notfound, sql%rowcount, sql%isopen tips : 1. here sql%isopen is false, because oracle automatically closed the implicit cursor after executing sql statements. : 2. all are boolean attributes. 11. find out nth highest salary from emp table select distinct (a.sal) from emp a where &n = (select count (distinct (b.sal)) from emp b where a.sal<=b.sal); enter value for n: 2 sal --------3700 12. to view installed oracle version information sql> select banner from v$version; 13. display the number value in words sql> select sal, (to_char(to_date(sal,'j'), 'jsp')) from emp; the output like, sal (to_char(to_date(sal,'j'),'jsp')) --------- ----------------------------------------------------800 eight hundred

1600 one thousand six hundred 1250 one thousand two hundred fifty if you want to add some text like, rs. three thousand only. sql> select sal "salary ", (' rs. '|| (to_char(to_date(sal,'j'), 'jsp'))|| ' only.')) "sal in words" from emp / salary sal in words ------- -----------------------------------------------------800 rs. eight hundred only. 1600 rs. one thousand six hundred only. 1250 rs. one thousand two hundred fifty only. 14. display odd/ even number of records odd number of records: select * from emp where (rowid,1) in (select rowid, mod(rownum,2) from emp); 1 3 5 even number of records: select * from emp where (rowid,0) in (select rowid, mod(rownum,2) from emp) 2 4 6 15. which date function returns number value? months_between 16. any three pl/sql exceptions? too_many_rows, no_data_found, value_error, zero_error, others 17. what are pl/sql cursor exceptions? cursor_already_open, invalid_cursor 18. other way to replace query result null value with a text sql> set null �n/a� to reset sql> set null �� 19. what are the more common pseudo-columns? sysdate, user , uid, curval, nextval, rowid, rownum 20. what is the output of sign function? 1 for positive value, 0 for zero, -1 for negative value. 21. what is the maximum number of triggers, can apply to a single table? 12 triggers. ================================================================================== ================================== what are the different types of joins? explain normalization with examples. what cursor type do you use to retrieve multiple recordsets? diffrence between a "where" clause and a "having" clause what is the difference between "procedure" and "function"? how will you copy the structure of a table without copying the data?

how to find out the database name from sql*plus command prompt? tadeoffs with having indexes talk about "exception handling" in pl/sql? what is the diference between "null in c" and "null in oracle?" what is pro*c? what is oci? give some examples of analytical functions. what is the difference between "translate" and "replace"? what is dynamic sql method 4? how to remove duplicate records from a table? what is the use of analyzing the tables? how to run sql script from a unix shell? what is a "transaction"? why are they necessary? explain normalizationa dn denormalization with examples. when do you get contraint violtaion? what are the types of constraints? how to convert raw datatype into text? difference - primary key and aggregate key how functional dependency is related to database table design? what is a "trigger"? why can a "group by" or "order by" clause be expensive to process? what are "hints"? what is "index covering" of a query? what is a view? how to get script for a view? what are the large object types suported by oracle? what is sql*loader? difference between "varchar" and "varchar2" datatypes. what is the difference among "dropping a table", "truncating a table" and "deleting all records" from a table. difference between "oracle" and "microsoft access" databases. how to create a database link ? ================================================================================== ================================= which of the following statements contains an error? select * from emp where empid = 493945; select empid from emp where empid= 493945; select empid from emp; select empid where empid = 56949 and lastname = �smith�; which of the following correctly describes how to specify a column alias? place the alias at the beginning of the statement to describe the table. place the alias after each column, separated by white space, to describe the column. place the alias after each column, separated by a comma, to describe the column. place the alias at the end of the statement to describe the table. the nvl function assists in the distribution of output across multiple columns. allows the user to specify alternate output for non-null column values. allows the user to specify alternate output for null column values. nullifies the value of the column output. output from a table called plays with two columns, play_name and author, is shown below. which of the following sql statements produced it? play_table

�������������midsummer night�s dream", shakespeare �waiting for godot", beckett �the glass menagerie", williams select play_name || author from plays; select play_name, author from plays; select play_name||�, � || author from plays; select play_name||�, � || author play_table from plays; issuing the define_editor="emacs� will produce which outcome? the emacs editor will become the sql*plus default text editor. the emacs editor will start running immediately. the emacs editor will no longer be used by sql*plus as the default text editor. the emacs editor will be deleted from the system. the user issues the following statement. what will be displayed if the empid selected is 60494? select decode(empid,38475, �terminated",60494, �loa", �active") from emp; 60494 loa terminated active select (to_char(nvl(sqrt(59483), �invalid")) from dual is a valid sql statement. true false the appropriate table to use when performing arithmetic calculations on values defined within the select statement (not pulled from a table column) is emp the table containing the column values dual an oracle-defined table which of the following is not a group function? avg( ) sqrt( ) sum( ) max( ) once defined, how long will a variable remain so in sql*plus? until the database is shut down

until the instance is shut down until the statement completes until the session completes the default character for specifying runtime variables in select statements is ampersand ellipses quotation marks asterisk a user is setting up a join operation between tables emp and dept. there are some employees in the emp table that the user wants returned by the query, but the employees are not assigned to departments yet. which select statement is most appropriate for this user? select e.empid, d.head from emp e, dept d; select e.empid, d.head from emp e, dept d where e.dept# = d.dept#; select e.empid, d.head from emp e, dept d where e.dept# = d.dept# (+); select e.empid, d.head from emp e, dept d where e.dept# (+) = d.dept#; developer anju executes the following statement: create table animals as select * from master.animals; what is the effect of this statement? a table named animals will be created in the master schema with the same data as the animals table owned by anju. a table named anju will be created in the animals schema with the same data as the animals table owned by master. a table named animals will be created in the anju schema with the same data as the animals table owned by master. a table named master will be created in the animals schema with the same data as the anju table owned by animals. user janko would like to insert a row into the employee table, which has three columns: empid, lastname, and salary. the user would like to enter data for empid 59694, lastname harris, but no salary. which statement would work best? insert into employee values (59694,�harris�, null); insert into employee values (59694,�harris�); insert into employee (empid, lastname, salary) values (59694,�harris�); insert into employee (select 59694 from �harris�); which three of the following are valid database datatypes in oracle? (choose three.) char varchar2 boolean number omitting the where clause from a delete statement has which of the following effects? the delete statement will fail because there are no records to delete. the delete statement will prompt the user to enter criteria for the deletion

the delete statement will fail because of syntax error. the delete statement will remove all records from the table. creating a foreign-key constraint between columns of two tables defined with two different datatypes will produce an error. true false dropping a table has which of the following effects on a nonunique index created for the table? no effect. the index will be dropped. the index will be rendered invalid. the index will contain null values. to increase the number of nullable columns for a table, use the alter table statement. ensure that all column values are null for all rows. first increase the size of adjacent column datatypes, then add the column. add the column, populate the column, then add the not null constraint. which line of the following statement will produce an error? create table goods (good_no number, good_name varchar2 check(good_name in (select name from avail_goods)), constraint pk_goods_01 primary key (goodno)); there are no errors in this statement. maxvalue is a valid parameter for sequence creation. true false which of the following lines in the select statement below contain an error? select decode(empid, 58385, �inactive", �active") empid from emp where substr(lastname,1,1) > to_number(�s') and empid > 02000 order by empid desc, lastname asc; there are no errors in this statement. which function below can best be categorized as similar in function to an if-thenelse statement? sqrt decode

new_time rowidtochar which two of the following orders are used in order by clauses? (choose two) abs asc desc disc you query the database with this command select name from employee where name like �_a%�; which names are displayed? names starting with �a� names starting with �ar or �a� names containing �ar as second character names containing �ar as any letter except the first ==================================================================== 1. tell me about cubes 2. full process or incremental 3. are you good with data cleansing? 4. how do you handle changing dimensions? 5. what is a star-schema? 2. adapted from response by mike on thursday, july 22, 2004 a few high level questions might include: talk about the kimball vs. inmon approaches. talk about the concepts of ods and information factory. talk about challenges of real-time load processing vs. batch. for informatica: let them know which version you are familiar with as well as what role. informatica 7.x has divided the developer and administrator roles. you will most likely be asked specific questions for building a mapping and workflow. know what the difference is between sttic and reusable objects for both. be prepared to demonstrate how to create a connection, source definition (flat file and relational), use expression transformation, lookups (connected and disconnected), aggregators, normalizers, update strategies, how to modify source and target sql overrides, etc. for erwin: know the difference between logical and physical models. know how to use the reverse engineer and comparison features.

the dimension model feature is pretty weak, but you might want to know how erwin treats dimensional modeling. other topics: anything you know about rdbms is worth discussing. in oracle, you can talk about referential integrity as it applies to dw. views and materialized views, partitioning, bitmap indexing (when to use), and any other specifics as related to dw (for 10g there is the new bitmap join index). always, always offer details of your knowledge, and ask questions to get the customer's perspectives (you do not want to push kimball concepts if the customer is hard-set on inmon). anything you can bring to the table regarding the customers business systems (i.e. sap, peoplesoft, etc.) will help separate you from the pack. also anything you know about business processes such as:, order fulfillment, inventory analysis, finance, etc. will also separate you. ================================================================================== =========================

1. what is source qualifier? 2. difference between dss & oltp? 3. explain grouped cross tab? 4. hierarchy of dwh? 5. how many repositories can we create in informatica? 6. what is surrogate key? 7. what is difference between mapplet and reusable transformation? 8. what is aggregate awareness? 9. explain reference cursor? 10. what are parallel querys and query hints? 11. dwh architecture? 12. what are cursors? 13. advantages of de normalized data? 14. what is operational data source (ods)? 15. what is meta data and system catalog? 16. what is factless fact schema? 17. what is confirmed dimension? 18. what is the capacity of power cube? 19. difference between powerplay transformer and power play reports? 20. what is iqd file? 21. what is cognos script editor? 22. what is difference macros and prompts? 23. what is power play plug in? 24. which kind of index is preferred in dwh? 25. what is hash partition? 26. what is dtm session? 27. how can you define a transformation? what are different types of transformations in informatica? 28. what is mapplet? 29. what is query panel? 30. what is a look up function? what is default transformation for the look up function? 31. what is difference between a connected look up and unconnected look up?

32. 33. 34. 35. 36. 37. 38) 39) 40) 41) 42) 43) 44) 45) 46) 47) 48) 49) 50) 51) 52) 53) 54) 55)

what is staging area? what is data merging, data cleansing and sampling? what is up date strategy and what are th options for update strategy? olap architecture? what is subject area? why do we use dss database for olap tools? what is a universe? analysis in business objects? who launches the supervisor product in bo for first time? how can you check the universe? what are universe parameters? types of universes in business objects? what is security domain in bo? where will you find the address of repository in bo? what is broad cast agent? in bo 4.1 version what is the alternative name for broadcast agent? what services the broadcast agent offers on the server side? how can you access your repository with different user profiles? how many built-in objects are created in bo repository? what are alertors in bo? what are different types of saving options in web intelligence? what is batch processing in bo? how can you first report in bo by using broadcast agent? can we take report on excel in bo?

================================================================================== ===================================