Академический Документы
Профессиональный Документы
Культура Документы
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.
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
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.