









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










Lecture 09: OLAP www.cl.cam.ac.uk/Teaching/current/Databases/
2+ /* Microsoft SQL Server 2005 / / By the way, it is just VHVyaW5nIG1hY2hpbmU= :-) / WITH SubQuery(t, s, a, b) AS ( SELECT 0, 's', CAST ('<' AS VARCHAR(8000)), CAST ('110110' AS VARCHAR(8000)) UNION ALL SELECT t + 1, newS, CASE mv WHEN 'l' THEN SubString(curr.a, 1, Len(curr.a) - 1) WHEN 's' THEN SubString(curr.a, 1, Len(curr.a) - 1) + newZ WHEN 'r' THEN SubString(curr.a, 1, Len(curr.a) - 1) + newZ + Left(b + '_', 1) ELSE '?' END, CASE mv WHEN 'l' THEN newZ + b WHEN 's' THEN b WHEN 'r' THEN SubString(b, 2, ((Len(b)-1)+Abs(Len(b)-1))/2) ELSE '?' END FROM SubQuery AS curr, ( SELECT 's', '<', '1', '<', 'r' UNION ALL SELECT '1', '1', '1', '1', 'r' UNION ALL / find 0 / SELECT '1', '_', 'a', '0', 's' UNION ALL SELECT '1', '0', '2', '0', 's' UNION ALL SELECT '2', '0', '2', '0', 'r' UNION ALL / find 1; left / SELECT '2', '', 'a', '', 's' UNION ALL SELECT '2', '1', '3', '1', 'l' UNION ALL SELECT '3', '0', '4', '1', 's' UNION ALL / 0 - > 1 / SELECT '4', '1', '4', '1', 'r' UNION ALL / find 0 or ; left */ SELECT '4', '', '5', '_', 'l' UNION ALL SELECT '4', '0', '5', '0', 'l' UNION ALL SELECT '5', '1', '6', '0', 's' UNION ALL /* 1 - > 0 / SELECT '6', '1', '6', '1', 'l' UNION ALL / rewind / SELECT '6', '0', '6', '0', 'l' UNION ALL SELECT '6', '<', 's', '<', 's' / restart / ) AS prog(currS, currZ, newS, newZ, mv) WHERE curr.s = currS AND Right(curr.a, 1) = currZ ) SELECT CharIndex('0', a + b) - 2 FROM SubQuery WHERE s = 'a' OPTION (MAXRECURSION 0); / SELECT t, s, a + '.' + b FROM SubQuery OPTION (MAXRECURSION 0); */ David Srbecky
uzz Words Buzz Words Buzz Words Buzz W
OLTP vs. OLAP
xOLAP
Beware of Data Warehouse Death March Edward Yourdon, 1997, Death March: The Complete Software Developer’s Guide to Surviving “Mission Impossible Projects” Death March projects “use a forced march imposed upon relatively innocent victims, the outcome of which is usually a high casualty rate.” Data Warehouses and Decision Support systems are among the most complex and demanding in the IT world. Failure rates are very high….
Data warehousing ___Multidimensional Data Sales volume as a function of product, month, and region Product Dimensions: Product, Location, Time Month
A Sample Data Cube Total annual sales of TV in U.S.A. Date Country sum sum TV VCR PC 1Qtr 2Qtr^ 3Qtr (^) 4Qtr U.S.A Canada Mexico sum
Cuboids Corresponding to the Cube all product date^ country product,date product,country date, country product, date, country 0-D(apex) cuboid 1-D cuboids 2-D cuboids 3-D(base) cuboid
Multidimensional Data: A University Sample Data Cube Students‘ marks as a function of student , department , Average Mark of Abraham in Year 1. Module Time Avg Avg Abraham Caroline Bridget Business Computing Year 1 Year 2 Year 3 Avg
OLAP Operations