Вы находитесь на странице: 1из 4

Cognizant-May-12th-2012

1.slice and dice


ans: 1.Slicing and dicing refers to the ability to combine and re-combine the dimensions to
see different slices of theinformation. Picture slicing a three-dimensional cube ofinformation, in order to see what values are contained inthe middle layer. Slicing and dicing a cube allows an end-user to do the same thing with multiple dimensions.

ans:2.slice and dice is to arrange the the data in differnt ways. it can chage as rows to columns and columns to rows.

2.cross tab
Ans:Tabular reports is a 2D format and most of the operational/formated reports will be created in tabular form.Cross tab reports is a 3D format and most of the analytical reports are created in the cross tab report form.

3.Dense rank function


Ans:The DENSE_RANK function computes the rank of a row in an
ordered group of rows.Rows with equal values for the ranking criteria receive the same rank. For eg. To Show the set of sales people who make the top 3 salaries - that is, find the set of distinct salary amounts, sort them, take the largest three, and give me everyone who makes one of those values. SELECT * FROM (

SELECT deptno, ename, sal, DENSE_RANK() OVER ( PARTITION BY deptno ORDER BY sal desc ) TopN FROM emp ) WHERE TopN <= 3 ORDER BY deptno, sal DESC / DEPTNO ENAME SAL TOPN ---------- ---------- ---------- ---------10 KING 5000 1 CLARK 2450 2 MILLER 1300 3 20 SCOTT 3000 1 <--- ! (in case of rank JONES will have 3 and dense rank will have 2) 1 <--- ! 2 3 1 2 3

FORD JONES ADAMS 30 BLAKE ALLEN 30 TURNER

3000 2975 1100 2850 1600 1500

2 ans: Dense Rank is used for assigning a precedence or rank to


each row in the result set relative to other rows in the result set.

4.traps
Ans:Chasm trap and Fan Traps are the loops which will occur
while ditecting loops. Examples of these are: Chasm Trap: Orders Customer < Sales When one dimention is having one to many relations with two diffrent facts then this loop will occur. To resolve this loop we have to use Context to chose the right path for the reports to avoid multiple SQL statements. Fan Tap: Customer -> orders -> orderlines.

When one customer dimention is having one to many relation with orders and then again orders is having one to many to relation with orderlines then the loop will occure. To resolve this we have to use aliase. Name the second table oreders with some other alias name then link with third table. Ensure to remove the link between 2nd and 3rd tables.

5.how to improve performance of a report 6.aggrigate awarencess


Ans:Aggregate awareness is a term that describes the ability of
a universe to make use of aggregate tables in a database. These are tables that contain pre-calculated data. You can use a function called @Aggregate_Aware in the Select statement for an object that directs a query to be run against aggregate tables rather than a table containing non aggregated data. Using aggregate tables speeds up the execution of queries, improving the performance of SQL transactions. The reliability and usefulness of aggregate awareness in a universe depends on the accuracy of the aggregate tables. They must be refreshed at the same time as all fact tables. A universe that has one or more objects with alternative definitions based on aggregate tables is said to be aggregate aware. These definitions correspond to levels of aggregation. For example, an object called Profit can be aggregated by month, by quarter, or by year. These objects are called aggregate objects. Queries built from a universe using aggregate objects return information aggregated to the appropriate level at optimal speed.

7.complex context 8.drill functions

Вам также может понравиться