SlideShare a Scribd company logo
MSBI, Data Warehousing and 
Data Integration Techniques 
By 
Quontra Solutions 
Email : info@quontrasolutions.com 
Contact : 404-900-9988 
WebSite : www.quontrasolutions.com
Agenda 
What is BI? 
What is Data Warehousing? 
 Microsoft platform for BI applications 
 Data integration methods 
 T-SQL examples on data integration
What is BI? 
Business Intelligence is a collection of theories, 
algorithms, architectures, and technologies that 
transforms the raw data into the meaningful data in 
order to help users in strategic decision making in 
the interest of their business.
BI Case 
For example senior management of an industry 
can inspect sales revenue by products and/or 
departments, or by associated costs and incomes. 
BI technologies provide historical, current and 
predictive views of business operations. So, 
management can take some strategic or operation 
decision easily.
Typical BI Flow 
Data Sources 
Users 
Data Tools 
Data Warehouse 
Extraction
Why BI? 
By using BI, management can monitor objectives 
from high level, understand what is happening, 
why is happening and can take necessary steps 
why the objectives are not full filled. 
Objectives: 
1)Business Operations Reporting 
2)Forecasting 
3)Dashboard 
4)Multidimensional Analysis 
5)Finding correlation among different factors
What is Data warehousing? 
A data warehouse is a subject-oriented, 
integrated, time-variant and non-volatile 
collection of data in support of management's 
decision making process. 
- Bill Inmon 
A data warehouse is a copy of transaction data 
specifically structured for query and analysis. 
- Ralph Kimball
Dimensional Data Model 
Although it is a relational model but data would be 
stored differently in dimensional data model when 
compared to 3rd normal form. 
Dimension: A category of information. Ex. the time 
dimension. 
Attribute: A unique level within a dimension. Ex. Month is 
an attribute in the Time Dimension. 
Hierarchy: The specification of levels that represents 
relationship between different attributes within a 
dimension. Ex. one possible hierarchy in the Time 
dimension is Year → Quarter → Month → Day. 
Fact Table: A fact table is a table that contains the 
measures of interest. Ex. Sales Amount is a measure.
• Star Schema – A single object (the fact table) sits in 
the middle and is radically connected to other 
surrounding objects (dimension lookup tables) like a 
star. Each dimension is represented as a single table. 
The primary key in each dimension table is related to a 
foreign key in the fact table. 
• Snowflake Schema – An extension of the star 
schema, where each point of the star explodes into more 
points. In a star schema, each dimension is represented 
by a single dimensional table, whereas in a snowflake 
schema, that dimensional table is normalized into 
multiple lookup tables, each representing a level in the 
dimensional hierarchy.
MSBI and Data WareHouse techniques by Quontra
After the team and tools are finalized, the process follows 
below steps in waterfall: 
a)Requirement Gathering 
b)Physical Environment Setup 
c)Data Modeling 
d)ETL 
e)OLAP Cube Design 
f)Front End Development 
g)Report Development 
h)Performance Tuning and Query Optimization 
i)Data Quality Assurance 
j)Rolling out to Production 
k)Production Maintenance 
l)Incremental Enhancements
MSBI and Data WareHouse techniques by Quontra
MMiiccrroossoofftt BBII TToooollss 
SSIS – This tool in MSBI suite performs any kind of data 
transfer with flexibility of customized dataflow. Used 
typically to accomplish ETL processes in Data 
warehouses. 
SSRS – provides the variety of reports and the capability 
of delivering reports in multiple formats. Ability to interact 
with different kind of data sources 
SSAS – MS BI Tool for creating a cubes, data mining 
models from DW. A typical Cube uses DW as data 
source and build a multidimensional database on top of it.
Power View and Power Pivot – These are self serve BI 
tools provided by Microsoft. Very low on cost of 
maintenance and are tightly coupled with Microsoft Excel 
reporting which makes it easier to interact. 
Performance Point Servers – It provides rapid creation 
of PPS reports which could be in any form and at the 
same time forms can be changed just by right click. 
Microsoft also provides the Scorecards, dashboards, data 
mining extensions, SharePoint portals etc. to serve the BI 
applications.
Data Integration 
methods
RDBMS – 
•Copying data from one table to another table(s) 
•Bulk / Raw Insert operations 
•Command line utilities for data manipulation 
•Partitioning data 
File System – 
•Copying file(s) from one location to another 
•Creating flat files, CSVs, XMLs, Excel spreadsheets 
•Creating directories / sub-directories
Web – 
•Calling a web service to fetch / trigger data 
•Accessing ftp file system 
•Submitting a feedback over internet 
•Sending an email / SMS message 
Other – 
•Generate Auditing / Logging data 
•Utilizing / maintaining configuration data (static)
T-SQL 
Best practices
Query to merge data into a table 
MERGE dbo.myDestinationTable AS dest 
USING ( 
SELECT ProductID 
, MIN(PurchaseDate) AS MinTrxDate 
, MAX(PurchaseDate) AS MaxTrxDate 
FROM dbo.mySourceTable 
WHERE ProductID IS NOT NULL 
GROUP BY ProductID 
) AS src 
ON dest.ProductID = src.ProductID 
WHEN MATCHED THEN 
UPDATE SET MaxTrxDate = src.MaxTrxDate 
, MinTrxDate = ISNULL(dest.MinTrxDate, src.MinTrxDate) 
WHEN NOT MATCHED BY SOURCE THEN DELETE 
WHEN NOT MATCHED BY TARGET THEN INSERT (ProductID, MinTrxDate, MaxTrxDate) 
VALUES (src.ProductID, src.MinTrxDate, src.MaxTrxDate); 
MMEERRGGEE ccllaauussee iiss TT--SSQQLL pprrooggrraammmmeerrss’’ ffaavvoorriittee aass iitt ccoovveerrss 33 ooppeerraattiioonnss iinn oonnee
Query to get a sequence using CTE 
;WITH myTable (id) AS 
( 
SELECT 1 id 
UNION ALL 
SELECT id + 1 FROM myTable 
WHERE id < 10 
) 
SELECT * FROM myTable 
COMMON TABLE EXPRESSIONS (CTEs) aarree tthhee mmoosstt ppooppuullaarr rreeccuurrssiivvee 
ccoonnssttrruuccttss iinn TT--SSQQLL
Move Rows in a single Query 
DECLARE @Table1 TABLE (id int, name varchar(50)) 
INSERT @Table1 VALUES (1, 'Maxwell'), (2, 'Miller'), (3, 'Dhoni') 
DECLARE @Table2 TABLE (id int, name varchar(50)) 
DELETE FROM @Table1 OUTPUT deleted.* INTO @Table2 
SELECT * FROM @Table1 
SELECT * FROM @Table2 
OUTPUT clause redirects the intermediate rreessuullttss ooff UUPPDDAATTEE,, 
DDEELLEETTEE oorr IINNSSEERRTT iinnttoo aa ttaabbllee ssppeecciiffiieedd
Query to generate random password 
SELECT CHAR(32 + (RAND() * 94)) 
+CHAR(32 + (RAND() * 94)) 
+CHAR(32 + (RAND() * 94)) 
+CHAR(32 + (RAND() * 94)) 
+CHAR(32 + (RAND() * 94)) 
+CHAR(32 + (RAND() * 94)) 
Non-deterministic ffuunnccttiioonnss lliikkee RRAANNDD(()) ggiivveess ddiiffffeerreenntt 
rreessuulltt ffoorr eeaacchh eevvaalluuaattiioonn
Funny T-SQL – Try it yourself  
Aliases behavior is not consistent 
SELECT 1id, 1.eMail, 1.0eMail, 1eMail 
Ever seen WHERE clause in SELECT without FROM clause ? 
SELECT 1 AS id WHERE 1 = 1 
IN clause expects column name at its left? Well, not Really! 
SELECT * FROM myTable WHERE 'searchtext' IN (Col1, Col2, 
Col3) 
Two ‘=‘ operators in single assignment in UPDATE? Possible! 
DECLARE @ID INT = 0 
UPDATE mySequenceTable SET @ID = ID = @ID + 1
TThhaannkk yyoouu!!!!

More Related Content

PDF
Data Warehouse Designing: Dimensional Modelling and E-R Modelling
International Journal of Engineering Inventions www.ijeijournal.com
 
DOCX
Dimensional data model
Vnktp1
 
DOC
Difference between ER-Modeling and Dimensional Modeling
Abdul Aslam
 
PDF
Difference between snowflake schema and fact constellation
Asim Saif
 
PPT
Star schema PPT
Swati Kulkarni Jaipurkar
 
DOCX
Star ,Snow and Fact-Constullation Schemas??
Abdul Aslam
 
PPT
E-R vs Starschema
guest862640
 
PPTX
multi dimensional data model
moni sindhu
 
Data Warehouse Designing: Dimensional Modelling and E-R Modelling
International Journal of Engineering Inventions www.ijeijournal.com
 
Dimensional data model
Vnktp1
 
Difference between ER-Modeling and Dimensional Modeling
Abdul Aslam
 
Difference between snowflake schema and fact constellation
Asim Saif
 
Star schema PPT
Swati Kulkarni Jaipurkar
 
Star ,Snow and Fact-Constullation Schemas??
Abdul Aslam
 
E-R vs Starschema
guest862640
 
multi dimensional data model
moni sindhu
 

What's hot (20)

PDF
Multidimensional schema
Chaand Chopra
 
PPTX
Dimensional data modeling
Adam Hutson
 
DOCX
Star schema
Chandanapriya Sathavalli
 
PPTX
Fact table design for data ware house
Sayed Ahmed
 
PPT
Dimensional Modeling
Muhammad Zohaib Chaudhary
 
PPTX
Multidimensional data models
774474
 
PPT
Dimensional Modelling Session 2
akitda
 
PPTX
Schemas for multidimensional databases
yazad dumasia
 
PPTX
Advanced Dimensional Modelling
Vincent Rainardi
 
PPT
Dimensional modelling-mod-3
Malik Alig
 
PDF
BW Multi-Dimensional Model
yujesh
 
PPT
Steps To Build A Datawarehouse
Hendra Saputra
 
PPTX
Multi dimensional model vs (1)
JamesDempsey1
 
PPTX
Dimensional Modeling
Bryan Cafferky
 
PPTX
Fact table facts
Balamurugan R
 
PDF
Multidimentional data model
jagdish_93
 
PDF
Data cube
Hitesh Mohapatra
 
DOC
Dw concepts
Krishna Prasad
 
PPTX
MULTIMEDIA MODELING
Jasbeer Chauhan
 
PPT
Data Warehouse Modeling
vivekjv
 
Multidimensional schema
Chaand Chopra
 
Dimensional data modeling
Adam Hutson
 
Fact table design for data ware house
Sayed Ahmed
 
Dimensional Modeling
Muhammad Zohaib Chaudhary
 
Multidimensional data models
774474
 
Dimensional Modelling Session 2
akitda
 
Schemas for multidimensional databases
yazad dumasia
 
Advanced Dimensional Modelling
Vincent Rainardi
 
Dimensional modelling-mod-3
Malik Alig
 
BW Multi-Dimensional Model
yujesh
 
Steps To Build A Datawarehouse
Hendra Saputra
 
Multi dimensional model vs (1)
JamesDempsey1
 
Dimensional Modeling
Bryan Cafferky
 
Fact table facts
Balamurugan R
 
Multidimentional data model
jagdish_93
 
Data cube
Hitesh Mohapatra
 
Dw concepts
Krishna Prasad
 
MULTIMEDIA MODELING
Jasbeer Chauhan
 
Data Warehouse Modeling
vivekjv
 
Ad

Viewers also liked (9)

PPT
October 23- 23. novel quiz, newspaper presentations, vocabulary review
IECP
 
PDF
Startup founders mindset 2016 - Part 1
Yurij Riphyak
 
PPTX
Valdemar gutierrez cabrera_eje2_actividad51.docx
Valdemar Gutierrez
 
PPTX
7- EL VALOR ISO
Almudena Grandal
 
PDF
Negotiating Sales Success & Customer Loyalty 04-07 April 2016 Kuala Lumpur, M...
360 BSI
 
PDF
Welcome to CSE
Amila Paranawithana
 
PDF
Portfolio
Sowjanya Suresh
 
PDF
SDIC'16 - FusionInsight als Big-Data-Plattform - Eine Fallstudie aus der Tele...
Smart Data Innovation Lab
 
October 23- 23. novel quiz, newspaper presentations, vocabulary review
IECP
 
Startup founders mindset 2016 - Part 1
Yurij Riphyak
 
Valdemar gutierrez cabrera_eje2_actividad51.docx
Valdemar Gutierrez
 
7- EL VALOR ISO
Almudena Grandal
 
Negotiating Sales Success & Customer Loyalty 04-07 April 2016 Kuala Lumpur, M...
360 BSI
 
Welcome to CSE
Amila Paranawithana
 
Portfolio
Sowjanya Suresh
 
SDIC'16 - FusionInsight als Big-Data-Plattform - Eine Fallstudie aus der Tele...
Smart Data Innovation Lab
 
Ad

Similar to MSBI and Data WareHouse techniques by Quontra (20)

PPT
Basics of Microsoft Business Intelligence and Data Integration Techniques
Valmik Potbhare
 
PPT
Business Intelligence Details and Descriptions
syedas1mal1
 
PPTX
SSAS R2 and SharePoint 2010 – Business Intelligence
Slava Kokaev
 
PPTX
Bi Architecture And Conceptual Framework
Slava Kokaev
 
PPT
The Concepts Of Business Intelligence By Power BI
HendraLesmana74
 
PPT
Introduction To Msbi By Yasir
guest7c8e5f
 
DOCX
Bi assignment
Kirti Choudhary
 
PDF
Overview of business intelligence
Ahsan Kabir
 
PPTX
Business intelligence
Quang Nguyễn Bá
 
PPT
Msbi by quontra us
QUONTRASOLUTIONS
 
PPT
Business Intelligence with SQL Server
Peter Gfader
 
PPT
Bi concepts
anushaccc
 
PDF
Business Intelligence: Data Warehouses
Michael Lamont
 
PDF
Business Intelligence Presentation (1/2)
Bernardo Najlis
 
PDF
BI Knowledge Sharing Session 2
Kelvin Chan
 
PPTX
BI Introduction
Taras Panchenko
 
PPTX
Intelligence - thr need of thr hour today
ssdesai4
 
PDF
Business intelligence: A tool that could help your business
Beyond Intelligence
 
PDF
Business intelligence an Overview
Zahra Mansoori
 
Basics of Microsoft Business Intelligence and Data Integration Techniques
Valmik Potbhare
 
Business Intelligence Details and Descriptions
syedas1mal1
 
SSAS R2 and SharePoint 2010 – Business Intelligence
Slava Kokaev
 
Bi Architecture And Conceptual Framework
Slava Kokaev
 
The Concepts Of Business Intelligence By Power BI
HendraLesmana74
 
Introduction To Msbi By Yasir
guest7c8e5f
 
Bi assignment
Kirti Choudhary
 
Overview of business intelligence
Ahsan Kabir
 
Business intelligence
Quang Nguyễn Bá
 
Msbi by quontra us
QUONTRASOLUTIONS
 
Business Intelligence with SQL Server
Peter Gfader
 
Bi concepts
anushaccc
 
Business Intelligence: Data Warehouses
Michael Lamont
 
Business Intelligence Presentation (1/2)
Bernardo Najlis
 
BI Knowledge Sharing Session 2
Kelvin Chan
 
BI Introduction
Taras Panchenko
 
Intelligence - thr need of thr hour today
ssdesai4
 
Business intelligence: A tool that could help your business
Beyond Intelligence
 
Business intelligence an Overview
Zahra Mansoori
 

More from QUONTRASOLUTIONS (20)

PPTX
Big data introduction by quontra solutions
QUONTRASOLUTIONS
 
PPTX
Java constructors
QUONTRASOLUTIONS
 
PPTX
Cognos Online Training with placement Assistance - QuontraSolutions
QUONTRASOLUTIONS
 
PDF
Business analyst overview by quontra solutions
QUONTRASOLUTIONS
 
PDF
Business analyst overview by quontra solutions
QUONTRASOLUTIONS
 
PPTX
Cognos Overview
QUONTRASOLUTIONS
 
PPTX
Hibernate online training
QUONTRASOLUTIONS
 
PPTX
Java j2eeTutorial
QUONTRASOLUTIONS
 
PPTX
Software Quality Assurance training by QuontraSolutions
QUONTRASOLUTIONS
 
PPT
Introduction to software quality assurance by QuontraSolutions
QUONTRASOLUTIONS
 
PPT
.Net introduction by Quontra Solutions
QUONTRASOLUTIONS
 
PPT
Introduction to j2 ee patterns online training class
QUONTRASOLUTIONS
 
PPTX
Saas overview by quontra solutions
QUONTRASOLUTIONS
 
PPTX
Sharepoint taxonomy introduction us
QUONTRASOLUTIONS
 
PPTX
Introduction to the sharepoint 2013 userprofile service By Quontra
QUONTRASOLUTIONS
 
PPTX
Introduction to SharePoint 2013 REST API
QUONTRASOLUTIONS
 
PPTX
Performance Testing and OBIEE by QuontraSolutions
QUONTRASOLUTIONS
 
PPTX
Obiee introduction building reports by QuontraSolutions
QUONTRASOLUTIONS
 
PPTX
Sharepoint designer workflow by quontra us
QUONTRASOLUTIONS
 
PPT
Qa by quontra us
QUONTRASOLUTIONS
 
Big data introduction by quontra solutions
QUONTRASOLUTIONS
 
Java constructors
QUONTRASOLUTIONS
 
Cognos Online Training with placement Assistance - QuontraSolutions
QUONTRASOLUTIONS
 
Business analyst overview by quontra solutions
QUONTRASOLUTIONS
 
Business analyst overview by quontra solutions
QUONTRASOLUTIONS
 
Cognos Overview
QUONTRASOLUTIONS
 
Hibernate online training
QUONTRASOLUTIONS
 
Java j2eeTutorial
QUONTRASOLUTIONS
 
Software Quality Assurance training by QuontraSolutions
QUONTRASOLUTIONS
 
Introduction to software quality assurance by QuontraSolutions
QUONTRASOLUTIONS
 
.Net introduction by Quontra Solutions
QUONTRASOLUTIONS
 
Introduction to j2 ee patterns online training class
QUONTRASOLUTIONS
 
Saas overview by quontra solutions
QUONTRASOLUTIONS
 
Sharepoint taxonomy introduction us
QUONTRASOLUTIONS
 
Introduction to the sharepoint 2013 userprofile service By Quontra
QUONTRASOLUTIONS
 
Introduction to SharePoint 2013 REST API
QUONTRASOLUTIONS
 
Performance Testing and OBIEE by QuontraSolutions
QUONTRASOLUTIONS
 
Obiee introduction building reports by QuontraSolutions
QUONTRASOLUTIONS
 
Sharepoint designer workflow by quontra us
QUONTRASOLUTIONS
 
Qa by quontra us
QUONTRASOLUTIONS
 

Recently uploaded (20)

PPTX
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PDF
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
CDH. pptx
AneetaSharma15
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
PPTX
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
PPTX
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PPTX
Virus sequence retrieval from NCBI database
yamunaK13
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PPTX
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
PPTX
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
PDF
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
PPTX
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
CDH. pptx
AneetaSharma15
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
How to Manage Leads in Odoo 18 CRM - Odoo Slides
Celine George
 
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
Virus sequence retrieval from NCBI database
yamunaK13
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
Five Point Someone – Chetan Bhagat | Book Summary & Analysis by Bhupesh Kushwaha
Bhupesh Kushwaha
 
Continental Accounting in Odoo 18 - Odoo Slides
Celine George
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
PROTIEN ENERGY MALNUTRITION: NURSING MANAGEMENT.pptx
PRADEEP ABOTHU
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 

MSBI and Data WareHouse techniques by Quontra

  • 1. MSBI, Data Warehousing and Data Integration Techniques By Quontra Solutions Email : [email protected] Contact : 404-900-9988 WebSite : www.quontrasolutions.com
  • 2. Agenda What is BI? What is Data Warehousing?  Microsoft platform for BI applications  Data integration methods  T-SQL examples on data integration
  • 3. What is BI? Business Intelligence is a collection of theories, algorithms, architectures, and technologies that transforms the raw data into the meaningful data in order to help users in strategic decision making in the interest of their business.
  • 4. BI Case For example senior management of an industry can inspect sales revenue by products and/or departments, or by associated costs and incomes. BI technologies provide historical, current and predictive views of business operations. So, management can take some strategic or operation decision easily.
  • 5. Typical BI Flow Data Sources Users Data Tools Data Warehouse Extraction
  • 6. Why BI? By using BI, management can monitor objectives from high level, understand what is happening, why is happening and can take necessary steps why the objectives are not full filled. Objectives: 1)Business Operations Reporting 2)Forecasting 3)Dashboard 4)Multidimensional Analysis 5)Finding correlation among different factors
  • 7. What is Data warehousing? A data warehouse is a subject-oriented, integrated, time-variant and non-volatile collection of data in support of management's decision making process. - Bill Inmon A data warehouse is a copy of transaction data specifically structured for query and analysis. - Ralph Kimball
  • 8. Dimensional Data Model Although it is a relational model but data would be stored differently in dimensional data model when compared to 3rd normal form. Dimension: A category of information. Ex. the time dimension. Attribute: A unique level within a dimension. Ex. Month is an attribute in the Time Dimension. Hierarchy: The specification of levels that represents relationship between different attributes within a dimension. Ex. one possible hierarchy in the Time dimension is Year → Quarter → Month → Day. Fact Table: A fact table is a table that contains the measures of interest. Ex. Sales Amount is a measure.
  • 9. • Star Schema – A single object (the fact table) sits in the middle and is radically connected to other surrounding objects (dimension lookup tables) like a star. Each dimension is represented as a single table. The primary key in each dimension table is related to a foreign key in the fact table. • Snowflake Schema – An extension of the star schema, where each point of the star explodes into more points. In a star schema, each dimension is represented by a single dimensional table, whereas in a snowflake schema, that dimensional table is normalized into multiple lookup tables, each representing a level in the dimensional hierarchy.
  • 11. After the team and tools are finalized, the process follows below steps in waterfall: a)Requirement Gathering b)Physical Environment Setup c)Data Modeling d)ETL e)OLAP Cube Design f)Front End Development g)Report Development h)Performance Tuning and Query Optimization i)Data Quality Assurance j)Rolling out to Production k)Production Maintenance l)Incremental Enhancements
  • 13. MMiiccrroossoofftt BBII TToooollss SSIS – This tool in MSBI suite performs any kind of data transfer with flexibility of customized dataflow. Used typically to accomplish ETL processes in Data warehouses. SSRS – provides the variety of reports and the capability of delivering reports in multiple formats. Ability to interact with different kind of data sources SSAS – MS BI Tool for creating a cubes, data mining models from DW. A typical Cube uses DW as data source and build a multidimensional database on top of it.
  • 14. Power View and Power Pivot – These are self serve BI tools provided by Microsoft. Very low on cost of maintenance and are tightly coupled with Microsoft Excel reporting which makes it easier to interact. Performance Point Servers – It provides rapid creation of PPS reports which could be in any form and at the same time forms can be changed just by right click. Microsoft also provides the Scorecards, dashboards, data mining extensions, SharePoint portals etc. to serve the BI applications.
  • 16. RDBMS – •Copying data from one table to another table(s) •Bulk / Raw Insert operations •Command line utilities for data manipulation •Partitioning data File System – •Copying file(s) from one location to another •Creating flat files, CSVs, XMLs, Excel spreadsheets •Creating directories / sub-directories
  • 17. Web – •Calling a web service to fetch / trigger data •Accessing ftp file system •Submitting a feedback over internet •Sending an email / SMS message Other – •Generate Auditing / Logging data •Utilizing / maintaining configuration data (static)
  • 19. Query to merge data into a table MERGE dbo.myDestinationTable AS dest USING ( SELECT ProductID , MIN(PurchaseDate) AS MinTrxDate , MAX(PurchaseDate) AS MaxTrxDate FROM dbo.mySourceTable WHERE ProductID IS NOT NULL GROUP BY ProductID ) AS src ON dest.ProductID = src.ProductID WHEN MATCHED THEN UPDATE SET MaxTrxDate = src.MaxTrxDate , MinTrxDate = ISNULL(dest.MinTrxDate, src.MinTrxDate) WHEN NOT MATCHED BY SOURCE THEN DELETE WHEN NOT MATCHED BY TARGET THEN INSERT (ProductID, MinTrxDate, MaxTrxDate) VALUES (src.ProductID, src.MinTrxDate, src.MaxTrxDate); MMEERRGGEE ccllaauussee iiss TT--SSQQLL pprrooggrraammmmeerrss’’ ffaavvoorriittee aass iitt ccoovveerrss 33 ooppeerraattiioonnss iinn oonnee
  • 20. Query to get a sequence using CTE ;WITH myTable (id) AS ( SELECT 1 id UNION ALL SELECT id + 1 FROM myTable WHERE id < 10 ) SELECT * FROM myTable COMMON TABLE EXPRESSIONS (CTEs) aarree tthhee mmoosstt ppooppuullaarr rreeccuurrssiivvee ccoonnssttrruuccttss iinn TT--SSQQLL
  • 21. Move Rows in a single Query DECLARE @Table1 TABLE (id int, name varchar(50)) INSERT @Table1 VALUES (1, 'Maxwell'), (2, 'Miller'), (3, 'Dhoni') DECLARE @Table2 TABLE (id int, name varchar(50)) DELETE FROM @Table1 OUTPUT deleted.* INTO @Table2 SELECT * FROM @Table1 SELECT * FROM @Table2 OUTPUT clause redirects the intermediate rreessuullttss ooff UUPPDDAATTEE,, DDEELLEETTEE oorr IINNSSEERRTT iinnttoo aa ttaabbllee ssppeecciiffiieedd
  • 22. Query to generate random password SELECT CHAR(32 + (RAND() * 94)) +CHAR(32 + (RAND() * 94)) +CHAR(32 + (RAND() * 94)) +CHAR(32 + (RAND() * 94)) +CHAR(32 + (RAND() * 94)) +CHAR(32 + (RAND() * 94)) Non-deterministic ffuunnccttiioonnss lliikkee RRAANNDD(()) ggiivveess ddiiffffeerreenntt rreessuulltt ffoorr eeaacchh eevvaalluuaattiioonn
  • 23. Funny T-SQL – Try it yourself  Aliases behavior is not consistent SELECT 1id, 1.eMail, 1.0eMail, 1eMail Ever seen WHERE clause in SELECT without FROM clause ? SELECT 1 AS id WHERE 1 = 1 IN clause expects column name at its left? Well, not Really! SELECT * FROM myTable WHERE 'searchtext' IN (Col1, Col2, Col3) Two ‘=‘ operators in single assignment in UPDATE? Possible! DECLARE @ID INT = 0 UPDATE mySequenceTable SET @ID = ID = @ID + 1