SlideShare una empresa de Scribd logo
1 de 26
[object Object],[object Object],[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009
Table of Contents ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009
Project Overview ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009
T-SQL Samples ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009 state member_no numkids ----- --------- ----------- AZ  25  4 AZ  117  3 CA  95  4 CA  141  4 CA  187  4 /* May Woo This query uses subquery as  an expression to get the list of  books that have more than 50  copies  in reserved. */ SELECT  t . title_no ,  title ,  l . isbn , count (*)   AS 'Total Reserved' FROM  title  AS t INNER   JOIN  loan  AS  l ON  t . title_no  =  l . title_no INNER   JOIN  reservation  AS  r ON  r . isbn  =  l . isbn WHERE  r . isbn  IN   (   SELECT  isbn FROM  reservation GROUP   BY  isbn HAVING   COUNT (*)>  50  ) AND   l . copy_no  <  5 GROUP   BY  t . title_no ,  title ,  l . isbn title_no  title  isbn  Total Reserved --------- ------------------------------- --------- -------------- 1  Last of the Mohicans  1  197 5  Fall of the House of Usher  43  196 25  The Black Tulip  246  196 29  Misalliance  288  197 33  The First 100,000 Prime Numbers  330  196 4  Songs of a Savoyard  533  196 8  The Cherry Orchard  575  197 32  The Call of the Wild  820  196 41  Sense and Sensibility  904  196 (9 row(s) affected)
T-SQL Samples ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009 Name  Street  City  State Zip --------------------------------- --------------- --------------- ----- ---------- Amy A Anderson  Bowery Estates  Montgomery  AL  36100  Amy B Anderson  Elm Street  Denver  CO  80201  Amy B Anderson  The Highlands  Atlanta  GA  30026  Amy C Anderson  King Street  Baton Rouge  LA  70800  Amy D Anderson  New Pike Road  Trenton  NJ  08600  Amy E Anderson  Queen Ann Drive Salem  OR  97301  Amy F Anderson  Tamarack Road  Salt Lake City  UT  84100  Amy G Anderson  Willow Road  Charleston  WV  25300  Amy H Anderson  Cannery Row  Phoenix  AZ  85011  Amy H Anderson  Fir Street  Washington  DC  20510-0001 /* May Woo Query to declare and use variables in a SQL statement. */ use  JungleBooks declare  @txtLastFourDigits  char ( 4 ) set  @txtLastFourDigits  = '7889' select  CustomerID  as   'ID' ,  CardNumber  as   'Card Number' ,   left( ExpiryDate ,  11 )   as   'Expires' from  Customers where  CardNumber  like   '%'   +  @txtLastFourDigits order   by   'ID' ID  Card Number  Expires ----------- -------------------- ----------- 21  7898-3233-3223-7889  Jan 31 2002 (1 row(s) affected)
T-SQL Samples 2009 May Woo  Business Intelligence Portfolio /* May Woo Use Case statement, and where statement to filter the desired result */ SELECT   books . ISBN ,   PUBLISHER , QUANTITYORDERED - QUANTITYDISPATCHED  AS  [Quantity Needed] , orders . orderid ,   CASE   WHEN  orderdate + 3  <   getdate ()   and  quantityordered > quantitydispatched THEN   'Needs Review'   ELSE   'Standard Delay'   END   AS  [STATUS] FROM  BOOKS  inner   join  ORDERITEMS  on  books . isbn = orderitems . isbn inner   join  orders  on  orderitems . orderid = orders . orderid WHERE  QUANTITYORDERED > QUANTITYDISPATCHED  and  stock = 0 GROUP BY   books . ISBN ,   PUBLISHER , orderdate , orders . orderid , quantityordered , quantitydispatched ORDER BY  [quantity needed]  desc ISBN  PUBLISHER  Quantity Needed orderid  STATUS -------------------- -------------------------------------------------- --------------- ----------------------------------------- 097-972-0261  Lucerne Publishing 2 21 Needs Review 097-972-0261  Lucerne Publishing 2 22 Needs Review 097-972-0261  Lucerne Publishing 2 23 Needs Review 097-972-0261  Lucerne Publishing 1 36 Needs Review 72-80081-024  New Moon Books 1 37 Needs Review 9-001-122-01  Binnet and Hardley 1 29 Needs Review 9-001-122-01  Binnet and Hardley 1 30 Needs Review 9-001-122-90  Binnet and Hardley 1 27 Needs Review 097-972-0261  Lucerne Publishing 1 20 Needs Review   (9 row(s) affected)
SSIS – Integration Services ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009
SSIS – Integration Services ,[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009
SSIS – Integration Services ,[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009
SSAS – Analysis Services ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009
SSAS – Analysis Services ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009
MDX Samples ,[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009 /* Name: May Woo Date: 08/21/2009 Company: SetFocus LLC Job Name: Job Labor Fact Query 04-05 Job Description: Show All employees for 2005 Q4, and four periods ago, for total hours worked in  the Quarter, display NULL as 0  Description on Query: Columns: Display Hoursworked for 2005 Q4, four periods ago from Job Labor Fact table Rows:   Display Employee Names on rows   NOTE: Use IIF function to display NULL as 0 (per spec) by replacing it with zero */   WITH   MEMBER  [Measures].[2005 Q4]  AS IIF (([All Works Calendar].[FY Year Qtr]. currentmember , [Measures].[Hoursworked]),  ([All Works Calendar].[FY Year Qtr]. currentmember , [Measures].[Hoursworked]),0) MEMBER  [Measures].[2004 Q4]  AS IIF (([Measures].[2005 Q4], PARALLELPERIOD ([All Works Calendar].[FY Year Qtr].[Fy Qtr], 4)),  ([Measures].[2005 Q4],  PARALLELPERIOD ([All Works Calendar].[FY Year Qtr].[Fy Qtr], 4)),0)  SELECT {[Measures].[2004 Q4],[Measures].[2005 Q4] }  ON   COLUMNS , [Employees].[Full Name]. children   ON   ROWS FROM  [All Works] WHERE  [All Works Calendar].[Fy Year Qtr].[2005]. LASTCHILD This query compares the hours by employee for a specific Year/Quarter, with the hours from 4 quarters previous using PARALLELPERIOD Function .  Output on left. 2004 Q4 2005 Q4 ANDREW TOLSON 0 225 JOHNATHON NIXON 357 423.25 KEN KOPENHAVER 325.5 395 STEVEN WILSON 272.5 387
MDX Samples ,[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009 /* May Woo This MDX script displays the last two quarters of available data, to get all the products in 'Action Figures' siblings list and get % of dollar sales for its &quot;parent&quot; product. */ WITH   MEMBER  [measures].[PctOfParent]  AS [measures].[dollar sales]/([measures].[dollar sales],([product].[bycategory]. PARENT )) , FORMAT_STRING  = 'percent' SELECT ({ ORDER ( LASTPERIODS  ( 2, [Time].[Quarter]. LASTCHILD  ), [Time].[Yqmd], ASC ) },  {[measures].[dollar sales], [measures].[PctOfParent]})  ON   COLUMNS , {[product].[action figures]. SIBLINGS }  ON   ROWS FROM  Sales WHERE  [time].[2005]
MDX Samples ,[object Object],May Woo  Business Intelligence Portfolio 2009 /* Classs Exercise (Chapter 6) RANK Cities by Dollar Sales, but only for those cities with an Average Price (Dollar Sales / Unit Sales) greater than $26.00  The WHERE clause will be for 2005 and the Product of Home Audio  */ WITH MEMBER  [Measures].[Avg Sales Price]  AS [Measures].[Dollar Sales] / [Measures].[Unit Sales],  format_string  = 'currency', SOLVE_ORDER  = 10 SET  [OrderedCity]  as ORDER (  Filter ( [Customer].[city]. children , [measures].[Avg Sales Price] > 26), [measures].[dollar sales],  bdesc )   MEMBER  [ProductRanking]  as RANK ( [Customer].[city]. CurrentMember , [OrderedCity]) SELECT  { [Measures].[Dollar Sales], [ProductRanking],[measures].[Avg Sales Price] }  on   columns ,  [OrderedCity]  on   rows FROM  SALES WHERE  ([Time].[2005], [product].[Home Audio])
Calculated Members ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009 Here are examples of Calculated  Members that are in the cube.  They can be used by Excel Services Pivot Tables, Reporting Services.  These Calculated Members were Created To simplify KPI expressions. Screen shot example of one Calculated Member is Shown in BIDS interface below.
KPI’s, and Excel Services - Samples ,[object Object],[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009 This KPI was written so different levels of the KPI Indicators would be expressed as multiples of the goal.  This allows a change to only one place should the goal/target change.  This KPI determines % of increase in Profit is Total Profit divided by Total Cost plus Total Profit.  If greater than 15% is good, if greater than 5% and less than or equal to 15% is warning and less than or equal to 5% is bad.
KPI’s, Excel Services - Samples ,[object Object],[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009
SSRS – Reporting Services ,[object Object],May Woo  Business Intelligence Portfolio 2009
SSRS – Reporting Services ,[object Object],[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009
SSRS – Reporting Services ,[object Object],[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009
MOSS/PPS – Share Point and Performance Point Services ,[object Object],[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009
MOSS/PPS – Share Point and Performance Point Services ,[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009
MOSS/PPS – Share Point and Performance Point Services ,[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009
MOSS/PPS – Share Point and Performance Point Services ,[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009
MOSS/PPS – Share Point and Performance Point Services ,[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009
MOSS/PPS – Share Point and Performance Point Services ,[object Object],[object Object],May Woo  Business Intelligence Portfolio 2009

Más contenido relacionado

Similar a May Woo Bi Portfolio

The ultimate-guide-to-sql
The ultimate-guide-to-sqlThe ultimate-guide-to-sql
The ultimate-guide-to-sqlMcNamaraChiwaye
 
Kevin Bengtson Portfolio
Kevin Bengtson PortfolioKevin Bengtson Portfolio
Kevin Bengtson PortfolioKbengt521
 
Business Intelligence Portfolio
Business Intelligence PortfolioBusiness Intelligence Portfolio
Business Intelligence PortfolioChris Seebacher
 
SQL Server 2008 Portfolio
SQL Server 2008 PortfolioSQL Server 2008 Portfolio
SQL Server 2008 Portfoliolilredlokita
 
James Colby Maddox Business Intellignece and Computer Science Portfolio
James Colby Maddox Business Intellignece and Computer Science PortfolioJames Colby Maddox Business Intellignece and Computer Science Portfolio
James Colby Maddox Business Intellignece and Computer Science Portfoliocolbydaman
 
Chris Seebacher Portfolio
Chris Seebacher PortfolioChris Seebacher Portfolio
Chris Seebacher Portfolioguest3ea163
 
Tufte Sample Bi Portfolio
Tufte Sample Bi PortfolioTufte Sample Bi Portfolio
Tufte Sample Bi Portfoliodtufte
 
Beginers guide for oracle sql
Beginers guide for oracle sqlBeginers guide for oracle sql
Beginers guide for oracle sqlN.Jagadish Kumar
 
Short Intro to PHP and MySQL
Short Intro to PHP and MySQLShort Intro to PHP and MySQL
Short Intro to PHP and MySQLJussi Pohjolainen
 
The ultimate-guide-to-sql
The ultimate-guide-to-sqlThe ultimate-guide-to-sql
The ultimate-guide-to-sqlMcNamaraChiwaye
 
Greg Lewis SQL Portfolio
Greg Lewis SQL PortfolioGreg Lewis SQL Portfolio
Greg Lewis SQL Portfoliogregmlewis
 
J. Adcock Bi Portfolio
J. Adcock   Bi PortfolioJ. Adcock   Bi Portfolio
J. Adcock Bi PortfolioJerry Adcock
 
Database Development Replication Security Maintenance Report
Database Development Replication Security Maintenance ReportDatabase Development Replication Security Maintenance Report
Database Development Replication Security Maintenance Reportnyin27
 
Chris Mc Glothen Sql Portfolio
Chris Mc Glothen Sql PortfolioChris Mc Glothen Sql Portfolio
Chris Mc Glothen Sql Portfolioclmcglothen
 
SQL Server 2008 Portfolio for Saumya Bhatnagar
SQL Server 2008 Portfolio for Saumya BhatnagarSQL Server 2008 Portfolio for Saumya Bhatnagar
SQL Server 2008 Portfolio for Saumya Bhatnagarsammykb
 
on SQL Managment studio(For the following exercise, use the Week 5.pdf
on SQL Managment studio(For the following exercise, use the Week 5.pdfon SQL Managment studio(For the following exercise, use the Week 5.pdf
on SQL Managment studio(For the following exercise, use the Week 5.pdfformaxekochi
 

Similar a May Woo Bi Portfolio (20)

The ultimate-guide-to-sql
The ultimate-guide-to-sqlThe ultimate-guide-to-sql
The ultimate-guide-to-sql
 
Kevin Bengtson Portfolio
Kevin Bengtson PortfolioKevin Bengtson Portfolio
Kevin Bengtson Portfolio
 
Business Intelligence Portfolio
Business Intelligence PortfolioBusiness Intelligence Portfolio
Business Intelligence Portfolio
 
SQL Server 2008 Portfolio
SQL Server 2008 PortfolioSQL Server 2008 Portfolio
SQL Server 2008 Portfolio
 
James Colby Maddox Business Intellignece and Computer Science Portfolio
James Colby Maddox Business Intellignece and Computer Science PortfolioJames Colby Maddox Business Intellignece and Computer Science Portfolio
James Colby Maddox Business Intellignece and Computer Science Portfolio
 
Chris Seebacher Portfolio
Chris Seebacher PortfolioChris Seebacher Portfolio
Chris Seebacher Portfolio
 
Tufte Sample Bi Portfolio
Tufte Sample Bi PortfolioTufte Sample Bi Portfolio
Tufte Sample Bi Portfolio
 
Beginers guide for oracle sql
Beginers guide for oracle sqlBeginers guide for oracle sql
Beginers guide for oracle sql
 
Short Intro to PHP and MySQL
Short Intro to PHP and MySQLShort Intro to PHP and MySQL
Short Intro to PHP and MySQL
 
Sql Server 2000
Sql Server 2000Sql Server 2000
Sql Server 2000
 
Select To Order By
Select  To  Order BySelect  To  Order By
Select To Order By
 
Marcus Matthews
Marcus MatthewsMarcus Matthews
Marcus Matthews
 
The ultimate-guide-to-sql
The ultimate-guide-to-sqlThe ultimate-guide-to-sql
The ultimate-guide-to-sql
 
Greg Lewis SQL Portfolio
Greg Lewis SQL PortfolioGreg Lewis SQL Portfolio
Greg Lewis SQL Portfolio
 
J. Adcock Bi Portfolio
J. Adcock   Bi PortfolioJ. Adcock   Bi Portfolio
J. Adcock Bi Portfolio
 
Database Development Replication Security Maintenance Report
Database Development Replication Security Maintenance ReportDatabase Development Replication Security Maintenance Report
Database Development Replication Security Maintenance Report
 
Chris Mc Glothen Sql Portfolio
Chris Mc Glothen Sql PortfolioChris Mc Glothen Sql Portfolio
Chris Mc Glothen Sql Portfolio
 
SQL Server 2008 Portfolio for Saumya Bhatnagar
SQL Server 2008 Portfolio for Saumya BhatnagarSQL Server 2008 Portfolio for Saumya Bhatnagar
SQL Server 2008 Portfolio for Saumya Bhatnagar
 
Sql queries
Sql queriesSql queries
Sql queries
 
on SQL Managment studio(For the following exercise, use the Week 5.pdf
on SQL Managment studio(For the following exercise, use the Week 5.pdfon SQL Managment studio(For the following exercise, use the Week 5.pdf
on SQL Managment studio(For the following exercise, use the Week 5.pdf
 

May Woo Bi Portfolio

  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6. T-SQL Samples 2009 May Woo Business Intelligence Portfolio /* May Woo Use Case statement, and where statement to filter the desired result */ SELECT books . ISBN , PUBLISHER , QUANTITYORDERED - QUANTITYDISPATCHED AS [Quantity Needed] , orders . orderid , CASE WHEN orderdate + 3 < getdate () and quantityordered > quantitydispatched THEN 'Needs Review' ELSE 'Standard Delay' END AS [STATUS] FROM BOOKS inner join ORDERITEMS on books . isbn = orderitems . isbn inner join orders on orderitems . orderid = orders . orderid WHERE QUANTITYORDERED > QUANTITYDISPATCHED and stock = 0 GROUP BY books . ISBN , PUBLISHER , orderdate , orders . orderid , quantityordered , quantitydispatched ORDER BY [quantity needed] desc ISBN PUBLISHER Quantity Needed orderid STATUS -------------------- -------------------------------------------------- --------------- ----------------------------------------- 097-972-0261 Lucerne Publishing 2 21 Needs Review 097-972-0261 Lucerne Publishing 2 22 Needs Review 097-972-0261 Lucerne Publishing 2 23 Needs Review 097-972-0261 Lucerne Publishing 1 36 Needs Review 72-80081-024 New Moon Books 1 37 Needs Review 9-001-122-01 Binnet and Hardley 1 29 Needs Review 9-001-122-01 Binnet and Hardley 1 30 Needs Review 9-001-122-90 Binnet and Hardley 1 27 Needs Review 097-972-0261 Lucerne Publishing 1 20 Needs Review   (9 row(s) affected)
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.