Académique Documents
Professionnel Documents
Culture Documents
BUSINESS OBJECTS
Frequently Asked Questions
Prepared by Raj
Date: July 12th, 2011
Version: BO XI 3.x
Note: This material is prepared by referring to many websites, blog sites of many BO gurus
and material from various sources. I would like to thank all for their contribution. I just
gathered and kept here for the sole purpose of helping BO newbies and whoever attending
interviews to have a quick glance of the subject.
1 | Page
BO FAQ
BO FAQ
OLAP stands for On Line Analytical Processing stores the historical data
based on OLTP source and the database is De-normalized as frequent
updates will not happen and deals with bulk amount of data to support
trend analysis and future predictions.
What are the types of Dimensions?
Ans. The types of dimensions are:
Confirmed Dimension
Junk Dimension
De-generate Dimension
Role-playing Dimension
5)
6)
BO FAQ
table or any of the existing dimension tables. These attributes are usually text or flags
with yes/no or true/false indicators.
10) What
BO FAQ
14) What
is MOLAP? (Multidimensional)
Ans. In MOLAP data is stored in multidimensional cube. The data can be
retrieved fast and slicing and dicing operation is optimal and can perform
complex calculations but limited data can be handled.
15) What
is ROLAP? (Relational)
Ans. In ROLAP data is stored in relational database. Can handle large
amount of data but is limited by SQL functionalities and performance can
be slow.
16) What
is HOLAP?
Ans. It is the combination of MOLAP and ROLAP. For summary type
information, it uses the cube technology for fast performance and when
detail information is needed, it can drill through from the cube into
underlying relational data.
17) What
is Dimension Modeling?
Ans. Dimensional modeling is a logical design technique to present the
data in a standard framework to allow for high-performance access. It is
inherently dimensional and uses the relational model with some
restrictions.
Every dimensional model is composed of one table with a multipart key
called the fact table and a set of smaller tables called dimension
tables. Each dimension table has a single-part primary key that
corresponds exactly to one of the components of the multipart key in the
fact table.
18) What
is Fact table?
Ans. It is a table which contains two types of columns. One that contain
numeric facts (measurements) and other column have foreign keys to
dimension tables.
A fact table contains either detail-level facts or facts that have been
aggregated (Summary tables).
19) What
is Dimension table?
Ans. It is a table which contains further information about an attribute in a
fact table.
A foreign key of a fact table references the primary key in a dimension
table in a many-to-one relationship.
20) What
BO FAQ
Example - Sales
Semi-Additive: Measures that can be added across some dimensions
and not across others.
Example: Inventory level, where you cannot tell what a level means
simply by looking at it.
Non-Additive: Measures that cannot be added across any dimension.
Example Average
21) What
is a Star schema?
Ans. A typical star schema has a completely de-normalized dimension and
fact tables whose Entity-Relationship (ER) diagram looks like a star.
Dimensions have Primary key and Fact table have foreign keys referencing
dimension table primary keys.
A star schema can have any number of dimension tables. The crow's feet
at the end of the links connecting the tables indicate a many-to-one
relationship between the fact table and each dimension table.
23) What
is a Snowflake schema?
Ans. In a snowflake schema one or more dimension tables are partially or
completely normalized.
A snowflake schema can have any number of dimensions and each
dimension can have any number of levels. The following figure shows a
snowflake Schema.
6 | Page
BO FAQ
24) What
is Data Federator?
Ans. It provides federated query capabilities that can accelerate
deployment performance. It creates a virtual view of all data sources and
allows a single BO universe or crystal reports to map to multiple sources
and optimally federates (Integrates) queries against individual sources
directly.
28) Are
BO FAQ
8 | Page
BO FAQ
BO FAQ
(Oracle, MySQL, Microsoft SQL Server, DB2, Sybase) as well as OLAP (SAP
BW, Microsoft Analysis Services, Hyperion Essbase).
30) What
is Semantic layer?
Ans. It is a business transaction layer between the database and reports.
The semantic layer in BO is called as Universe.
As many business rules will be applied on database, these rules
generate the SQL and if two users ask for the same information,
these users will get same result.
It gives the users independence on the technology as just by
dragging objects the query will be modified.
It is an extra layer and is not free. It has to be created, maintained
and managed. It must be kept in sync with any database changes
that occur.
It could connect to only 1 database at a time.
32) What
is meant by ZABO?
Ans. ZABO stands for Zero Administration Business Objects which uses
the hardware resources of the client machine for application level
processing and communicates through the protocol defined for the
browser to use the server resources for processing External requests (like
running a database Query, creating a data provider to access data.)
10 | P a g e
BO FAQ
11 | P a g e
BO FAQ
Chapter 2: Designer
What are the difference between BO XI R2 and 3.0?
Ans. BO XI 3.0 supports the following features which are not supported in
XI R2. These are:
Smart measure: A measure can be called as a smart measure in the
universe when its data aggregated in a way not supported by WEBI. A
smart measure has projection function set to Database delegated on
the properties tab of object properties.
1)
12 | P a g e
BO FAQ
BO FAQ
If you have a network that allows you to send a large array fetch, then
you can set a new larger value. This value will speed up the FETCH procedure
and reduce query processing time. Values can be set from 1 to 999.
Allocating table weights
Table weight is a measure of how many rows are there in a table. By
default BO sorts the table from lighter to heavier tables and this determines
the table order in the FROM clause of SQL statement.
If you are using Oracle database, you can optimize the SQL by
reversing the order that BO sorts the table. To do this we need to modify the
oracle .PRM file by changing parameter REVERSE_TABLE_WEIGHT from Y to
N (Default Y ). By doing this BO forces to sort the tables from those with
most rows to those with least rows.
Path of oracle.PRM file =>
<INSTDIR>\dataAccess\RDBMS\connectionServer\oracle\oracle.prm
Restart Designer to apply the changes to the file.
In Designer we can manually change the number of rows for any table.
To view, select View menu => Number of rows in tables. To modify
Open a universe in designer, Right click the relevant table.
Select number of rows in table from contextual menu. A dialog box
appears.
Select the Modify manually tables row count radio button. A text box
appears.
Type a number in the text box. This is the number of rows that you
want to use for the
table.
Click ok and save the universe.
Using short cut joins
A short cut is an alternate path between two tables. Short cut join used
to reduce number of tables that are used in a query.
Using Aggregate Awareness
The ability of a universe to make use of Aggregate tables to optimize
SQL query is called Aggregate Awareness. These are the tables which contain
pre-calculated data.
You can use @Aggregare_Aware function in the select statement for an
object which directs SQL query to run against Aggregate tables rather than
on base tables.
Using Aggregate tables speeds up the execution of query and thus
improves the performance.
Setting up aggregate awareness
Build the Objects
1. Identify all the possible definitions (table/column combinations) of
the objects.
14 | P a g e
BO FAQ
15 | P a g e
BO FAQ
16 | P a g e
BO FAQ
Advantages:
Maintenance will be easy because when you modify a component in
the core universe, designer will automatically reflect the changes in all
the derived universes.
No need to re-create common components each time you create a new
universe as often used components can be kept in a core universe.
Requirements:
Core universe and derived universe use the same data account or
database. Using the same connection for both universes makes
managing the universes easier, but this can be changed at any time.
Core and derived universes must be in same repository.
Core universe was exported and re-imported at least once. Derived
universe does not need to have been exported before creating a link.
Exported derived universes are located in the same universe domain
as the core universe
You have the authorization to link the given universe.
Restrictions:
You can use only one level of linking. You cannot create derived
universe from a universe which is itself derived.
All classes and objects are unique in both the universes else conflict
will occur.
Only the table schema, classes and objects of the core universe are
available in the derived universe. Context must be re-detected in the
derived universe.
The two universe structures must allow joins to be created between a
table in one universe to a table in the other universe else Cartesian
product will occur.
List of values associated with a core universe are not saved when you
export a derived universe with the core universe structure.
To save LOVs associated with core universe:
Create new objects using the same definition
Assign the new objects the same LOVs as the core objects
Hide these new objects.
The hidden objects serve the function of holding the LOVs so that they
can be exported and imported with the derived universe.
17 | P a g e
BO FAQ
You can log into designer as a different user without quitting your work
session.
Tools => Login As. Give user name and password.
(If there are any open universes, designer closes them automatically)
Tools => Change password ( to change password).
What is cardinality and what happens if Cardinalities are not resolved?
Ans. Cardinality means a relationship between two tables based on a join.
Means how many rows of one table will match with rows in other tables
when these tables are joined.
7)
18 | P a g e
BO FAQ
10) What
is Alias?
Ans. Alias used for solving loops and traps by using same table with
different name in the query.
11) What
is Chasm trap?
Ans. It is a type of join path between three tables when there are two
many to one joins converging on a single table, and there is no context
in place that separates the converging join paths. Because of Chasm trap
we get incorrect results i.e., Cartesian product will occur.
Resolving a Chasm trap:
When there are dimension objects in one or both fact tables, use context.
When there are measure objects defined for both fact tables, use the universe
parameter option SQL Multiple SQL statements for each measure.
13) What
is Fan trap?
Ans. It is a type of join path between three tables when a one to many
join links a table which in turn kinked by another one to many join.
Because of Fan trap we get incorrect results i.e., Cartesian product will
occur.
Resolving a Fan trap:
Create an alias for the table that is producing the multiplied aggregation.
19 | P a g e
BO FAQ
When there are only measure objects defined for both the tables , use the universe
parameter option SQL Multiple SQL statements for each measure.
OR
14) What
BO FAQ
18) What
is Class?
Ans. Class is a logical grouping of objects within a universe and can be
divided hierarchically into subclasses and represents as folders on a tree
hierarchy in the universe pane.
20) How
is category?
Ans. Category is logical way of structuring or organizing the content (BO
document).
23) What
BO FAQ
BO FAQ
36) In
have 2 universes, U1 and U2. From U1, I created one report that is
R1. Now i want to give the connection R1 to U2 and at the same time
delete the connection from U1 to R1? How is it possible?
Ans. We can change the connection for the report R1. For webI reports in
query panel on left side we have Query properties there we can change
the connection of the universe to U2. Then it will map to the U2.
40) How
23 | P a g e
BO FAQ
Click values and this is where the fun begins. You will be then prompted
for a Resort
41) What
BO FAQ
is hierarchy?
Ans. Hierarchy is an ordered tree structure of relevant dimension objects.
Hierarchies are used for drilling information across various levels.
43) What
BO FAQ
key',...]})
message
quotes.
type
Lov
example.
Pointer to a list of values from an existing object:
CLIENT\COUNTRY.
Mono
- user can select only 1 value from LOV.
Multi
- user can select multiple values from LOV
Free
- user can enter a value or select from LOV
Constrained - user must select a value from the LOV
Primary key
- Use the primary key parameter with "free" or
"constrained". The user
enters a value or selects from
the list of values. If the primary key parameter is present,
the entered or displayed value is not used to generate the
query. The associated key value from the Index Awareness
column is used.
Persistent
- when refreshing a document, the last values used in the
prompt is displayed by default.
Not persistent - when refreshing a document, no last values will be
displayed in prompt.
'default value':'defaultkey' - The default values parameter is used to
define default values presented to the user.
You can define multiple default values. The syntax for each
default value is: value:key.
The colon (:) is the separator between the value and the
key.
When refreshing a document these values are displayed by
default but if
the persistent option is set, then the last values used in the
prompt are used instead of the default values.
If you specify the primary key parameter, then you must
provide the key value(s).
47) What
BO FAQ
designer, you tell designer which database columns are primary and
foreign keys which will increase query performance.
To setup Index Awareness, open the properties of objects, open Keys
tab. Click Insert and Add respective primary key and foreign key.
48) How
The Key values are then stored in the LOV for the object. When a user
selects a value from the LOV, the SQL will switch the value to the indexed
column. Of course, if the user does not select from the LOV, but types in
the value instead, Index Awareness is not used. So you will need to train
your users to select from the LOV.
27 | P a g e
BO FAQ
is BIAR file?
Ans. It stands for Business Intelligence Archive Resource which is similar
to a zip file which is used to collect objects together to facilitate easier
backup, restore or transporting objects from one system to another.
You can create, export, import and promote a BIAR file with Life Cycle
Manager (LCM).
51) How
BO FAQ
Select both the universe file and the folder (hold CTRL and use mouse).
Then right-click either the selected file and chose WinZip -> Add to Zip
File Note: Any compression tool will do.
Enter a name that is meaningful to you; it may indicate the version of the
universe, the date/time, or editor. Click OK and notice the new Zip file
you created. This is your backup.
52) How
WARNING: if you receive any messages asking you to Move, Copy, or Overwrite a universe
then you may not be restoring to the exact location that the universe previously resided.
Prompts asking to overwrite the universe will be received if the universe you are attempting to
restore does not have the same CUID as the backup universe. In this case, double-check your
directories and analyze everything in Query Builder.
1. At the end of the export close the universe and import the universe you just
exported.
2. Verify that this is the correct universe.
3. You have successfully restored the universe
29 | P a g e
BO FAQ
BO FAQ
Ans. Formulas and Variables are used to manipulate the data after data
has been retrieved from the database while User objects operate at the
database level through the SQL query.
Formulas and Variables are associated with single document and are
available to any user refreshing or modifying the document while User
objects are associated with specific universe and are not available to
other users. They exist only on your computer.
(To create, Tools ==> Universe. Select the Unv under which the user
object will be created for)
How you will do Relative Positioning of Tables, Charts, and Cells?
Ans. Moving one block relative to the other block either up or down or left
or right is called relative block positioning. Process is:
Click on the table, chart, or cell until you see a border around the object.
Right click Align Relative position or Right click and select Position
3)
Then your choices are flexible: horizontal, right and left, and vertical, top
and bottom.
Each option allows the space to be defined in pixels (px).
What is User Object?
Ans. It is not available to other end users and if an end user tries to
refresh or edit a query that contains another user's user object, BO
removes the objects from the query and report.
4)
31 | P a g e
BO FAQ
10) How
12) How
BO FAQ
17) How
can I see and work with all of the filters applied on a report at
once?
Ans. You can only do this in InfoView's 'Interactive View' mode by making
use of the 'Document Structure and Filters' tab. Double-click on one of the
report filter boxes in the 'Document Structure and Filters' tab, the
'Block Filter Editor' dialog box opens.
33 | P a g e
BO FAQ
18) What
34 | P a g e
BO FAQ
Insert menu => Table => Access new data in different way => Others(Visual
basic for Applications) => Choose the previously created subroutine and
click Run. The query result is inserted into report.
We can query the System Database using an abstraction layer, made up of 3
virtual tables:
CI_INFOOBJECTS (user desktop info + )
CI_SYSTEMOBJECTS (administration info)
CI_APPOBJECTS (App info + universe metrics)
21) How
can I see how many rows of data were returned from my query?
Ans. In InfoView Interactive View mode, you can see the number of rows
returned, last execution time on the Data Summary tab.
22) How
can I see the order of the report breaks or sorts, and how can I
change them?
Ans. The most efficient way to do this is with InfoView Interactive View
mode.
Right-click in a column that you think has a break.
Notice that the Sort and Insert break... buttons change and look
'indented' when a column that has sorts or breaks is clicked.
Select Break from the drop-down menu that appears when you rightclick.
Select Properties and click on it and the Break Properties box will
appear.
Existing breaks are listed in order here.
Up and down arrows allow you to change the order of multiple breaks.
Existing Display Properties are shown and you can change them.
Existing Page Layout items are shown and you can change them.
35 | P a g e
BO FAQ
In custom sort, you can add and remove temporary values in the sort as
well as change the order of the sort.
23) If
36 | P a g e
BO FAQ
24) The
Left Panel offers 9 function icons at its base (as opposed to the
tabs available in Webi report viewing)?
BO FAQ
Find- allows you to find data on the report tab displayed on the right hand
side of the screen.
25) Can
38 | P a g e
BO FAQ
Once you have the filters indented the way that you want them, doubleclick on the AND to turn it to an OR (and visa versa).
28) What are Alerter, Breaks, Filters and Conditions?
Ans. Alters are used for conditional formatting like highlighting
the data .
Breaks are nothing but grouping the data without any change in the
format.
Condition or Filters are used to get necessary data.
We can apply a maximum of 10 alerters on a single dimension/column
and a max of 30 alerters on a report.
29) Can
39 | P a g e
BO FAQ
30) Why
31) I'm
33) How
BO FAQ
To add a logo:
Go to the section, at the bottom, called <!-- Settings Default Skins background per report element
type -->
Add a new KEY entry for the new file as per the example below.
Note that the sequence numbers can be different for each type (4 and 5 in the example below).
<KEY VALUE="cell_skin5,report_skin4,section_skin5,bloc_skin5">
<SKIN NAME="InfoSol Logo" TYPE="stretch">
boimg://LogoCorp.jpg
</SKIN>
</KEY>
34) How
41 | P a g e
BO FAQ
the down arrow key to take you to the next match till you find your object.
35) When
getting 'No data to fetch' message, how can you make the
report to display at least one record?
Ans. Add a second SQL UNION query with the same number of objects and
object types in the Result Objects and make it always return one value.
Then you may need to filter this value out of your reports by adding a
simple report level filter. OR
You can have two blocks, one hidden behind the other, where one block is
displayed when there is data, and the other block (with a hard-coded text
message) displayed only when there is no data.
Variable NumRows=NumberOfRows(DataProvider(< Order Date >))
36) How
42 | P a g e
BO FAQ
We use ForEach for detail purpose and ForAll for summary purpose.
In
It is used to specify exactly which dimensions to include in a
context.
Input context
formula.
Output context
formula.
Reset context
starts over at zero.
In Report
In Block
In Body
39) What
in BO?
Ans. Slice & Dice and Drill analysis.
44) What
is meant by scorecards?
Ans. Scorecard is a concept used for measuring a company's activities in
terms of its vision and strategies, to give managers a comprehensive view
of the performance of the business.
45) What
BO FAQ
Ans. Web based clients are called as thin clients and windows based
clients are called as thick clients.
47) What
Ans.
Personal
48) What
the report?
52) How
BO FAQ
is same, 2 tables values are same. How do you find out both
values are same?
In Designer, File tab-->parameter-->Strategy, we have lot options to join.
Options are:
Match by column names, Match by values etc..
57) What
45 | P a g e
BO FAQ
62) What
is offline mode? How can you log on to BO in off line mode? Can
we refresh a document while working in offline mode using a
Client/Server Connection?
Ans. Using BO in offline mode means that you are not connected to a
repository which in turn means that, whatever your connection type, you
will not be able to retrieve and send documents using BCA
Client Server Connection: If you are using a BO client/server connection
offline and not connected to a repository, you can still work with
documents and universes stored locally on your computer and even
create and refresh documents if you have a connection to the database.
63) How
a report i need vertical table and below that a chart. How do you
make sure that data overlap does not happen?
Ans. By relative positioning under Appearances
66) What
BO FAQ
67) How
can you schedule the report to run only when there is data in it?
Ans. You could schedule a report to run and generate output to a file. If
the data is not refreshed, then the logic in the report's SQL should cause
the report to fail, therefore generating no output. If the data is refreshed,
then the output file is generated. Next, set up a File-based Event to watch
for that file.
68) Whenever
BO FAQ
71) What
is repository?
(BOE source)
Ans. All universe objects and connections are stored and secured in the
central repository.
72) What
is CCM?
Ans. Central Configuration Manager is used to start, stop, enable and
disable servers.
73) What
is CMC?
Ans. Central Management Console is a web-based environment used for
managing:
User and group creation
Security authentication
services
Object rights
Scheduling
Business calendars
License keys
Universe and data connections
74) What
is CMS?
Ans. Central Management Server performs four main tasks:
Maintaining Security
Managing Objects
Managing Servers
Managing Auditing
76) What
is Event Service?
Ans. After a file based event is created, the event service monitors the
specified directory for new files and when they appear, it notifies the CMS
that the file based event has occurred and triggers the event.
78) What
is Scheduled Service?
Ans. Report job server processes scheduled reports and generated report
instances.
48 | P a g e
BO FAQ
79) What
is Cache Service?
Ans. Cache services are responsible for handling all report viewing
requests.
80) What
is Report service?
Ans. It consists of two components:
Web Intelligence Report Server It is accessed when the CMS
requests the creation or viewing of a WEBI document for further
interaction
Desktop Intelligence Report Server It handles the collection of data,
formatting, and layout of a DESKI document.
81) How
82) How
BO FAQ
84) What
is Universe override?
Ans. Universe Overrides or Access Restrictions are simply object
restrictions, table mapping, and row restrictions which are directly added
to a universe.
85) What
is Open Document?
Ans. With the open document, you can embed hyperlinks in one
document to another.
Example:
Ampersand is always required between parameters and joined by &.
Document identifier properties:
="<a
href="+Char(34)+"/OpenDocument/opendoc/openDocument.jsp?
iDocID It is used to specify how to access a particular document in CMS
or determine how to display the document to the user. It is used in
conjunction with sIDType
sIDType specifies the type of object identifier.
Values: CUID / ParentID / InfoObjectID
="<ahref="+Char(34)+"/OpenDocument/opendoc/openDocument.jsp?
iDocID=Aa6GrrM79cRAmaOSMGoadKI&sIDType=CUID
sDocName specifies the name of the viewable document. Used in
conjunction with sPath and sType
sPath specifies the name of the folder and subfolder containing the
target document.
Values: [folder],[subfolder]
sType specifies the file type of target document.
Values: wid / rpt / car
="<ahref="+Char(34)+"/OpenDocument/opendoc/openDocument.jsp?
sDocName=Sales+in+2011&sPath=[Sales+Reports]&sType=rwid
BO FAQ
Ans.
87) Can
are @functions
Ans. @Aggregate_Aware, @Prompt, @Script, @Select, @Variable,
@Where
51 | P a g e
BO FAQ
Ans.
OR
52 | P a g e
BO FAQ
Sum([Sales Revenue] ForAll ([Quarter]))
91) What
#SYNTAX
#ERROR
#DATASYNC
#CONTEXT
#SECURITY
#EXTERNAL
92) What
is #MULTIVALUE?
Ans. #MULTIVALUE occurs when you place a formula that returns more
than one value in a cell that supports one value only.
Example: Multivalue in a cell
You have a report showing Country, Resort and Revenue and you add a
cell to the report containing the formula [Revenue] ForEach
([Country]).
This cell returns #MULTIVALUE because Country has many values in the
report and one cell cannot display the revenues for all the countries.
What is #SYNTAX?
Ans. #SYNTAX occurs when a formula references an object that no longer
exists in the report.
Example: Referencing a non-existent object
93)
You have a report that originally showed Year, Quarter and Sales revenue,
with an additional column showing difference between the revenue and
the average yearly revenue. This figure is given by the variable Difference
If this variable is deleted from the report, the column containing it returns
#SYNTAX.
94) What
is #ERROR?
Ans. #ERROR is the default error message that covers all errors not
covered by other error messages.
95) What
is #DATASYNC?
Ans. #DATASYNC occurs when you place a dimension from a different data
provider in a block containing dimensions from another data provider, and
the two data providers are not synchronized through a merged dimension.
#DATASYNC appears in all Dimensions in the block and #CONTEXT in the
Measures.
53 | P a g e
BO FAQ
96) What
is #SECURITY?
Ans. #SECURITY occurs when you attempt to use a function for which you
do not have security rights.
Example: Using the DataProviderSQL() function
If a user who does not have the right to view data provider SQL places the
DataProviderSQL() function in a cell, the #SECURITY message appears in
the cell.
97) What
is #EXTERNAL?
Ans. #EXTERNAL occurs when a formula references an external function
that is not available to Web Intelligence.
Example: Using the Multicube() in WEBI
98) How
54 | P a g e
BO FAQ
Chapter 4: Oracle
What is a Primary Key?
Ans. A primary key is used to uniquely identify each row in a table. It can
either be part of the actual record itself , or it can be an artificial field (one
that has nothing to do with the actual record). A primary key can consist
of one or more fields on a table. When multiple fields are used as a
primary key, they are called a composite key.
Primary keys can be specified either when the table is created (using
CREATE TABLE) or by changing the existing table structure (using ALTER
TABLE).
1)
5)
What is Normalization?
55 | P a g e
BO FAQ
Product_
ID
Product
Name
Cost
Aciv
e
336
Baby
Powder
444
N
56 | P a g e
BO FAQ
2
3
345
Cream
34
336
talkem
Powder
44
Now with above table you can use same code for another Product, mark
the product as Active and Inactive and maintain all the product in Data
Warehouse
Advantages of Surrogate Key:
Data need that arises from the Business or operational changes and
recycling.
It allows the data warehouse to integrate data from all sources if
they lack natural Business keys.
These are very helpful for ETL transformations
What is Materialized view?
Ans. A materialized view is a database object that contains the results of
a query.
CREATE MATERIALZED VIEW MV_NAME AS SELECT stmt;
8)
10) What
is Package?
Ans. Package is a database object which holds other objects in it such as
procedures, functions, cursors, variables, constants and exceptions.
11) What
is Stored Procedure?
Ans. A Stored procedure is a set of SQL statements with a name assigned
to it and stores in the database in the compiled form. SP are helpful in
57 | P a g e
BO FAQ
Ans.
58 | P a g e
BO FAQ
is NVL() function?
Ans. It is a function which returns a non-null value, if a null value is
passed to it.
NVL(a,b) == if 'a' is NULL then return 'b' else return 'a'.
18) What
BO FAQ
Note: Varchar should not be used as it is reserved for future usage. Use
Varchar2 instead.
19) What
is ROW ID?
Ans. ROW ID identifies where exactly the record is stored in the table with
the help of data value in index.
Format: BBBBBBB.RRRR.FFFFF where
B- block of database file, R row in block and F- database file
20) What
10000
6000
5000
5000
3
60 | P a g e
BO FAQ
4000
C
3000
6
6
5
Note: rank () OVER (Partition by deptno ORDER BY salary DESC
NULLS LAST) as RANK (try this)
24) Write
Ans.
Even:
26) How
Ans.
SELECT *
FROM (
SELECT rownum rn, empno, ename
FROM emp
) temp
WHERE MOD(temp.ROWNUM,4) = 0;
27) How
Ans.
SELECT DISTINCT A.SAL FROM EMP A
WHERE N = (
SELECT COUNT(DISTINCT(B.SAL)) FROM EMP B
WHERE A.SAL >= B.SAL);
28) How
Ans.
SELECT ename, sal
FROM ( SELECT ename, sal, RANK() OVER (ORDER BY sal DESC) sal_rank
61 | P a g e
BO FAQ
FROM emp )
WHERE sal_rank <= 10;
29) How
Ans.
SELECT ename, sal
FROM ( SELECT ename, sal, DENSE_RANK() OVER (ORDER BY sal DESC)
sal_dense_rank
FROM emp )
WHERE sal_dense_rank <= 10;
30) How
Ans.
SELECT ename, sal
FROM ( SELECT ename, sal, RANK() OVER (ORDER BY sal ASC) sal_rank
FROM emp )
WHERE sal_rank <= 10;
31) How
Ans.
SELECT ename, sal
FROM ( SELECT ename, sal, DENSE_RANK() OVER (ORDER BY sal ASC)
sal_dense_rank
FROM emp )
WHERE sal_dense_rank <= 10;
32) How
Ans.
SELECT *
FROM (
FROM emp
Where rownum < 101
) temp
WHERE rn BETWEEN 50 AND 60;
33) How
Ans.
DELETE FROM EMP
62 | P a g e
BO FAQ
Ans.
select sysdate, sysdate+1/24, sysdate +1/1440, sysdate + 1/86400 from dual;
SYSDATE
SYSDATE+1/24
SYSDATE+1/1440
SYSDATE+1/86400
-------------------- -------------------- -------------------- -------------------03-Jul-2002 08:32:12 03-Jul-2002 09:32:12 03-Jul-2002 08:33:12 03-Jul-2002 08:32:13
Date Expression
Now
SYSDATE
SYSDATE + 1
SYSDATE + 7
SYSDATE + 1/24
SYSDATE + 3/24
SYSDATE + 1/48
SYSDATE + 10/1440
SYSDATE + 30/86400
Tomorrow at 12 midnight
TRUNC(SYSDATE + 1)
Tomorrow at 8 AM
TRUNC(SYSDATE + 1) + 8/24
63 | P a g e