Vous êtes sur la page 1sur 50

Question optA optB optC optD

Facts that cannot be summed up for any of the dimensions

present in the fact table is _____ Semi-additive facts Non Additive facts Factless fact None of the above

How do you prevent users from adding records to a related table By enforcing Referencial
if there is no associated record in the primary table? integrity By Data integrity By Unique Constraint None

Complexity in data for reporting applications,

retrieval from more database where a lot of data needs to
When should denormalization would be considered? tables performance is slow filtered very often. All
____ is a group of few related entity types that implement a Data Pattern Data Model Data Map None of the above.
concept and can be applied consistently to model many different
business requirements.

_____ captures approval for some future involvement in entity Tracking Authorizing Validation Data Mining

_____ ensure that attributes are allocated to the correct entity Normalization De-Normalization Datamodeling Optimization

_____ is a technique used to develop an information model that Data Modeling Data Mapping Dimensional Analysis Dimensional Modeling
support queries of business facts from different prespectives.

_____ is commonly used for Bill of Materials, Matrix Management Recursive Hierarchy Recursive Network A or B A and B
Organizations and Medical Procedures.

_____ pattern assist in discovering and accurately diagramming a Domain Pattern Transaction Pattern DrillDown Pattern None of the above.
header/details data structure. It is typically used for purchase
orders, invoice etc.

_____ table have the characteristic of "Slicing and Dicing" Fact Table Dimension Table Look-Up Table All of the above.

_______ dimension can be best represented in Data Warehouse by Regular Time Quantitative Slow Changing
adding a new record and update the end date of the current
active dimension record with the start date of the new record.

___________ Modeling is the First Step of a DW Design process Physical Logical Relational DW Transformation

A ___ association support multiple relationships between two Domain Based Role Based PK - FK based All of the above.
entity types.

A _____ represents a structured grouping of entities that share Supertype - Subtype FK PK B and C Both
common characteristics but maintain their unique differences.

A candidate key is one that can identify each row of a table 1 0


A CHECK constraint is used to limit the values that can be placed user defined integrity domain integrity entity integrity referential integrity
in a column. Check Constraints are used to enforce

A corporate level strategy which focuses on creating and Customer Relationship Customer Customer Clustering(CC) Customer Profiling(CP)
maintaining lasting relationships with customers is called Management(CRM) Centricity(CC)

A database that has the same characteristics as a data warehouse, Enterprise Data Mining Data Mart Group Datawarehouse
but is usually smaller and is focused on the data for one division Datawarehouse
or one workgroup within an enterprise is called as

A Dimensional model is Easy to understand Denormalized for Defines data from a All of the above
optimal business perspective

A DW Bus architecture is implemented by Conformed Dimensions Recursive Decoupling the marts All of the above

A fact can be defined with no context 1 0

A foreign key constraint prevents any action that would destroys referential integrity domain integrity entity integrity user defined integrity
the relation between data between two tables. A foreign key
constraint is useful to enforce the

A goal of normalization is to minimize the number of minimize the minimize the number of minimize data
relationships number of entities tables redundancy

A high level of granularity means more detail; a low level of 1 0

granularity mean less detail.
A puristic Business Representation of data is called as Logical Model Conceptual Model Business Model None of the above

A snowflake schema is which of the following types of tables? Fact Dimension Helper All of the above

A Subtype must be associated with the SuperType in a ______ One to One One to One Many to One Optional One to Many Optional
Relationship Optional

A table MOVIES in an object-oriented database consists of the 1NF 2NF 3NF 4NF
attributes title (the primary key), year-produced, and actor-name;
actor-name is a repeating group; different movies may have
different numbers of actors. The table MOVIES violates the
following normal form (choose the lowest one

A table that satisfies 2NF: Always satisfies 1NF May violate 1NF Always satisfies 3NF None of the above
A table that satisfies BCNF: Always satisfies 3NF May violate 3NF May satisfy 3NF None of the above
A table with a unique key and without any nullable columns is in 5th 6th 3rd 1st

Ability of a computer system or a database to operate efficiently Linearity Feasibility Scalability Efficiency
with larger quantities of data is called

Activity of removing errors and inconsistencies from data being Data Scrubbing Data Refining Data Cleansing all of the above
imported into a data warehouse is called

All of the following are common denormalization techniques Duplicating non-key Adding derived or Adding non-key columns to Creating fake arrays in
EXCEPT which one? columns across tables summary columns indexes tables using multiple
to tables columns

All OLTP application needs Normalised database Moderately Heavily normalised databse Any thing is Ok
system Normaised database system

All the OLTP databases must be in Fourth Normal Form? 0 1

An advantage of the three-tier architecture over the two-tier Easier maintenance Better control over Better performance All of the above
architecture is: the data

An attribute is _____ if its value relies solely on the PK and would Functionally Functionally Normalized None of the above.
loes its meaning if separated from the PK. Independent Dependent

An Empty string and null are both the same 1 0

An integrated database of operational data, its sources include OLTP (Online ODS (Operational Data Warehouse Data Mart
legacy systems and it contains current or near term data. It may Transaction Processing) Data Source)
contain 30 to 60 days of information, while a data warehouse
typically contains years of data. What is this database model is

An object/entity in an application contains an array of values 1 2 3 4

(among other properties). Referring to the scenario above, storing
this object in a single column of a single table violates which
normal form?

Any analysis which involves on "what I want to know" is a Dimension Attribute Flag Fact

Architecture which unifies business processes by structuring Infrastructure Services Oriented Communication Networked
large applications as an adhoc collection of smaller modules of Architecture(IA) Architecture(SOA) Architecture(CA) Architecture(NA)
services is called

Association is used to resolve One to Many May to Many Many to One One to Many

Implementing Resolving Many - Many

Association pattern is used for Looking up data Referential Integrity relationship (M:M) None of these
Association pattern is used for - To resolve Many-to- To make relational To provide a home for All of the above.
Many Relationship Data Model work. attribute that describe a

Associative entities are entities used to associate two or more

entities in order to resolve a -------- relationship One to many one to one many to many None of the above
Assuming ideal conditions , 'Ad-hoc' calculations are best Database Reporting Client BI Server Store the Calculation
implemented on the

Attributes are used for ________ data Grouping Selecting Drilling

Average marks' is not an example of Additive Fact Semi-Additive Fact

Too many data Poor end user

Bad Data Architecture manifests as movements performance high data latency All of the above
Bus diagram does not show Fact Dimensions Star schema Hierarchy
Business Intelligence/Decision Support System needs ? Normalised database Moderately Heavily normalised De-normalised database
system Normalised database system system
database system

Candidate Key could be a Primary Key, Foreign Alternate Key, Primary Key, Alternate Key Foreign Key
Key Foreign Key

Table should be in 2nd no transitive Partial functional

Characteristics of Third Normal Form NF dependencies dependency a and b
Choose two Ralph Kimball believes Inmon believes that Ralph Kimball believes that Both B & C
that portions of data can portions of data can DW is built and should be
be combined based on be combined based used for reporting.
relevance of data and on relevance of data
can be used for and can be used for
reporting reporting

Click stream data means Entertainment data Data regarding web Streamlined Data None of the above

Code Tables are examples of Dependency Domain Association Transaction

Conceptual Data Model is often used by Business Users Designers Implementors All of the above

Conformed Dimension is NOT resulted from MDM Data Cleansing Universal Product Catalog CDI
Consolidated data mart is First level data mart Second level data All of these None of Above

Adopt with
Business Evolve with business
Data Architecture determines the DWH ability to Be Scalable requirements objectives All of the above

Dimension keys Can not be determined from Hierarchy of Dimension

Data granularity depends on Source system data linked to a fact star schema table
Data Marts are defined based on Source System rules Data Relationships Business Rules All of the above

Find pattern or data cleansing &

Data Mining in BI application is to Drill down data trend create Scorecard profiling
Data Modeling tools can track Source to Target Meta Data None of the above a&b
Mapping Definitions

Data Models are mostly designed using 1NF 2NF 3NF 4NF
Database Modeling Technique involves designing tables from 1st 1 0
to 2nd and then to 3NF

Denormalization is the factor that increases the sparseness in a 1 0


Denormalizing hurts Performance Data Maintenance Data Retreival No hurts at all, its very

Dependency is indicated by _________ each relationship cardinality of optionality of integrity of dependency on

Dependency pattern is closely associated to Relationship Cardinality Referential Integrity None of these
Designing a data warehouse in first normal form (1NF) is not 1 0

Dimension table may NOT be populated from Look up data Transaction data Master data Reference Data
Dimension table will normally not contain Measures Description Context information Master data
Dimension tables are used to provide descriptions of the business 1 0
subjects and descriptive information about each row in the fact

Dirty Dimension
Dimension where data quality cannot be guaranteed Conformed dimension Big Dimension None of the above
Type 1 Slowly Changing
Dimension Type 2 Slowly
Changing Type 3 Slowly Changing
Dimensional history is not maintained in case of Dimension Dimension
Dimensionality refers to The level of detail of The data that The level of detail that is The number of
data that is held in the describes the held in the Data Warehouse dimension tables that
fact table transactions in the exist in a star schema
fact table.

Dimensions are Confirmed when They are different They are either same When they can be compared None of these
or one is subset of mathematically
Domain Integrity enforces valid entries for a given column restricting the Type restricting the restricting the range of all of the above
by Format possible values

Domain Pattern is implemented in Code tables Look up tables Validation lists All of these
Effective use of summaries is the best technique for improving 1 0
performance in data warehouses.

Entity Relationship Diagrams are output from the following Physical Database Conceptual Data Logical Database Design Distributed Database
phase of Database Development: Design Modeling Design

Error Handling in ETL design is critical to Assess data anamolies Assess impact from Refining Business rules All of the above
and evaluate data missing data

Every non key attribute is non transitively dependent on the
primary key - which level of Normalization are we in? 1 2 Boyce Codd
Fact table in dimensional modeling is an example of weak entity strong entity sub entity None of the above
non additive Measures
Semi additive
Fact table may not contain measures Hierarchy Foreign Keys to Dims
Fact tables are often referred to as the measures of business 1 0

Factless fact table has only information about Data Measure Keys All of the above
Find which of the following is a Data Integration term Enterprise Application Enterprise Content Enterprise Information all of the above
Integration (EAI) Management (ECM) Integration (EII)

For a violation of 2NF to occur in a table in 1NF, the following There must be some There must be Part of a key determines a All of the above
condition(s) must exist: specific nontrivial transitive nonkey attribute
multivalued dependencies

Forward engineering means Creation of a model Creation of the data

based on the source data definition language
in the operational (DDL) for the target
environment as well as tables in the data
from other external warehouse
sources of data databases

From the user query and reporting perspective, which of the Denormalized/Flat Denormalized/Flat
following dimension table design will provide better Dimension with Snowflake Dimension with Natural
performance? Surrogate keys(integers) Dimension Keys(alphanumeric) None of the choices
Generally Snowflake schema implemented is in ___ Normal 1NF 2NF 3NF 4NF

third table containing the

create materialized primary keys of both the
Good approach to normalize may to many relationship? create view view create dimension table tables
Granularity refers to The number of fact The level of detail of The level of detail of the The number of
tables in a data the data data stored in a data dimensions in a data
warehouse descriptions held in warehouse. warehouse
a data warehouse

Having an order number as part of a fact table is Degenerative Fact Factless Fact Aggregate fact None of the above
Header Detail patters is generally identified by a ___________ Association Transaction Dimensional Relational

Hierarchy in a dimension is not created to show Levels History Parents Parallel relationship

Break off the fast Similar to slowly

changing attributes into changing dimension Similar to slowly changing
How can a fast changing dimension be handled? separate dimensions type 2 dimension type 3 None of the above
How can one navigate from one report to another Drill Down Drill Through Drill Up Cascading Prompts
How do you define a Valid Value for an attribute? By defining allowable Allowing any Allowing any alphanumeric All of the above
data value(s) for a Numeric value value
specified data element.
How do you define an Orphan Entity? An entity that has one to An entity in a An entity that has many to None of the above
one relationship with Logical Data Model many relationship with
another entity that has no another entity
relationship to any
other entity.

How do you define the below scenario/action in physical data By Using Cascade By Using Restrict By Using Set Null By Using Set Default
model ? option option

Scenario/action: Each time an instance in the parent entity is

deleted, the foreign key
attribute(s) in each related instance in the child entity are set to

How do you define the below scenario/action in physical data By Using Cascade By Using Restrict By Using Set Null By Using Set Default
model ? option option

Scenario/action: Each time an instance in the parent entity is

deleted, the foreign
key attribute(s) in each related instance in the child entity are set
to the
specified default value.

How do you define the below scenario/action in physical data By Using Cascade By Using Restrict By Using Set Null By Using Set Default
model? option option

Scenario/action: Deletion of an instance in the parent entity is

prohibited if there are one or more related instances in the child

How do you define the below scenario/action in physical data By Using Cascade By Using Restrict By Using Set Null By Using Set Default
model? option option

Scenario/action: Each time an instance in the parent entity is

deleted, each related instance in the child entity must also be

How do you NOT minimize locking problems caused by Perform all error Keep transactions as Do not prompt for user Avoid recursive nested
uncommitted transactions? handling outside short as possible input within a transaction transactions

How do you resolve Many-to-Many relations in the logical by adding one more by adding one more by removing one entity none of the above
design? orphan entity relation from the model

How do you resolve Many-to-Many relations in the logical by adding one by adding one more by removing one entity All of the above
design? intermediate entity. relation from the model

How do you resolve One-to-One relationships while doing the by merging both the by removing one by adding one more entity All of the above
logical design ? entities as one entity entity
without loosing any

How many codd rules your Application DB must satisfy to be Atleast 12 atleast 14 Atlest 10 none of the above
implemented in production environmet?

Add time period as a Add time period as Add time period as a

How to handle time period attribute for Time dependent data normal nullable attribute part of Primary Key normal non-nullable
pattern? in an entity in an entity attribute in an entity None of these
Identify the statement that is NOT TRUE related to 'Confirmed Drilling across is All client data marts All client data marts Is not an amalgamation
dimension'. allowed in a distributed deploying the removing aggregates and distillation of data
data warehouse, and dimension affected by changes in the from several legacy
avoids the need to have simultaneously so dimension, and systems and possibly
it centralized. that any end only make these aggregates outside sources.
user drilling across available to the end users
these data marts when they have been made
will be using a completely consistent with
consistent set of the base fact tables and the
dimension new rollup logic.
Identify the statement that is NOT TRUE related to Fact tables Fact tables always have a Fact tables contain Fact tables can consist of is a data element that
multipart key, in which the numeric, nothing but keys categorizes each item in a
each component of the additive fields that data set into non-
key joins to a single are best thought of overlapping regions.
dimension table as the
measurements of
the business

Identify the statement that is NOT TRUE related to 'Online Many Small Up-to-date data Uniformed spikes of Historical Data of 5 years
Transaction Processing(OLTP)'. Transactions utilization of resources is maintained here

Identify the statement that is NOT TRUE related to 'Services Interoperability between Desire to create a provides a design Can connect,
Oriented Architecture(SOA)'. different systems and federation of framework for realizing communicate and
programming languages resources. Establish rapid and low-cost system exchange information
provides the basis for and maintain data development and within a domain and
integration between flow to a federated improving total system works isolated
applications on different data warehouse quality
platforms through a

Identify Type of Fact? View Table Additive Materialized View

Identifying a primary key for a table is in 2NF 3NF BCNF None of the above
If a Report A from 3 months back has to return the exact same Just save the reports Use Type 1 Use Type 2 Dimensions Dont worry about the
results everytime you run it, we should Dimensions dimensions at all as long
as the facts dont change

If an attribute A is related to the primary key of the table through Partial Dependency Functional Transitive Dependency None of the above
attribute B, it is called as Dependency

If an entity is related to itself through different roles, it is an Role Based Association Recursive Hierarchy Recursive Network Association
Example of

If columns in a relational table are not repeating group or arrays

then the table is in first normal form second normal form third normal form 4th normal form
IF I want to store true / false in sql values from my frontend Char Varchar Bit Int
which datatype should I use at the best level interms of minimum

If the number of dimensions for a fact table increases then the Increases Decreases Neither increases nor there is insuffcient
number of records in the fact table decreases information to answer
this question

If we decide to place a dimensional attribute as a non-key Degenerate

attribute in a Fact table, what is it called? Semi-additive Measure Dimension Fully Additive measure None of the choices

If we need to capture only the latest state of a Transaction(e.g.

Order Fulfillment) in a Fact table at any time and if we update the Transaction Grain
Fact table rows to achieve this, what type of Fact table is this? Periodic Snapshot Fact Factless Fact Accumulating Snapshot

If you are going for New Fact Tables for Aggregates, What are the DIMENSION LOST DIMENSION SHRUNKEN DIMENSION
Strategies that can be followed AGGREGATES AGGREGATES AGGREGATES All the above

If you split different levels of a dimension table further into

multiple parent-child relationship tables, what is this scenario
called? ER Model Snowflaking Star Schema Additive Measure
If you want to know details about a slowly changing dimension Type 1 SCD Type 2 SCD Type 3 SCD both b and c
just before the most recent change you could use

In 4 step dimensional process, declaring grain of business process First Step Second Step Third Step Fourth Step

In a BI Environment what best approach would you take to Folder Access Build Separate Database Locking Security Filters
control the access so as one Regional Manager does not see the Reports for Every
others data Regional Manager
In a Star Schema, if we want to track only the history of only the
last change in a dimensional attribute value , what type of slowly
changing dimension do we need to design? Type-1 Type-2 Type-3 Type-4
In a systems development methodology, the following graphical Data model Process model Environment interaction All of the above
model should be produced: model

In an OLTP system that performs many updates, by adding By expanding result sets By increasing the By increasing the number of By increasing network
duplicate columns, how can denormalization sometimes hurt required number of rows that must be updated congestion
performance? joins for many in a single transaction

In comparing ERD's to relational database diagrams, which of the Both notations give Both notations show Both notations show none of the above
following statements is true: names to relationships foreign keys minimum and maximum

In Snowflake Schema , the dimension tables are in 1NF 2NF 3NF denormalized
In Star Schema Dimension tables are Short and Fat Long and Thin Long and Fat Short and thin
In the relational database terminology, a table is synonymous A column A row An attribute A relation

In which model do you define a Database Surrogate Key? Physical Data Model Logical Data Model Conceptual Data Model All of the above

In which model do you define a Database View object? Conceptual Data Model Logical Data Model Physical Data Model None of the above

In which model do you define database partitioning strategy? Conceptual Model Logical Model Physical Model None of the above

In which normal form we remove non-key attributes that are

partially dependent on the primary key. 1 NF 3 NF 2 NF BCF
In which of these scenarios snowflake schema is not used? Dimension is very Improve the Storing the information in reducing the redundancy
sparse performance of same dimension to result in in the dimension table
query in the data duplication of records

In which type of SCD(Slowly changing dimensions) do we Type One Type Two Type Three None of above
preserve history of data:

Information stored in summarized form is also called as normalized aggregation granular detail
Inmon and kimbal differ mainly on Definition of dimensions Concept of a Data Degree of normalization of All of the above
and facts Warehouse a Data Warehouse

KPI can be found in Dimension Fact Star schema Master data

Managing data security involves Data Classification Encryption Data Governance all of the above
Many-to-Many relationship are resovled using which of the Creating a new entity Minimum points of Primary key of the All of the above.
following type and transforming cardinality on the M association will be
the single M:M to M relationship composed, at minimum,
relationship into two will flip for the with the primary Key from
1:M relationship association the original entities as PK

1 0
Modeling Concept will differ from Data Mart to Data Warehouse
Move attributes that are not functionally dependent on the entire 1NF 2NF 3NF BCNF
primary key to their own entity type. This happens in which
normal form?

Normalization is extensively used in traditional Data WareHouse 1 0 Can't Say

Object Data Models are : Conceptual Data Models Logical Data Models Physical Data Models Higher level data model
similar to conceptual
data models

OLAP tools are read-only 1 FALSE

OLTP databases are _____ normalized than databases intended Less More Similarly Not
for OLAP use

One method of managing the history in dimension tables is to 1 0

drop the dimension and rebuild the table from scratch.

Order-Sales relationship is SuperType-Sub Type Recursive Dependency Transaction


Phantom read: Occurs when new data appears between two read 1 0
PreCalculating 'All' Data in the MOLAP cube primarily depends The Business Database Size Server Disk Space Number of concurrent
on the Requirements Users

Primary Key are identified in which form 1NF 2NF 3NF 4NF
Profit Margin is a example of ______ type of fact. Fully Additive Semi Additive Non Additive None of the above.
Recursive Hierarchy has ____ type of relationship 1:M M:M either 1:M or M:M Both 1:M and M:M
Recursive Network has ____ type of relationship 1:M M:M either 1:M or M:M Both 1:M and M:M
Refer the below Table structures and specify what is the Optional Non-Identifying Identifying None of the above
relationship between Account to PersonAccount

Account (AccountID, AccountNum, AccountTypeID), AccountID

is PK
PersonAccount (AccountPersonSequence, PersonID, AccountID,
Balance), (AccountPersonSequence) is PK.

Refer to the below Table structures and specify what is the Optional Non-Identifying Identifying None of the above
relationship between Account to PersonAccount .

Account (AccountID, AccountNum, AccountTypeID), AccountID

is PK
PersonAccount (AccountID, PersonID, Balance), (AccountID,
PersonID) is PK.

Referential integrity ensures that rows cannot be deleted, table contains a column contains a column doesnt contain
which are used by other duplicate records particular value null values

Removing Partial Dependencies is a step towards getting to 1NF 2NF 3NF BCNF

Sequence of jobs to load data in to warehouse First load data into fact First load data into First Aggregates then load Does not matter if we
tables then dimension dimension tables, data into dimension tables, load either of fact,
tables, then Aggregates then fact tables, then then fact tables dimensions, or
if any Aggregates if any aggregates

Current info & prior Current info & all prior

Slowly changing dimension of Type 1 contains No History information info history Only Version Flag

Current info & prior Current info & all prior

Slowly changing dimension of Type 2 contains No History information info history Only Version Flag

Current and prior

value(s) of an
attribute in the same History information in
Slowly changing dimension of Type 3 maintains No History information record separate records Only Version Flag
Snowflaking means Normalizing the data Denormalizing the None of Above

Specialization in ER Modeling is a : Process of defining a Process of defining a Process of defining a set of None of the above
generalized entity type set of superclass of subclasses of an entity type
from a given entity type an entity type

Summary data cannot be combined with detailed fact data. 1 0

Table partitioning splits the storage of a table into smaller 1 0
individual units.

Tables that store "What I want to know" information are called Fact Tables Dimension Tables All of the above None of the above

The Conceptual, Logical and Physical Model are ________ each Dependant on Independent of None of these

The Dimension is normally in 1st Normal form 2nd Normal form 3rd Normal form not Normalized at all

The dimension tables which can be shared across multiple fact Slowly changing Conformed
tables seamlessly are called as: Dimension Dimensions Degenerate Dimensions Snowflake dimensions
The Fact is normally in 1st Normal form 2nd Normal form 3rd Normal form not Normalized at all
The following is an example of recursive relationship Account-Saving Account Customer- Employee-Manager all of the above
The following is true of three-tier data warehouses: Once created, the data Once created, the The data marts are different A data mart becomes a
marts will keep on being data marts will groups of tables in the data data warehouse when it
updated from the data directly receive their warehouse reaches a critical size
warehouse at periodic new data from the
times operational

The following technology is not well-suited for data mining: Expert system Data visualization Technology limited to Parallel architecture
technology specific data types such as
numeric data types

The level of granularity you choose for the time dimension has no 1 0
significant impact on the size of your database.

The most commonly used data warehousing tool is from IBM TeraData Computer Associates Sybase
The primary key of an entity type can be: Directly derived Borrowed Inherited All of the above

The process of creating an entity to store common attributes of

two or more entities is called ------------. Generalisation Inheritence Abstraction Normalisation
The process of finding hidden patterns and relationships in the Data Mining Data Profiling Data Filtering Data Sanitizing
data is called

The property of data elements which indicates the number of Data Cardinality Fast Changing Data Repeatability Data Rationality
allowable entries in that element is called Property

The property that distinguishes DWH with ODS ________ Subject Oriented Historical Non-Volatile b and c

The property that distinguishes ODS with OLTP ________ Subject Oriented Historical Non-Volatile Integrated
The rule that prohibits transitive dependencies is third normal form first normal form second normal form None of the Above
The rule that requires that each non-key field (attribute) should be Third Normal Form First Normal Form Second Normal Form None of the Above
fully functionally dependent on the primary key is

The rule that specifies that there should be no repeating fields and third normal form second normal form first normal form None of the Above
that fields should be atomic is

The Table Student_Info having the following columns 3rd NF 2ndNF 1NF None of these
Student ID, Student, Company, and Company Phone Number,
the table is not in _______ Form

The Union of a table of N rows and of a table of M rows (M<=N) M+N A number in the N A number in the range 0
has the following number of rows: range N to M+N to M

There is no need to include a time dimension in the data 1 0


To capture changes to dimension , which type is suitable if

previous data need not be stored. SCD1 SCD2 SCD3 None of the above
To improve performance, all tables in the data warehouse should 1 0
be indexed.

True or False A table in 3NF is almost always in 2NF 1 0

Type of Slowly changing dimension that overwrites the data SCD-1 SCD-2 SCD-3 All of the above

Unique Constraint enforces single number value to single character to multiple values in set of uniqueness of the values
be entered be entered columns in a set of columns

User-Defined Integrity enforces null constraints some specific check contraints entity integrity

Vertical slicing of the table is called Union Selection Join None of the above
What are Default Values in ERWIN? The phyical value a The logical value a Default Values are None of the above
column is defaulted to column is defaulted associated with entities in
to logical design
What are helper tables? A degenerate dimension It is a dimension is a It is a dimension that means It is a table placed
(DD) acts as a dimension convenient the same thing with every between a fact and a
key in the fact table, grouping of flags possible fact table to which dimension table or
however does not join to and indicators. it can be joined between two dimension
a tables so that the
corresponding dimensions can become
dimension table because multivalued, many to
all its interesting many (M;M)
attributes have already relationships can be
been placed in resolved.
other analytic

What are key feature of Snowflake Model? Fact Table Look-Up Table Dimension Table All of the above.
What are the benefits of Association relationships? Optimization Performance Tracking Recognition
What are the objectives of normalization? minimization of data minimization of I/O enforcement of referential All of the above
redundancy by reduction of integrity
transaction sizes

What are the requirements of a goos data modeling tool? Reverse Engineering Forward Source to target Mapping All of the above.

What are the two approach of Time-Dependent Patterns Data and Frequency Data and Frequency and dependency Frequency and time

What do Domains do in ERWIN? A group of predefined Can be saved, All of the above
logical and physical selected, and then
property characteristics attached to
attributes and

What do Model Source represent in ERWIN? The physical database The logical design The conceptual design the None of the above
the model is for the model is for model is for

What do you mean by Dependency of Entity? Entity is dependent or Entity is Entity is dependent on other None of the above.
independent of other Independent of entity.
entity. other entity.

What does database locking prevent? Triggers from firing Deadlocks Unauthorized access to Data over-write
columns and tables corruption

What information do dimension tables represent? Hierarchical Categorical either A or B Both A & B
What is a conformed dimension? It is a dimension that It is dimension is a It is a table placed between a A degenerate dimension
means the same thing convenient fact and a dimension table (DD) acts as a dimension
with every possible fact grouping of flags or between two dimension key in the fact table,
table to which it can be and indicators. tables so that the however does not join to
joined dimensions can become a
multivalued. corresponding
dimension table because
all its interesting
attributes have already
been placed in
other analytic

What is a 'Degenerate' dimension? A dimensional attribute A fact table that A dimension table that None of the above
embedded in a fact table stores only events contains embedded fact
what is a junk dimension? It is a table placed A degenerate It is a dimension is a It is a dimension that
between a fact and a dimension (DD) acts convenient grouping of means the same thing
dimension table or as a dimension key flags and indicators. with every possible fact
between two dimension in the fact table, table to which it can be
tables so that the however does not joined
dimensions can become join to a
multivalued. corresponding
dimension table
because all its
interesting attributes
have already been
placed in
other analytic

Insert a new row and Correct an existing Add one or more

What is a type-2 change? update the existing row row Delete a row columns
What is Identifying Relationship? A child table can be A child table cannot All of the above None of the above
uniquely identified be uniquely
without the parent table identified without
the parent table

What is most often used to enhance performance with

Dimensional Modelling? Materialized Views Indices Hash Tables Fact Tables
What is Non-Identifying Relationship? A child can be identified A child table cannot All of the above None of the above
independently of the be uniquely
parent identified without
the parent

Helps in planning Helps to implement

Ensures understanding Database Segmentin the data model Referential Integrity
What is NOT a benefit of Dependency pattern? of the business rules implementation into chunks for a prototype constraints

Low cardinality
attributes are moved to Further
new sub-dimension normalization of the
What is NOT a characteristic of Snow flake model? tables Star schema model Lowers redundancy Flat dimension table

Enables slicing and

Descriptions of the Maintains facts about the dicing by different
What is NOT the characteristic of Dimension table? business Constant business variables

What is the basis for Business Analyst to write the Business ETL capabilities and Capabilities and
Rules ? limitations limitations ETL Team capabilities None

To implement Management
What is the best practice to handle changes in the requirements immediately Process Out of Scope Different Iteration
What is the cardinality ratio for a binary relationship of type M:N One or more More than One Zero or more Infinite

Underlying fact Transformation rule to

Fact occurs in more than definition is compute factual measure in
What is the characteristic of Conformed Fact? one location common identical All of these

What is the characteristic of Fact table? Basis for analysis Continously valued Can be derived or calculated All of these
What is the main goal of de-normalization? Performance To make developers To reduce the storage space None of the above
Improvement job easy

What is the meant by fact table 'grain'? The most detailed level The most 'granular' 'Grains' of transaction in the None of the above
of transaction captured data that is captured source system
in the fact table in the
What is the primary goal of denormalization? To provide summary To retrieve a To provide faster access of To develop smaller
data to the client front- summary listing of useful data to the end user indexes
end interface the table structure

What is the primary objective of dimensional modeling? remove redundancy in optimizing facilitate retrieval of None of the above
the data query performance individual transaction

What is the purpose of ModelMart in ERWIN? Allows centralizid Allows centralizid Stores a database model None of the above
sharing of entities sharing of models

Grouping &
What is the usage of Dimensional attributes in queries? Data Filtering Aggregation Both of these None of these
What is true about cardinality in ER diagram? Designate the Designate the A&B None of the above
relationship as relationship as
mandatory if every child optional if a child
must have a parent can exist without a

What is true about mapping a conceptual model to a logical Defining entities and Linking entities A&B None of the above
model? identifying Primary with relationships
Keys and other
Attributes for each entity

What is true about Redundancy in ER diagram? Do not create a Create a relationship A & B None of the above
relationship that is whose foreign key is
redundant with or identical to the
implied by another primary key or a
relationship or series of subset of another
relationships foreign key

What is true about Subtype Relationship? Is a way to group a set of To take care of A&B None of the above
entities that share inheritance
common characteristics. hierarchy

What is true for Domain-Based Association? When Attribute can take When attribute can Domain-Based association All of the above.
multiple values for a take single value for pattern is a special use of an
single occurance of an a single occurance association pattern where
entity type. of an enity type. none of the relationhship is
a domain pattern

What is true of the multidimensional model? It typically requires less It typically requires Typical business queries Increasing the size of a
disk storage more disk storage requiring aggregate dimension is difficult
functions take more time

What kind of relationship is possible between Super type - Sub

type entities? one to many many to one one to one optional one to one mandatory
What may be the result of over normalization? It will improve database It may degrade No impact on performance None of the above
performance database

What problem you may encounter if you have many to many You may encounter You may not be able No problem in having many None of the above
relationship in physical model? performance problems to enter data into to many relationship
them with out

What type of measure will 'Units on Hand' be classified if it is Fully Additive

associated with Time dimension? Semi-additive Measure Measure Non-additive Measure None of the choices

A grouping of entities share

Header / details data common characteristics and
When can Super type - Sub type data pattern be used? structure Snowflaking also has some unique ones None of these
When choosing a level of summarization, there are two 1 0
approaches: summarizing the entire dimension, or summarizing
part of the dimension and partially improving performance
Attributes of a
A dimension table dimension are being
contains information at populated by To handle fast changing
When should snowflaking NOT be used? different grains different sources dimensions Choice A and C
When the referential integrity rule is enforced, which one is Do not allow the Accept the deletion Delete the related rows Set the foreign keys of
usually not a valid action in response to the deletion of a row that deletion without any other related rows to null
contains a primary key value referenced elsewhere? action

When transforming a Logical Model to a Physical model what Dimensional Modeling Normalization Denormalization None of the above.
technique is used

Which data pattern advocates the usage of Header/ Details data

structure? Association Transaction Domain Depedency

Which data pattern allows the occurrence of multi-valued Domain based

attributes? Association Dependency Domain Association
Which data pattern supports history data maintenance? Recursive Hierarchy Association Role Based Association Time dependent data

Which data pattern supports multiple relationships between two

entities? Recursive Hierarchy Association Role Based Association Super type - sub type

Which Dimension can attach to multiple facts ? Pseudo Dimension Junk Dimension Derived Dimension Table Confirmed Dimension

Attribute should
Attribute should be have finite set of
Which is a characteristic of Domain pattern? mandatory values Ensures referential integrity All of these
Which is a common application of Recursive Hierarchy? General Ledger Organizational Medical procedures A and B

Employee managing Customer holding Ordering multiple products

Which is an example of Recursive Hierarchy? other employees multiple accounts at the same time None of these
Which is NOT an example of Fact Table? Revenue Time Gross Margin Cost
Which is NOT true for Normalization? Normalization can Normalization Normalization ensures that Normalization verifies
validate the accuracy of ensures that entity types contain data structural correctness.
a model in reflecting attributes are about only one thing.
business requirement. allocated to the
correct entity type.

Which is the correct order of some of the stages of the Storage, acquisition, Acquisition, storage, Dissemination, usage, Storage, dissemination,
information life cycle? dissemination, usage dissemination, storage, acquisition acquisition, usage

Which is the most normalized structure within a star schema? Fact Table Dimension Table Both A & B None
Which is true about Logical and Physical Modelling? Logical Modelling is Phsical Model is All of the above None of the above
independent of Type of depending on type
Database of database

Which normal form is used for most data model development? 1NF 2NF 3NF 4NF

Which normalization form recommend: "Eliminate Columns Not

Dependent On Key"? 1NF 2NF 3NF 4NF

Captures many-to-
many relationships
between dimension
Which of following describes a Factless fact table? Tracks events tables Stores no factual measures All of the above

Views of the same

Which of the below is true for Role Playing Dimensions? Same grain table Different roles in a fact All of the above
Which of the following are examples of dimensions? Location Product Time All of the above

Urgency of data extraction

Which of the following are part of the nine decision points for Historical duration and loading into
dimensional modeling? Grain of each fact table of the database datawarehouse All of the above
Which of the following data model is used for creating Database Conceptual Model Logical Model Physical Model None of the above
Objects ?

Which of the following is an advantage of view design and It works better for large It works better for It allows omitting logical It allows omitting
integration over unique conceptual design? projects small projects database design physical database design
Which of the following is an example of factless fact? Class attendance Sales Purchase Inventory levels
Which of the following is associated with physical database Maintainability Scalability Performance All of the above

Which of the following is not an advantage of star-schema Have symmetrical entry Can be easily Have a low-redundancy Have a high performance
modelling? points to the fact table extended to
from each dimension accommodate new

Which of the following is not associated with logical design? Weak Relationship Cardinality of the Multiplicity of the All of the above
relationship relationship

Which of the following is not characteristic of Conformed facts Same names across all Same definitiosn Same formulas used for None of the above
fact tables across all fact tables calculation

Which of the following is not true about dimensional modeling? Optimized for retrieval Maximize Remove the redundancy of helps historical tracking
understandability data of information

Which of the following is NOT TRUE regarding relationships' One-to-One relationship One-to-Many Many-to-Many None of the above
implementation in database design? can be implemented as a relationships are relationships are
single table and rarely as implemented by implemented using a
two tables with primary splitting the data junction table with the keys
and foreign key into two tables with from both the tables
relationships primary key and forming the composite
foreign key primary key of the junction
relationships table

Which of the following is the name of a table containing certain conformed dimension helper tables junkdimension mini dimension
groups of attributes from a dimension table

Which of the following statements does not apply to relational Relational databases are Tables are one of the Relational databases have a Relational databases have
databases? simple to understand basic components of strong procedural a strong mathematical
relational databases orientation foundation

Which of the following statements is true? The fact table of a data The fact table of a A fact table describes the A fact table describes the
warehouse is the main data warehouse is granularity of data held in a transactions stored in a
store of descriptions of the main store of all DWH DWH
the transactions stored of the recorded
in a DWH transactions over

Which of the following symbol represents a Cross-Join in p s S C

relational algebra ?

Which of the following symbol represents a projection in p s S C

relational algebra ?

Which of the following symbol represents a selection in relational p s S C

algebra ?

Which of the notation(s) most widely used in database IDEF1X Notation IE Notation A&B None of the above

Which one of the following is an example of additive measure? price of a product quantity sold inventory account balances

Which one of the following is an example of non-additive price of a product inventory quantity sold Room temprature
measure? level

Which one of the following is an example of semi-additive account balances quantity sold dollars sold None of the above

Which one of the following is NOT an advantage of placing an It simplifies It maximizes It reduces downtime caused It prevents deadlocks
RDBMS on a dedicated server? performance analysis configuration by co-located applications

Which type of table is the best candidate to be cached? Small table rarely Large table rarely Small table frequently Large table frequently
retrieved with a full retrieved with a full retrieved with a full table retrieved with a full table
table scan table scan scan scan

Why is denormalization beneficial to read operations? Indexes are sorted. Disk I/O is reduced. complex joins is avoided Easy Data flow

You are in the process of deciding the indexes required for your Physical design Logical design Optimization plan Fall back plan
application DB.
This process belong to which of the following phase ?
You are involved in a BI tool selection process and one of the Warning on Invalidation Ability to write from Ability to Import Data from Data Security
Requirements is for Write back or Data Entry Spreadsheets Flat Files
What is the feature that is most important

Select the One that you think is most important

You do not need to be concerned with maintaining the history of 1 0

changing data in the dimension tables.

You have a RDBMS running on the server. Performance is a Partitioning the tables Normalizing the Denormalizing the tables Defraging the tables
critical factor tables
Referring to the above scenario, doing which one of the following
allows you to reference as few tables as possible in the query?

You need to create an index on the SALES table, which is 10 GB in bitmap unique partitioned reverse Key
size. You want your index to be spread across many tablespaces,
decreasing contention for index lookup, and increasing scalability
and manageability.Which type of index would be best for this

What is the use of Roles? LINK ONE DATABASE STATIC PRIVILEGE SELECTIVE None of the above

Advantages of capturing change data with Change Data Capture: COST COMPLETENESS INTERFACE All of the above

An INSERT statement failed and is rolled back. What does this Transaction rollback Insert recovery Read consistency Transaction recovery

Can we drop all literal values from the value list describing the No Yes Yes, we can use ALTER None of the above
partition. TABLE ... DROP
PARTITION statement

Column is defined as NUMBER(4,2). What will be result, when a Exceeds precision 123.45 123.4 123.5
row is inserted with 123.45 as column value

create sequence seq1; 1 compile error use "select seq1.nextval into runs successfully
a from dual"
a number;
a := seq1.nextval;
will is the result?

distinguish between case and decode case can be used decode can be used In "case"operation we can None of the above
whereever decode is whereever case is only use equal operation
used used and in "decode" we can use
all relational opeations.

Does export & import utilities supports TABLESPACE mode? No Yes

Dynamic SQL enables you to build SQL statements dynamically compile time build time run time load time
at which time?

EMPNO EMPNAME SALARY NULL, 1000 0, 1000 NULL, NULL 200, 1000
100 KING 1000.00
200 STEVE 500.00
250 CLARK 200.00
290 JONES 800.00
What is the output of the following query?

Examine the structure of the EMPLOYEES table: INSERT INTO INSERT INTO INSERT INTO INSERT INTO employees
EMPLOYEE_ID NUMBER Primary Key employees employees( first_na employees( first_name, VALUES ( NULL,
FIRST_NAME VARCHAR2(25) (employee_id, me, last_name, employee_id) John,Smith);
LAST_NAME VARCHAR2(25) first_name, last_name)VALUES( VALUES ( 1000, John,
Which statement inserts a row into the table? last_name)VALUES John,Smith); Smith);
( 1000, John,);
Explain UNION ALL? result set of two or more result set of first common result set of both distinct result set of two
queries including query "-" resultset query; queries.
duplicates of second query

for c1 in (select * from emp) c1 is an explicit cursor c1 is an implicit all the above None of the above

For which single-column index, compression feature is not Unique Index Non-Unique Index A and B None

How do you obtain LOCKS on database tables Execute a LOCK TABLE Use a FOR UPDATE Execute a LOCK A&B
command clause along with DATABASE statement
SELECT statement

How does one get the value of a sequence into a PL/SQL variable? select select NEXTVAL(i) select select CURVAL(i) into :i
sq_sequence.CURVAL into :i from dual; sq_sequence.NEXTVAL into from dual;
into :i from dual; :i from dual;

How many times a statement should be parsed in a well-tuned n-1 1 n n+1

system if the statement has been executed n times?

How to enforce uniqueness on Nonunique Indexes? Create UNIQUE Create PRIMARY It is not possible. A and B
constraints on index KEY constraints on
column. index column.

If an exception occurs during bulk bind, the successful DML Implicitly rolled back Are not rolled back Control jumps to the Both B & C
operations are exception block incase of
missing SAVE

In pl/sql code how to get the very recent error code and message sql_code, sqlcode and sqlerrm err_code, error_msg None of the above

In replication environment, what materialized view(s) will be primary key, rowid, rowid materialized subquery materialized None of the above
commonly created? object, and subquery views only views only
materialized views.

In which range, Optimizer estimates selectivity? Between 0 and 1 Between 0 and 100 Any Positive Number None

In which table does Oracle holds the explain plan statistics EXPLAIN_PLAN v$EXPLAIN_PLAN PLAN_TABLE EXPLAIN_SQL

Is it possible to load REF Fields and VARRAYs data using 1 0


Mutating table is a table that is currently dropped truncated modified by a DML Renamed

Partitions can be merged at the range partition level and range partition level Hash-partition level Index-partition level sub-partition level
subpartitions can be merged at the list at which level.

The predicted plan of the query can be determined V$SQL_PLAN V$SQL EXPLAIN_PLAN V$SQL_PLAN_STATISTI

The transactional control that prevents more than one user from LOCK COMMIT ROLLBACK SAVEPOINT
updating data in a table is which of the following

The value of which attribute of Implicit cursor is always false. %found %notfound %isopen %rowcount

we can declare objects as the formal parameters of functions and No Yes Both are different concepts. None of the above

What are the added advantages of Composite indexes over Improved selectivity Reduced I/O A and B None
single-column indexes?

What are the advantages of dynamic SQL Execute SQL statements Execute DDL and Create flexible applications All of the above
whose values are DCL inside PL/SQL
unknown until runtime blocks

Rule Based Cost Based A&B None of the above

What are the different approaches used by Optimizer in choosing
an execution plan?
What are the restrictions in dropping a column? never be dropped such never be dropped A&B None of the above
as columns that form such as columns
part of the partitioning that form part of the
key of a partitioned table primary key of an
What Is Interoperability? The ability of same The ability of same The ability of different None of the above
releases of the Oracle or different releases releases of the Oracle
Database to of the Oracle Database to communicate
communicate Database to and work together in a
communicate across distributed environment

What is Phantom read? A transaction rereads A transaction re- A transaction reads data None of the above
data it has previously runs a query that has been written by
read and finds that returning a set of another transaction that has
another committed rows that satisfies a not been committed yet.
transaction has modified search condition
or deleted the data and finds that
another committed
transaction has
inserted additional
rows that satisfy the

What is selectivity? number of distinct rows number of rows fraction of rows from a row All of the above
from a row set from a row set set

What is the main reason to create a reverse key index on a The column is populated The column The column is mainly used The column
column? using a sequence. contains many for value range scans. implementing an
different values. inverted list attribute.

What is the output of the following command is the current 24-APR-2008 24-MAR-2009 25-Mar-08 Exception Occurs
system date is 24-MAR-2008 00:00:00

What is the output of this query: Only 1st rows of the no rows selected Error 2 rows selected
Select * from table_name where rownum =1 table will display

What is the output of this query: Only 10th rows of the All 10 rows will be no rows selected 9 rows displayed
Select * from table_name where rownum =10 table will display displayed

What is the output of this query: Error 1,'A' 1, A None of the above
Select 1 from dual
Select 'A' from dual;

What is the result of the following query: Throws error Minimum 4 No rows are returned None of the above
SELECT COALESCE(NULL,NULL,NULL) from dual; parameters are

What operational requirements need not be considered before backup and recovery Downtime is Profit of DB migration Impact of changing the
migration strategy strategy required during the Project operational time window

What parameter must be set, when loading data into an existing ERRORS=Y IGNORE=Y DATA_ONLY=Y None of the above

What statistics will be collected when we set STATISTICS_LEVEL Timed operating system Segment level A&B None
= ALL? statistics statistics

What subqueries are used for row-by-row processing? CORRELATED INNER OUTER None of the above

What would be the output of the below query? PASS FAIL No output Error
select decode(substr('TECHNOLOGY',2,3),'CH','PASS','FAIL')
from dual;

What you need to specify if you want to drop the table and CASCADE DROP PURGE POOL
release the space associated with it in a single step

When does a check constraint enforce domain integrity? During inserts During delete During select During optimization
When you create, change or remove a database object, it is DML DDL DCL TCL
referred to as

Which data dictionary table should you query to view the object USER_SYS_PRIVS USER_TAB_PRIVS USER_COL_PRIVS USER_ROLE_PRIVS
privileges granted to the user on specific columns?

Which feature is not supported by Oracle? Adding a column using Modify existed drop a existed column using specify where the
alter table statement column using alter alter table statement column is to appear
table statement using alter table
Which function returns date without the time portion of the day TRUNCATE(DATE) TRUNC(DATE) TRUNC(DATE,'DD-MON- None of the above

Which function used as an if-then-else logic DECODE NVL CASE All of the above
Which grouping function is used to get the report of a cross tab CUBE ROLLUP TOP- N Query MERGE

Which Index scan is the scan of Non-prefix index columns? Index Range Scans Index Skip Scan Fast Full Index Scans Full Index Scans

Which Index scan optimizer does for UNIQUE or a PRIMARY Index Range Scans Full Index Scans Index Skip Scan Index Unique Scans
KEY constraint index?

Which Index scan optimizer does for UNIQUE or a PRIMARY Index Range Scans Full Index Scans Index Skip Scan Index Unique Scans
KEY constraint index?

Which is not a pseudocolumn ROWNUM DUAL CURRVAL NEXTVAL

Which is the hint instructs the optimizer to perform a full table FULL FULL_TABLE INDEX USE_NL
scan for the specified table?

Which is the hint instructs the optimizer to use direct-path CACHE NOCACHE APPEND NOAPPEND
INSERT if your database is running in serial mode?

Which of the following are Bulk Dynamic SQL statements BULK FETCH BULK EXECUTE FORALL All of the above

Which of the following are valid ones? Clauses are usually SQL statements are Keywords cannot be All of the above
placed on separate lines. not case sensitive. abbreviated or split
across lines.

Which of the following command is used for setting the ALTER SESSION SET ALTER SESSION ALTER SYSTEM SET None of the above
HH24:MI:SS; AT = HH24:MI:SS;

Which of the following Cursor attribute evaluates to NULL before %ISOPEN %FOUND %ROWCOUNT %NOTFOUND
the first fetch from an explicit Cursor

Which of the following data type is most suited for loop counter PLS_INTEGER NUMBER FLOAT INTEGER

Which of the following is a valid optimization hint statement /*+ INDEX_ASC(table /*+ /*+ INDEX(table index) */ All of the above
index) */ INDEX_COMBINE(
table index) */

Which of the following is an exception NO_DATA_FOUND ZERO_DIVIDE OTHERS All of the above
Which of the following is an invalid comparison condition ~= != ^= none of the above

Which of the following is not a GROUP BY function SUM STDDEV VARIANCE AVERAGE
Which of the following is not a valid data type? DATETIME TIMESTAMP(3) TIMESTAMP(6) TIME
Which of the following is not TRUE about Sequences CURRVAL is used to NEXTVAL is used to It is possible to access It is not possible to access
access sequence current access sequence next CURRVAL in a session CURRVAL in a session
value value before accessing the before accessing the

Which of the following is TRUE about ANY operator < ANY means more than > ANY means less = ANY' is equivalent to IN All of the above
the minimum than the minimum operator

Which of the following is TRUE about multitable insert statement Multitable insert can be A table collection Multitable insert cannot be All of the above
performed on tables, can be specifed in a performed on a remote table
views and materialized multitable insert

Which of the following is TRUE about using EXISTS and IN EXISTS is always faster IN is always faster We need to check the IN and EXISTS always
than IN than EXISTS cost/time of both and use costs the same
the one that executes fast

Which of the following is used to perform dynamic SQL EXECUTE IMMEDIATE IMMEDIATE DBMS_DYNAMIC EXECUTE DYNAMIC

Which of the following package is used to write operating system UTL_REF DBMS_UTILITY UTL_FILE None of the above
files from PL/SQL

Which of the following PL/SQL feature helps improve FORALL FOR Loop Cursor None of the above
performance of SQL statements run inside a PL/SQL loop

Which of the following provide a mechanism to instruct the SQL Optimizer Query Optimizer Hint Optimizer All of the above
optimizer to choose a certain query execution plan based on the
specific criteria

Which of the following SQL statement is used for creating and CREATE OBJECTS CREATE TYPE CREATE UDTYPE CREATE USERDEF
initializing objects
Which of the following symbol is used as a wildcard for a single * ? % _
character search

Which operator to use to return all distinct rows that are selected MINUS intersect union None of the above
by the first query but not by the second

Which optimizer mode is enabled by default starting with Oracle Rule based optimizer cost-based Based on the parameter set None of the above
Database 10g release 10.1? (RBO) optimizer (CBO) in init.ora file

Which option describes most appropriate difference between A table is only a mirror A VIEW is only a TABLEs and views are not All the above
view and table image of view mirror image of related to each other

Which option drops and recreates the package specification? ALTER REPLACE DROP None of the above

Which option is appropriate for Bit-Map Index? Suitable for low Efficient for queried It include rows that have All of the above
cardinality columns. with AND/OR. NULL values

Which option is most appropriate when Optimizer access 100% of Full Table Scan Index Scan Optimizer doesnt None
blocks to retrieve 10% of rows? influenced by the
percentage of blocks

Which Oracle lock(s) are valid? DML locks (data locks) DDL locks Internal locks and latches All the above
(dictionary locks)

Which Oracle supplied package allows automatic scheduling of DBMS_JOB DBMS_SQL DBMS_DDL UTL_HTTP
PL/SQL programs

Which Oracle supplied package allows use of dynamic values in DBMS_DDL DBMS_SQL DBMS_DML DBMS_SYN
PL/SQL block at runtime

Which point one should keep in mind while choosing keys to Consider indexing keys Do not use standard Do not index columns that All of the above
index? that are used frequently B-tree indexes on are modified frequently
in WHERE clauses keys with few
distinct values

Which SQL statement returns a numeric value? SELECT SELECT SELECT sysdate-hire_date SELECT
ire_Date), 6) FROM FROM EMP; + 7)FROM EMP;

Which statement(s) are valid? SET TRANSACTION SET SET TRANSACTION READ All the above

Which statement(s) are valid? Latches and internal A parse lock persists A & B None of the above
locks protect internal as long as the
database and memory associated SQL
structures statement remains
in the shared pool

Which statistics can be gathered by Oracle Optimizer? Table statistics System statistics Index statistics All of the above
Which tablespace serves as an auxiliary tablespace to the SYSTEM TEMP UNDO SYSAUX None of the above

Which two groups control database administrator connections OSDBA and OSOPER SYSDBA and A&B None of the above
when using operating system authentication? SYSOPER

While ordering a column in ASC order null values will appear First Last Middle Random Order

You have set optimizer_mode=ALL. What will be result of the improve throughput improve response favors full-table scans A&D
parameter setting? time

----------- can be used to monitor the performance of SQL Server Query Analyser Profiler system monitor Enterprise Manager
and non-SQL Server related components.

---------- operators describe the relational algebraic operation ans)logical binary unary physical
used to process a statement.

--------- is not a valid SQL Server join operation Nested loops Merge Hash ans)spool join
--------- is a method to improve the performace of disk activity in ans)Separating Keeping transaction Configuring the memory none
SQL Server. Transaction log files on log on RAID 5. for more data cache.
a storage device
physically separate from
devices that contain data
---------- indexes are very useful for retrieving ranges of data ans)Clustered Index Non clustered Index Range Index Heap Index
values from a table.

Row by row Processing of resutsets in SQL Server is possible ans)Cursors While Loop Stored Procedures Triggers

The __________ configuration option can be used to prevent long- query governor query optimizer None of the above All of the above
running queries from executing, thus preventing system
resources from being consumed.

SQL Server employs what types of join operations: Nested loops joins Merge joins Hash joins All of the above
In SQL Query Analyzer, you can also turn on the __________ graphical execution plan Query execution None of the above All of the above
option to view a graphical representation of how SQL Server plan
retrieves data.

If TABLOCK is not specified, the default locking uses row-level locks table-level locks All of the above None of the above

Index intersection allows the query processor to use multiple indexes Single index clustered index non clustrered
_____________ to solve a query

_____________ is a series of Transact-SQL statements stored in a script Trigger Stored Procedure Batches

Performance tuning targets at best utilising the following cache buffer Query Memory None of the above

Workload of a SQL Server is logged using SQL Profiler Index tuning Qizard Spooler None of the above

SQL Server creates and executes parallel plans using Cost Threshold for max degree of Parallelism None of the above
Parallelism Parallelism

Writing information onto a second set of drive is called as Mirroring Copying Moving None of the above
Best Data production provided by the RAID levels Raid 0 Raid 0+1 ans)Raid 0, Raid 0+1 Level 4
File group which contains the pages for all tables Default File group Primary File Group User Defined File Group None of the above

Number of Indexes may be reduced using Index Intersection Index Seeking Index finder None of the above
Excessive page splitting is revealed using DBCC SHOWCONTIG DBCC SHOW sp_executesql None of the above

Defragmenting Clustered and Non-Clustered Indexes is achieved DBCC INDEXDEFRAG DBCC SHOW sp_executesql None of the above

Re-building a single specified Index is done using DBCC DBREINDEX DBCC SHOW sp_executesql None of the above
Percentage of open space to leave on index and data pages is FILLFACTOR max degree of Parallelism None of the above
achieved by Parallelism

Hash join can only be used if there is one equality clause Two equality clause Three equality Clause None of the above

Count(*) returns the number of rows that match the search 1 0

conditions specified in the query without eliminating duplicates

USE pubs Group by with a Rows not meeting Group by with an aggregate The Where condition is
SELECT type, AVG(price) condition is not valid. the conditions in the is not valid. ignored and the result is
FROM titles WHERE clause are calculated.
WHERE advance > $5000 eliminated before
GROUP BY type. What does the following query do? any grouping is

What is the difference between HAVING clause and a WHERE Both are same WHERE search You cannot use a WHERE in none
clause in a GROUP BY statement? condition is applied GROUP BY.
before the grouping
operation occurs;
the HAVING search
condition is applied
after the grouping
operation occurs
USE pubs Groups the rows in the Finds the rows in This statement is not valid none
SELECT type titles table by type and the titles table where
FROM titles eliminates the groups atleast one row
GROUP BY type that include only one exists and groups
HAVING COUNT(*) > 1.What does the following query do? book. the table by type.

What will happen in a GROUP BY clause if the grouping column The null rows are It is invalid The row becomes a group in none
contains a null value? eliminated the results

CAST is based on SQL 92 Standard 1 0

To Create a User defined data type we use sp_addtype sp_addusertype sp_adduserdata none
Which data types generate inaccurate results if used with Float Real Integer a,b
an = OR <> comparison in a WHERE clause of a SQL

The nchar data type takes double the amount of bytes to save the 1 0
same amount of information as char datatype

SELECT CONVERT(char(10),GetDate(),101) Would return the date returns the tim returns date and time None
part of a given date stamp value

GetWorkingDays (StartDate, EndDate) when executed Would return the Not a valid function Would return error None
number of working days
between two dates

Used to upload data

For XML Clause is not a in SQL Server in Select data from SQL Server
What is the use of For XML clause in select statement valid select clause XML Format in XML format None of the above
SELECT TOP 1 salary Select TOP 6 Salary none
FROM (SELECT from EMP table
FROM employee
ORDER BY salary

How do I find the sixth highest salary from Employee table

You are a database developer for your company's SQL Server

2000 database. Critical queries from the users often join four
tables in a database. These tables are not updated frequently. Create a scalar user- Create a stored
defined function that procedure that Create a table-valued user-
You want to improve the response time of those critical queries. returns data from the returns data from defined function that Create an indexed view
What tables the tables returns data from the tables on the tables

CREATE VIEW CustomerAddress
Easton Design Corporation is creating a web-based application CustomerInfo AS SELECT * SELECT * FROM
collecting customer contact information. They need to create a CREATE VIEW CREATE VIEW FROM Customer INNER Address INNER JOIN
view to return rows from the Customer table and the associated CustomerInfo AS CustomerInfo AS JOIN Address ON Customer ON
Address table. Which of the following are valid view creation SELECT * FROM SELECT * from Customer.AddressID = Customer.AddressID =
scrip Customer Customer, Address A.AddressID Address.AddressID

Create a stored
Split the Sales table into procedure that requires a
You are a database developer for your company's SQL Server multiple tables so that each product code as a
2000 database. You are creating a query that allows users to table contains one product parameter
retrieve all records of sales for a particular product. code and build a partitioned Include WITH
For each product code, For each product view on the tables so that RECOMPILE when the
The company is now selling five different products. A product create one stored code, create one the data can still be viewed procedure is created
item may have 5 procedure view as a single table.
You have specified
the With Recompile
You have specified the option, which is
With Encryption option, causing additional You have forgotten to Your stored procedure
You have written a stored procedure that takes several which is causing overhead because specify the With Recompile cannot be helped. Stored
parameters and most of them are optional. There is a additional overhead the procedure has to option, which is causing an procedures werent
performance issue with this procedure. Every time you re-create because the procedure recompile a new inappropriate query plan to intended to handle
it, it works fast once, but rarely shows such speed on later calls. has to be decrypted each query plan every be used with subsequent complex conditional
What is the mos time it is run. time. runs. logic.

Which statement can be used to replace following select

select salary from empmaster where select top 1 salary from
salary > (select top 1 salary from empmaster order by salary ) empmaster where salary
and > (select min(salary) select top 2 salary from
salary < (select top 1 salary from empmaster where salary from empmaster) order select top1 salary empmaster order by salary
in(select top 3 salary fro by salary from empmaster asc none of the above

select top 1 salary from empmaster order by salary desc Which select min(salary) from select max(salary) select top1 salary from
query can be used to replace the above query empmaster from empmaster empmaster none of the above

select top 1 salary from empmaster order by salary asc select max(salary) from select top1 salary select min(salary) from
Which query can be used to replace the above query empmaster from empmaster empmaster none of the above

She has not been

A user finds herself unable to see the data in a table against which She has been denied granted Select
she is performing a Select query. Given the above scenario, which Select permission on the permission on the She has forgotten to use
one of the following does NOT describe a possible reason for this. table table There is no data in the table the Select ALL clause
CUBE is used in an Group By Clause Order by Clause If Clause None
Generate a resultset showing aggregates for a hierarchy of values Using Roll UP Using Cube Using Compute None
in selected columns

FOR XML Clause is valid in Update Statement Delete Statement Select Statement None
FOR XML can be used in Sub Queries 1 0
FOR XML can be used in a Select Statement while creating a View 1 0

SQL State of the ODBC API error message "Success" 11000 1000 1001 0000
SQL State for "Timeout Expired" is S1T00 11000 1000 1001
DBCC commands used to Check the consistency of Control the database perform cursor related create the database
the database copying functions

What is correct about timestamp datatype? 8 byte binary 8 byte date 16 byte date 16 byte binary
How will you display a '$' infront of sal column whose data type SELECT '$' + CAST(sal SELECT '$' + SELECT '$' + sal Both 1 & 2
FROM emp AR(10), sal)
FROM emp

Can we store Null Value in Bit Datatype No Yes Can store 0 or 1 None of the above
For which one of the contraints SQL Server doesn't create an Foreign Key Primary Key Unique Key None of these
index automatically

TOP 15 PERCENT will return top 15% of the result set Will not work Calculates 15% of the first none of these

What is the output of Thow an error because Generates a cross Generates the output empid None of the above
alias a and b are join out put because column from alias a and b
select a.empid,a.empname, b.empid pointing to same table alias a and b are along with the empname of
from empmaster a , empmaster b where a.empid=b.empid order pointing to same alias table a
by a.empid table

Which system table contains the definition of views,triggers and syscomments sysfiles sysmessages sysobjects
stored procedures?

How will you remove trailing and leading spaces ltrim(rtrim(fullname)) trim(fullname) replace(fullname,' ',' ') substring
If you need to make cascading deletes or updates Use triggers. specify ON DELETE Use user-defined functions Use table variables
clause in the
clause of the

How is commit managed in Distributed transactions Single Phase commit Two Phase Commit Three Phase Commit None of the above

View can be created against multiple tables , True or false 1 0

Which of the following cannot be included in the view creation The TOP clause. The GROUP BY The UNION clause. The ORDER BY clause.
statement? clause.

Create view Vw_abc as select * from empmaster order by 2; This statement will This statement will This statement will throw This statement will throw
execute successfully throw an error an error because of number an error because of
because of order by 2 in order by clause instead syntax error in the
clause of column name statement

How will you copy the tables and schemas from one sql server to using dts Using bcp using Insert Intoquery using Select * Into
another? query

Which of the following services have only single copy and SQL Server Services MS DTC service or SQL Server Agent None of the above
shared among the multiple instances of SQL Server running on Microsoft Search
the computer service

Tool that is used to help analyse queries and determine which SQL Query Analyser SQL Profiler Client Network Utility Server Network Utility
indexes to create?

___________ reliably chooses the most effective index in the SQL Query Analyser SQL Profiler Query Optimizer Index Tuning Wizard
majority of cases.

To avoid deadlock situation use of Cursor is not recommended 1 0

Which of the date fuction returns the number of days between DATEDIFF DATEPART DATEADD None of the above
two dates?

What is a cursor in SQL Server? Cursor is a System table Cursor is a looping Cursor is system stored Cursor is a conditional
in SQL Server mechanisam procedure operator in SQL Server
through a collection
of records.

What is the order of statements while using a cursor declare cursor declare cursor declare cursor declare cursor
open cursor fetch row from the open cursor open cursor
fetch row from the cursor fetch row from the cursor fetch row from the cursor
cursor open cursor close cursor close cursor
process fetched row process fetched row process fetched row deallocate cursor
close cursor close cursor deallocate cursor process fetched row
deallocate cursor deallocate cursor

What is the result of using a DELETE statement without a Only the first row in the All rows in the table The entire table is removed. An error is generated.
WHERE clause? table is deleted. are deleted, but not
the table itself.

How many Parameters we can pass for DateDiff Function. 4 2 3 None of the above
Cursors would improve performance of SQL queries Yes No
@@FETCH_STATUS=0 indicates Row fetched is missing. FETCH statement FETCH statement was None of the above
failed or the row successful.
was beyond the
result set.

Which of the following statement is more appropriate to handle A is correct B is correct C is correct All 3 statement are
null value in SQL Server correct
A) select * from empmaster where manager is NULL
B) select * from empmaster where manager = NULL
C) select * from empmaster where manager ='NULL'
select (select sum(salary) from empmaster)/(select count(salary) select sqrt(salary) from select max(salary) select min(salary) from select avg(salary) from
from empmaster) empmaster from empmaster empmaster empmaster
Which query can be used to replace the above query

What is the output of select dateadd( day , -2 , '25-Mar-2008') 2008-03-27 3/23/2008 2008-05-25 2008-01-25

Which will eliminate duplicate records Both will not eliminate Both Will eliminate Union will not eliminate Union will eliminate and
A) UNION Duplicate duplicate and Union All Will Union All will not
B) UNION ALL eliminate duplicate eliminate duplicate

How will you add a new error message? insert message into insert message into using sp_addmessage using raiseerror
sysmessages syscomments table

What is the purpose of @@rowcount Returns the number of Returns the number Returns the number of rows Returns the number of
rows affected by the last of rows affected by affected by the last select rows in a table
delete statement the last statement statement

Which of the following correctly demonstrates an update to the update customer set update view update customer set It's not possible to update
ClientName column of the Customer view? clientname = 'McBride' customer set clientname = 'McBride' with data using a view
clientname = view_option

Explicit transactions were also called user-defined or user- 1 0

specified transactions

What is the difference between COMMIT and ROLLBACK? Commit statement helps Commit statement Commit is used for update, None
in termination of the helps to select the ROLLBACK is used for
current transaction and current transaction DELETE
do all the changes that and do all the
occur in transaction changes that occur
persistent and this also in transaction
commits all the changes persistent and this
to the also commits all the
database.COMMIT we changes to the
can also use in store database.COMMIT
procedure. we can also use in
ROLLBACK do the same store procedure.
thing just t ROLLBACK helps
to delete the current

Select the one which is not part of Transaction properties Automicity Concurrency Isolation Durability
COMMIT TRANSACTION doesn't require any transaction_name 1 0

How do you execute a DTS package from the command prompt? dtsexecute rundts dtsrun exec dts

The bcp utility is installed by default to the : \Program Root directory \Program Files\Microsoft \Program
Files\Microsoft SQL SQL Server\80\ COM\Binn Files\Microsoft SQL
Server\80\Tools\Binn directory Server\80\Data

Which of the following is not used for data transfers ? Bulk Copy Program Data INSERT INTO ...SELECT * SELECT * FROM
Transformation FROM

When using BCP to transfer data out of a table, which of the Database users will not You must have Data changes made by other The contents of the data
following statements dont apply be able to access the SELECT users during the BCP will file are replaced if the
table because BCP will permissions on the not be reflected in the data data file already exists
lock it table file

------ is the best way to transfer data to and from SQL Server to IMP and EXP statements IMPORT AND DTS Package None of the above
FLAT file EXPORT utility

The fastest way to add large numbers of rows in SQL Server from BCP DTS SELECT INTO BULK INSERT
CSV file

----------is the creation and maintenance of multiple copies of the Database Co-relation Database Replicaton Database merge None of the above
same database

--------------------------------- is the system database which stores the TEMPDB MASTER MSDB MODEL
copy of the new database.
What is a partitioned view? A partitioned view joins A partitioned view A partitioned view joins All of the above
horizontally(same joins vertically(same both horizontally and
columns but different set no of rows but vertically partitioned data
of rows) partitioned data differennt set of from a set of member tables
from a set of member columns) across one or more servers
tables across one or partitioned data
more servers from a set of
member tables
across one or more

How will you find the object id of a table? by querying sysobjects by using sp_tables using object_id function Both 1 & 3

What is the extension of the database file in sql server? .ldf .mdf .sql .dat