├── .gitattributes
├── BI Dashboards
├── Product Rating Fact.twb
└── Project data warehouse.twb
├── Documentation
├── 722_final_report_updates.pdf
├── Group 9 Detailed-Dimensional-Modeling-Workbook_Final __update.xlsx
└── High-Level-Dimensional-Modeling-Northwind (1).xlsx
├── E-Commerce-Datawarehouse-implementation
└── README.md
├── Presentation
└── IST 722 Presentation.pptx.pptx
├── README.md
├── ROLAP
├── Final.sql
└── Query for Verified.txt
├── SSAS
└── Product Rating Pivot.xlsx
└── SSIS
├── Customer_Gender_age_data.csv
├── Integration Services Project2.sln
└── Integration Services Project2
├── DateDimensionImport.dtsx
├── Infibeam.dtproj
├── Infibeam.dtproj.user
├── Integration Services Project2.database
├── Integration Services Project2.dtproj.user
├── Package.dtsx
├── Product_ratingfact.dtsx
├── Project.params
├── Sales_fact.dtsx
├── Source_to_Stage_Sales_all_dimensions.dtsx
├── Source_to_Stage_productrating_dim.dtsx
├── Stage_to_DW_Sales_all_dimensions.dtsx
├── bin
└── Development
│ └── Infibeam.ispac
├── ist-cs-dw1.ad.syr.edu.ExternalSources.conmgr
├── ist-cs-dw1.ad.syr.edu.group9-nopCommerce.conmgr
├── ist-cs-dw1.ad.syr.edu.ist722_group9_dw.conmgr
├── ist-cs-dw1.ad.syr.edu.ist722_group9_stage.conmgr
└── obj
└── Development
├── BuildLog.xml
├── DateDimensionImport.dtsx
├── Infibeam.dtproj
├── Package.dtsx
├── Product_ratingfact.dtsx
├── Project.params
├── Sales_fact.dtsx
├── Source_to_Stage.dtsx
├── Source_to_Stage_Sales_all_dimensions.dtsx
├── Source_to_Stage_all_dimensions.dtsx
├── Source_to_Stage_productrating_dim.dtsx
├── Stage_DW.dtsx
├── Stage_to_DW_Sales_all_dimensions.dtsx
├── Stage_to_DW_all_dimensions.dtsx
├── ist-cs-dw1.ad.syr.edu.ExternalSources.conmgr
├── ist-cs-dw1.ad.syr.edu.group9-nopCommerce.conmgr
├── ist-cs-dw1.ad.syr.edu.ist722_group9_dw.conmgr
└── ist-cs-dw1.ad.syr.edu.ist722_group9_stage.conmgr
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/Documentation/722_final_report_updates.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fareespatel/E-Commerce-Datawarehouse-implementation/b8a859991bd48019af286e58899a2e98f9fd4913/Documentation/722_final_report_updates.pdf
--------------------------------------------------------------------------------
/Documentation/Group 9 Detailed-Dimensional-Modeling-Workbook_Final __update.xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fareespatel/E-Commerce-Datawarehouse-implementation/b8a859991bd48019af286e58899a2e98f9fd4913/Documentation/Group 9 Detailed-Dimensional-Modeling-Workbook_Final __update.xlsx
--------------------------------------------------------------------------------
/Documentation/High-Level-Dimensional-Modeling-Northwind (1).xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fareespatel/E-Commerce-Datawarehouse-implementation/b8a859991bd48019af286e58899a2e98f9fd4913/Documentation/High-Level-Dimensional-Modeling-Northwind (1).xlsx
--------------------------------------------------------------------------------
/E-Commerce-Datawarehouse-implementation/README.md:
--------------------------------------------------------------------------------
1 | # E-Commerce-Datawarehouse implementation
2 |
--------------------------------------------------------------------------------
/Presentation/IST 722 Presentation.pptx.pptx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fareespatel/E-Commerce-Datawarehouse-implementation/b8a859991bd48019af286e58899a2e98f9fd4913/Presentation/IST 722 Presentation.pptx.pptx
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # E-Commerce-Datawarehouse implementation
2 |
3 | This repository contains project files for data warehouse implementation for an e-commerce website “Infibeam” that sells digital and consumer electronics. The objective for this implementation was to generate insights, predict and make recommendations from the huge database of historical transactional data.
4 |
--------------------------------------------------------------------------------
/ROLAP/Final.sql:
--------------------------------------------------------------------------------
1 | /****** Object: Database ist722_group9_dw Script Date: 4/6/2017 6:16:29 PM ******/
2 | /*
3 | Kimball Group, The Microsoft Data Warehouse Toolkit
4 | Generate a database from the datamodel worksheet, version: 4
5 |
6 | You can use this Excel workbook as a data modeling tool during the logical design phase of your project.
7 | As discussed in the book, it is in some ways preferable to a real data modeling tool during the inital design.
8 | We expect you to move away from this spreadsheet and into a real modeling tool during the physical design phase.
9 | The authors provide this macro so that the spreadsheet isn't a dead-end. You can 'import' into your
10 | data modeling tool by generating a database using this script, then reverse-engineering that database into
11 | your tool.
12 |
13 | Uncomment the next lines if you want to drop and create the database
14 | */
15 | /*
16 | DROP DATABASE ist722_group9_dw
17 | GO
18 | CREATE DATABASE ist722_group9_dw
19 | GO
20 | ALTER DATABASE ist722_group9_dw
21 | SET RECOVERY SIMPLE
22 | GO
23 | */
24 | USE ist722_group9_dw
25 | ;
26 | IF EXISTS (SELECT Name from sys.extended_properties where Name = 'Description')
27 | EXEC sys.sp_dropextendedproperty @name = 'Description'
28 | EXEC sys.sp_addextendedproperty @name = 'Description', @value = 'Default description - you should change this.'
29 | ;
30 |
31 |
32 | -- Create a schema to hold user views (set schema name on home page of workbook).
33 | -- It would be good to do this only if the schema doesn't exist already.
34 | GO
35 | CREATE SCHEMA nopCommerce
36 | GO
37 |
38 |
39 | /* Drop table nopCommerce.DimCustomer */
40 | IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'nopCommerce.DimCustomer') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
41 | DROP TABLE nopCommerce.DimCustomer
42 | ;
43 |
44 | /* Create table nopCommerce.DimCustomer */
45 | CREATE TABLE nopCommerce.DimCustomer (
46 | [CustomerKey] int IDENTITY NOT NULL
47 | , [CustomerID] int NOT NULL
48 | , [CustomerName] nvarchar(201) NOT NULL
49 | , [City] nvarchar(100) NULL
50 | , [RowIsCurrent] bit DEFAULT 1 NOT NULL
51 | , [RowStartDate] datetime DEFAULT '12/31/1899' NOT NULL
52 | , [RowEndDate] datetime DEFAULT '12/31/9999' NOT NULL
53 | , [RowChangeReason] nvarchar(200) NULL
54 | , [Gender] nvarchar(200)NULL
55 | , [Birthyear] int NULL
56 | , CONSTRAINT [PK_nopCommerce.DimCustomer] PRIMARY KEY CLUSTERED
57 | ( [CustomerKey] )
58 | ) ON [PRIMARY]
59 | ;
60 |
61 |
62 | SET IDENTITY_INSERT nopCommerce.DimCustomer ON
63 | ;
64 | INSERT INTO nopCommerce.DimCustomer (CustomerKey, CustomerID, CustomerName, City, RowIsCurrent, RowStartDate, RowEndDate, RowChangeReason)
65 | VALUES (-1, -1, 'None', 'None', 1, '12/31/1899', '12/31/9999', 'N/A')
66 | ;
67 | SET IDENTITY_INSERT nopCommerce.DimCustomer OFF
68 | ;
69 |
70 | -- User-oriented view definition
71 | GO
72 | IF EXISTS (select * from sys.views where object_id=OBJECT_ID(N'[nopCommerce].[Customer]'))
73 | DROP VIEW [nopCommerce].[Customer]
74 | GO
75 | CREATE VIEW [nopCommerce].[Customer] AS
76 | SELECT [CustomerKey] AS [CustomerKey]
77 | , [CustomerID] AS [CustomerID]
78 | , [CustomerName] AS [Name]
79 | , [City] AS [City]
80 | , [RowIsCurrent] AS [Row Is Current]
81 | , [RowStartDate] AS [Row Start Date]
82 | , [RowEndDate] AS [Row End Date]
83 | , [RowChangeReason] AS [Row Change Reason]
84 | FROM nopCommerce.DimCustomer
85 | GO
86 |
87 |
88 | /* Drop table nopCommerce.DimDate */
89 | IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'nopCommerce.DimDate') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
90 | DROP TABLE nopCommerce.DimDate
91 | ;
92 |
93 |
94 | -- date dimension
95 | PRINT 'CREATE TABLE northwind.DimDate'
96 | CREATE TABLE [nopCommerce].[DimDate](
97 | [DateKey] [int] NOT NULL,
98 | [Date] [datetime] NULL,
99 | [FullDateUSA] [nchar](11) NOT NULL,
100 | [DayOfWeek] [tinyint] NOT NULL,
101 | [DayName] [nchar](10) NOT NULL,
102 | [DayOfMonth] [tinyint] NOT NULL,
103 | [DayOfYear] [int] NOT NULL,
104 | [WeekOfYear] [tinyint] NOT NULL,
105 | [MonthName] [nchar](10) NOT NULL,
106 | [MonthOfYear] [tinyint] NOT NULL,
107 | [Quarter] [tinyint] NOT NULL,
108 | [QuarterName] [nchar](10) NOT NULL,
109 | [Year] [int] NOT NULL,
110 | [IsAWeekday] varchar(1) NOT NULL DEFAULT (('N')),
111 | constraint [PK_nopCommerce.DimDate] PRIMARY KEY ([DateKey])
112 | )
113 |
114 | -- Unknown Date Value
115 | INSERT INTO [nopCommerce].[DimDate]
116 | ([DateKey]
117 | ,[Date]
118 | ,[FullDateUSA]
119 | ,[DayOfWeek]
120 | ,[DayName]
121 | ,[DayOfMonth]
122 | ,[DayOfYear]
123 | ,[WeekOfYear]
124 | ,[MonthName]
125 | ,[MonthOfYear]
126 | ,[Quarter]
127 | ,[QuarterName]
128 | ,[Year]
129 | ,[IsAWeekday])
130 | VALUES
131 | (-1
132 | ,null
133 | ,'Unknown'
134 | ,0
135 | ,'Unknown'
136 | ,0
137 | ,0
138 | ,0
139 | ,'Unknown'
140 | ,0
141 | ,0
142 | ,'Unknown'
143 | ,0
144 | ,'?')
145 | GO
146 |
147 |
148 | /* Drop table nopCommerce.DimProduct */
149 | IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'nopCommerce.DimProduct') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
150 | DROP TABLE nopCommerce.DimProduct
151 | ;
152 |
153 | /* Create table nopCommerce.DimProduct */
154 | CREATE TABLE nopCommerce.DimProduct (
155 | [ProductKey] int IDENTITY NOT NULL
156 | , [ProductID] int NOT NULL
157 | , [ProductName] nvarchar(400) NOT NULL
158 | , [CategoryName] nvarchar(400) NOT NULL
159 | , [ProductPrice] decimal(18,4) NOT NULL
160 | , [RowIsCurrent] bit DEFAULT 1 NOT NULL
161 | , [RowStartDate] datetime DEFAULT '12/31/1899' NOT NULL
162 | , [RowEndDate] datetime DEFAULT '12/31/9999' NOT NULL
163 | , [RowChangeReason] nvarchar(200) NULL
164 | , CONSTRAINT [PK_nopCommerce.DimProduct] PRIMARY KEY CLUSTERED
165 | ( [ProductKey] )
166 | ) ON [PRIMARY]
167 | ;
168 |
169 | SET IDENTITY_INSERT nopCommerce.DimProduct ON
170 | ;
171 | INSERT INTO nopCommerce.DimProduct (ProductKey, ProductID, ProductName, CategoryName, ProductPrice, RowIsCurrent, RowStartDate, RowEndDate, RowChangeReason)
172 | VALUES (-1, -1, 'None', 'None', 0.0000, 1, '12/31/1899', '12/31/9999', 'N/A')
173 | ;
174 | SET IDENTITY_INSERT nopCommerce.DimProduct OFF
175 | ;
176 |
177 | -- User-oriented view definition
178 | GO
179 | IF EXISTS (select * from sys.views where object_id=OBJECT_ID(N'[nopCommerce].[Product]'))
180 | DROP VIEW [nopCommerce].[Product]
181 | GO
182 | CREATE VIEW [nopCommerce].[Product] AS
183 | SELECT [ProductKey] AS [ProductKey]
184 | , [ProductID] AS [ProductID]
185 | , [ProductName] AS [ProductName]
186 | , [CategoryName] AS [CategoryName]
187 | , [ProductPrice] AS [ProductPrice]
188 | , [RowIsCurrent] AS [Row Is Current]
189 | , [RowStartDate] AS [Row Start Date]
190 | , [RowEndDate] AS [Row End Date]
191 | , [RowChangeReason] AS [Row Change Reason]
192 | FROM nopCommerce.DimProduct
193 | GO
194 |
195 |
196 | /* Drop table nopCommerce.DimAddress */
197 | IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'nopCommerce.DimAddress') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
198 | DROP TABLE nopCommerce.DimAddress
199 | ;
200 |
201 | CREATE TABLE [ nopCommerce.DimProductRatings] (
202 | [Id] int,
203 | [CustomerId] int,
204 | [ProductId] int,
205 | [StoreId] int,
206 | [IsApproved] bit,
207 | [Title] nvarchar(max),
208 | [ReviewText] nvarchar(max),
209 | [Rating] int,
210 | [HelpfulYesTotal] int,
211 | [HelpfulNoTotal] int,
212 | [CreatedOnUtc] datetime,
213 | [IsVerified] int
214 | )
215 | /* Create table nopCommerce.DimAddress */
216 | CREATE TABLE nopCommerce.DimAddress (
217 | [AddressKey] int IDENTITY NOT NULL
218 | , [AddressId] int NOT NULL
219 | , [CustomerId] int NOT NULL
220 | , [Address] nvarchar(50) NOT NULL
221 | , [StateName] nvarchar(100) NOT NULL
222 | , [ZipPostalCode] nvarchar(50) NOT NULL
223 | , [City] nvarchar(50) NULL
224 | , [RowIsCurrent] bit DEFAULT 1 NOT NULL
225 | , [RowStartDate] datetime DEFAULT '1/1/2000' NOT NULL
226 | , [RowEndDate] datetime DEFAULT '12/31/1999' NOT NULL
227 | , [RowChangeReason] nvarchar(200) NULL
228 | , CONSTRAINT [PK_nopCommerce.DimAddress] PRIMARY KEY CLUSTERED
229 | ( [AddressKey] )
230 | ) ON [PRIMARY]
231 | ;
232 |
233 | SET IDENTITY_INSERT nopCommerce.DimAddress ON
234 | ;
235 | INSERT INTO nopCommerce.DimAddress (AddressKey, AddressId, CustomerId, Address, StateName, ZipPostalCode, City, RowIsCurrent, RowStartDate, RowEndDate, RowChangeReason)
236 | VALUES (-1, -1, -1, 'Unknown ', 'Unknown ', 'Unknown ', 'Unknown ', 1, '1/1/2000', '12/31/1999', 'N/A')
237 | ;
238 | SET IDENTITY_INSERT nopCommerce.DimAddress OFF
239 | ;
240 |
241 | -- User-oriented view definition
242 | GO
243 | IF EXISTS (select * from sys.views where object_id=OBJECT_ID(N'[nopCommerce].[DimAddress]'))
244 | DROP VIEW [nopCommerce].[Address]
245 | GO
246 | CREATE VIEW [nopCommerce].[Address] AS
247 | SELECT [AddressKey] AS [AddressKey]
248 | , [AddressId] AS [AddressId]
249 | , [CustomerId] AS [CustomerId]
250 | , [Address] AS [Address]
251 | , [StateName] AS [StateName]
252 | , [ZipPostalCode] AS [ZipPostalCode]
253 | , [City] AS [City]
254 | , [RowIsCurrent] AS [Row Is Current]
255 | , [RowStartDate] AS [Row Start Date]
256 | , [RowEndDate] AS [Row End Date]
257 | , [RowChangeReason] AS [Row Change Reason]
258 | FROM nopCommerce.DimAddress
259 | GO
260 |
261 |
262 |
263 | /* Drop table nopCommerce.SalesFact */
264 | IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'nopCommerce.SalesFact') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
265 | DROP TABLE nopCommerce.SalesFact
266 | ;
267 |
268 | /* Create table nopCommerce.SalesFact */
269 | CREATE TABLE nopCommerce.SalesFact (
270 |
271 | [CustomerKey] int NOT NULL
272 | , [ProductKey] int NOT NULL
273 | , [AddressKey] int NOT NULL
274 | -- dimensions
275 | , [OrderItemID] int NOT NULL
276 | , [Quantity] int NOT NULL
277 | , [UnitPriceInclTax] decimal(18,4) NOT NULL
278 | -- facts
279 | , [DiscountAmontInclTax] decimal(18,4) NOT NULL
280 | , [ExtendedPriceAmount] decimal(18,4) NOT NULL
281 | , [SoldAmount] decimal(18,4) NOT NULL
282 | --keys
283 | , CONSTRAINT pkFactSales PRIMARY KEY (OrderItemID, AddressKey)
284 | , CONSTRAINT fkFactSalesProductKey FOREIGN KEY ( ProductKey )
285 | REFERENCES nopCommerce.DimProduct (ProductKey)
286 | , CONSTRAINT fkFactSalesCustomerKey FOREIGN KEY ( CustomerKey )
287 | REFERENCES nopCommerce.DimCustomer (CustomerKey)
288 | , CONSTRAINT fkFactSalesAddressKey FOREIGN KEY ( AddressKey )
289 | REFERENCES nopCommerce.DimAddress (AddressKey)
290 | )
291 | ;
292 |
293 |
294 | -- User-oriented view definition
295 | GO
296 | IF EXISTS (select * from sys.views where object_id=OBJECT_ID(N'[nopCommerce].[Sales]'))
297 | DROP VIEW [nopCommerce].[Sales]
298 | GO
299 | CREATE VIEW [nopCommerce].[Sales] AS
300 | SELECT [ProductKey] AS [ProductKey]
301 | , [AddressKey] AS [BillingAddress]
302 | , [OrderItemID] AS [OrderItemID]
303 | , [DateKey] AS [OrderDate]
304 | , [ProductQuantity] AS [Product Quantity]
305 | , [SoldAmount] AS [Sold Amount]
306 | , [OrderDiscount] AS [Product Discount]
307 | FROM nopCommerce.SalesFact
308 | GO
309 |
310 |
311 | /* Drop table nopCommerce.ProductRatingFact */
312 | IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'nopCommerce.ProductRatingFact') AND OBJECTPROPERTY(id, N'IsUserTable') = 1)
313 | DROP TABLE nopCommerce.ProductRatingFact
314 | ;
315 |
316 | /* Create table nopCommerce.ProductRatingFact */
317 | CREATE TABLE nopCommerce.ProductRatingFact (
318 | [CustomerKey] int NOT NULL
319 | , [ProductKey] int NOT NULL
320 | , [ProductReviewDateKey] int NOT NULL
321 | , [ProductReviewID] int NOT NULL
322 | , [Ratings] int NOT NULL
323 | , [VerifiedCustomer] int NOT NULL
324 | , CONSTRAINT [PK_nopCommerce.ProductRatingFact] PRIMARY KEY NONCLUSTERED
325 | ( [CustomerKey], [ProductKey], [ProductReviewDateKey], [ProductReviewID] )
326 | ) ON [PRIMARY]
327 | ;
328 |
329 | -- User-oriented view definition
330 | GO
331 | IF EXISTS (select * from sys.views where object_id=OBJECT_ID(N'[nopCommerce].[ProductRating]'))
332 | DROP VIEW [nopCommerce].[ProductRating]
333 | GO
334 | CREATE VIEW [nopCommerce].[ProductRating] AS
335 | SELECT [CustomerKey] AS [CustomerKey]
336 | , [ProductKey] AS [ProductKey]
337 | , [ProductReviewDateKey] AS [ProductReviewDateKey]
338 | , [ProductReviewID] AS [Product Review ID]
339 | , [Ratings] AS [Ratings]
340 | , [VerifiedCustomer] AS [Verified Customer]
341 | FROM nopCommerce.ProductRatingFact
342 | GO
343 |
344 | ALTER TABLE nopCommerce.ProductRatingFact ADD CONSTRAINT
345 | FK_nopCommerce_ProductRatingFact_CustomerKey FOREIGN KEY
346 | (
347 | CustomerKey
348 | ) REFERENCES nopCommerce.DimCustomer
349 | ( CustomerKey )
350 | ON UPDATE NO ACTION
351 | ON DELETE NO ACTION
352 | ;
353 |
354 | ALTER TABLE nopCommerce.ProductRatingFact ADD CONSTRAINT
355 | FK_nopCommerce_ProductRatingFact_ProductKey FOREIGN KEY
356 | (
357 | ProductKey
358 | ) REFERENCES nopCommerce.DimProduct
359 | ( ProductKey )
360 | ON UPDATE NO ACTION
361 | ON DELETE NO ACTION
362 | ;
363 |
364 | ALTER TABLE nopCommerce.ProductRatingFact ADD CONSTRAINT
365 | FK_nopCommerce_ProductRatingFact_ProductReviewDateKey FOREIGN KEY
366 | (
367 | ProductReviewDateKey
368 | ) REFERENCES nopCommerce.DimDate
369 | ( DateKey )
370 | ON UPDATE NO ACTION
371 | ON DELETE NO ACTION
372 | ;
--------------------------------------------------------------------------------
/ROLAP/Query for Verified.txt:
--------------------------------------------------------------------------------
1 | select DISTINCT pr.Id as review_id, p.Id as prod_id,
2 | c.id as cust_id,
3 | cast(LEFT(pr.CreatedOnUtc,11) as datetime) as reviewdate,
4 | pr.Rating as ratings,
5 | verified
6 | FROM [group9-nopCommerce].dbo.ProductReview pr
7 | left join [group9-nopCommerce].dbo.Product p
8 | on p.Id = pr.ProductId
9 | left join [group9-nopCommerce].dbo.Customer c
10 | on pr.CustomerId=c.Id
11 | join (SELECT pr.id as pr_id,verified = CASE ISNULL(op.Id,0) WHEN 0 THEN 0 ELSE 1 END
12 | FROM [group9-nopCommerce].dbo.ProductReview pr
13 | left Join (SELECT o.id,oi.ProductId,o.CustomerId FROM [group9-nopCommerce].[dbo].[Order] o
14 | join [group9-nopCommerce].dbo.OrderItem oi
15 | on o.Id=oi.OrderId) op
16 | on op.ProductId = pr.ProductId and op.CustomerId = pr.CustomerId) v
17 | on v.pr_id = pr.Id
18 |
--------------------------------------------------------------------------------
/SSAS/Product Rating Pivot.xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fareespatel/E-Commerce-Datawarehouse-implementation/b8a859991bd48019af286e58899a2e98f9fd4913/SSAS/Product Rating Pivot.xlsx
--------------------------------------------------------------------------------
/SSIS/Customer_Gender_age_data.csv:
--------------------------------------------------------------------------------
1 | CustomerID,Name ,Gender,BirthYear
2 | 1,John Smith,Male,1992
3 | 2,Steve Gates,Male,1992
4 | 3,Arthur Holmes,Male,1991
5 | 4,James Pan,Male,1990
6 | 5,Brenda Lindgren,Female,1980
7 | 6,Victoria Terces,Female,1987
8 | 13,Pratyush Kulwal,Male,1992
9 | 21,Stephanie Jonathan,Female,1992
10 | 30,Harry Potter,Male,1991
11 | 31,Ron Wesley,Male,1991
12 | 33,Rishikesh More,Male,1991
13 | 40,Jack Dorsey,Male,1995
14 | 44,tom smith,Male,1972
15 | 49,Sally Tomz,Female,1990
16 | 50,Vicky Lee,Female,1980
17 | 51,Ryan Dugan,Male,1972
18 | 54,Smith Smith,Male,1956
19 | 1645,Rocky Balbota,Male,1992
20 | 1647,Raj Mehta,Male,1992
21 | 1652,Rebecca Johnson,Female,1991
22 | 1657,Rocky Balobota,Male,1976
23 | 1658,Dash Wash,Male,1976
24 | 1659,Rebecca Wilson,Female,1976
25 | 1661,Heather Carr,Female,1991
26 | 1663,AB Devil,Male,1992
27 | 1664,Ban Car,Male,1991
28 | 1666,Charles Davis,Male,1991
29 | 1669,Devesh Chandra,Male,1993
30 | 1671,Dev Daga,Male,1980
31 | 1675,Farees P,Male,1995
32 | 1676,Elon Musk,Male,1972
33 | 1679,Crime Master Gogo,Male,1970
34 | 1682,Mohammed Patel,Male,1992
35 | 1692,Cristiano R,Male,1992
36 | 1693,Gareth Bale,Male,1992
37 | 1694,Luka Modric,Male,1992
38 | 1695,Toni Kroos,Male,1992
39 | 1701,Mike Rogers,Male,1992
40 | 1702,Rohit Gandhi,Male,1992
41 | 1704,Marcelo Vieira,Male,1983
42 | 1705,Karim Benzema,Male,1966
43 | 1706,Sergio Ramos,Male,1945
44 | 1708,James Rodriguez,Male,1982
45 | 1716,Mark Tomolson,Male,1969
46 | 1717,Kathleen Schwarz,Male,1999
47 | 1720,Andrew K,Male,1966
48 | 1722,Sanket Bhalerao,Male,1984
49 | 1737,Mario Gotze,Male,1992
50 | 1738,Robert Lewandowski,Male,1990
51 | 1739,Frank Ribery,Male,1980
52 | 1740,Arjen Robben,Male,1980
53 | 1744,Sanket Bhalerao,Male,1980
54 | 1747,Saloni Man,Female,1988
55 | 1748,Ci ci Bianca,Female,1988
56 | 1749,Devika Chitnis,Female,1988
57 | 1750,Radhika Apte,Female,1988
58 | 1753,Harry Kane,Male,1980
59 | 1754,Angella Christian,Female,1999
60 | 1755,Kim Kardesian,Female,1995
61 | 1756,Marta Correa,Female,1992
62 | 1757,Dani Alli,Male,1970
63 | 1758,Andrea Fleming,Female,1983
64 | 1759,Andrew Kante,Male,1960
65 | 1760,Marissa Gusmao,Female,1965
66 | 1761,A Cutinho,Female,1965
67 | 1762,Jose Mourinho,Female,1999
68 | 1763,Radamel Falcao,Male,2000
69 | 1764,John Trott,Male,2000
70 | 1765,John Roos,Male,1992
71 | 1767,zoe perry,Male,1993
72 | 1768,Asensio R,Female,1994
73 | 1769,Lila Jones,Female,1966
74 | 1770,Lio Messi,Male,1977
75 | 1771,Dani Alves,Male,1983
76 | 1772,Tim Nickels,Male,1965
77 | 1773,R Chellieni,Male,1932
78 | 1774,Rebecca Black,Female,1995
79 | 1775,A Dybala,Male,1991
80 | 1776,Guy Williams,Male,1960
81 | 1778,Ali katz,Male,1965
82 | 1779,Alan Rogers,Male,1945
83 | 1780,Savannah Smith,Female,1990
84 | 1781,carla white,Male,2000
85 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 14
4 | VisualStudioVersion = 14.0.25123.0
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{159641D6-6404-4A2A-AE62-294DE0FE8301}") = "Infibeam", "Integration Services Project2\Infibeam.dtproj", "{F82B09F2-064A-4A22-8BC7-EB4E50B17159}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Development|Default = Development|Default
11 | EndGlobalSection
12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
13 | {F82B09F2-064A-4A22-8BC7-EB4E50B17159}.Development|Default.ActiveCfg = Development
14 | {F82B09F2-064A-4A22-8BC7-EB4E50B17159}.Development|Default.Build.0 = Development
15 | EndGlobalSection
16 | GlobalSection(SolutionProperties) = preSolution
17 | HideSolutionNode = FALSE
18 | EndGlobalSection
19 | EndGlobal
20 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/Infibeam.dtproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Development
6 |
7 | true
8 |
9 |
10 | false
11 | true
12 |
13 |
14 | LastModifiedTime
15 | LastModifiedTime
16 | 2017-04-07T01:45:19.7904282Z
17 |
18 |
19 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/Integration Services Project2.database:
--------------------------------------------------------------------------------
1 |
2 | Integration Services Project2
3 | Integration Services Project2
4 | 0001-01-01T00:00:00Z
5 | 0001-01-01T00:00:00Z
6 | 0001-01-01T00:00:00Z
7 | Unprocessed
8 | 0001-01-01T00:00:00Z
9 |
10 | Default
11 | Unchanged
12 |
13 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/Integration Services Project2.dtproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Development
6 |
7 | true
8 |
9 |
10 | false
11 | true
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/Package.dtsx:
--------------------------------------------------------------------------------
1 |
2 |
16 | 8
18 |
19 |
20 |
29 |
30 |
31 |
32 | True
33 | DateDimensionImport.dtsx
34 |
35 |
36 |
37 |
46 |
47 |
48 |
49 | True
50 | Product_ratingfact.dtsx
51 |
52 |
53 |
54 |
63 |
64 |
65 |
66 | True
67 | Sales_fact.dtsx
68 |
69 |
70 |
71 |
80 |
81 |
82 |
83 | True
84 | Source_to_Stage_productrating_dim.dtsx
85 |
86 |
87 |
88 |
97 |
98 |
99 |
100 | True
101 | Source_to_Stage_Sales_all_dimensions.dtsx
102 |
103 |
104 |
105 |
106 |
107 |
115 |
123 |
131 |
139 |
140 |
141 |
142 |
143 |
144 |
146 |
147 |
149 |
150 |
152 |
156 |
160 |
163 |
164 |
169 |
170 |
172 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
186 |
189 |
190 |
195 |
196 |
198 |
200 |
204 |
206 |
210 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
224 |
227 |
228 |
233 |
234 |
236 |
238 |
242 |
244 |
248 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
262 |
265 |
266 |
271 |
272 |
274 |
276 |
280 |
282 |
286 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 |
299 | ]]>
300 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/Project.params:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/Source_to_Stage_productrating_dim.dtsx:
--------------------------------------------------------------------------------
1 |
2 |
16 | 8
18 |
19 |
20 |
29 |
30 |
31 |
33 |
34 |
42 |
43 | 0
47 | [stgProductRatingFact]
51 |
55 |
60 | 1252
64 | false
68 | 3
73 | false
77 | false
81 | TABLOCK,CHECK_CONSTRAINTS
85 | 2147483647
89 |
90 |
91 |
97 |
98 |
99 |
105 |
106 |
112 |
118 |
124 |
130 |
136 |
142 |
143 |
145 |
149 |
153 |
157 |
161 |
165 |
169 |
170 |
171 |
172 |
173 |
195 |
196 |
197 |
205 |
206 | 0
210 |
214 |
218 | SELECT DISTINCT pr.Id AS review_id, p.Id AS prod_id, c.id AS cust_id, CAST(LEFT(pr.CreatedOnUtc, 11) AS datetime) AS reviewdate, pr.Rating AS ratings, v.verified
223 | FROM ProductReview AS pr LEFT OUTER JOIN
224 | Product AS p ON p.Id = pr.ProductId LEFT OUTER JOIN
225 | Customer AS c ON pr.CustomerId = c.Id INNER JOIN
226 | (SELECT pr.id AS pr_id, CASE ISNULL(op.Id, 0) WHEN 0 THEN 0 ELSE 1 END AS verified
227 | FROM ProductReview AS pr LEFT OUTER JOIN
228 | (SELECT o.Id, oi.ProductId, o.CustomerId
229 | FROM [Order] AS o INNER JOIN
230 | OrderItem AS oi ON o.Id = oi.OrderId) AS op ON op.ProductId = pr.ProductId AND op.CustomerId = pr.CustomerId) AS v ON v.pr_id = pr.Id
231 |
235 | 1252
239 | false
243 | 2
248 |
252 |
253 |
254 |
260 |
261 |
262 |
349 |
399 |
400 |
401 |
402 |
403 |
408 |
409 |
410 |
411 |
412 |
422 |
423 |
424 |
427 |
428 |
429 |
430 |
431 |
439 |
440 |
441 |
442 |
443 |
444 |
446 |
447 |
449 |
450 |
452 |
456 |
460 |
463 |
464 |
469 |
470 |
472 |
474 |
478 |
480 |
484 |
486 |
487 |
488 |
489 |
490 |
491 |
492 |
493 |
494 |
495 |
496 |
497 |
499 |
500 |
502 |
506 |
510 |
513 |
514 |
519 |
520 |
522 |
524 |
528 |
530 |
534 |
536 |
537 |
538 |
539 |
540 |
541 |
544 |
545 |
546 |
547 |
548 |
549 |
551 |
552 |
553 | DataSourceViewID
554 |
555 |
556 | TableInfoObjectType
557 | Table
559 |
560 |
561 |
562 |
564 |
565 |
566 | DataSourceViewID
567 |
568 |
569 |
570 | ]]>
571 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/bin/Development/Infibeam.ispac:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fareespatel/E-Commerce-Datawarehouse-implementation/b8a859991bd48019af286e58899a2e98f9fd4913/SSIS/Integration Services Project2/bin/Development/Infibeam.ispac
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/ist-cs-dw1.ad.syr.edu.ExternalSources.conmgr:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
9 |
10 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/ist-cs-dw1.ad.syr.edu.group9-nopCommerce.conmgr:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
9 |
10 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/ist-cs-dw1.ad.syr.edu.ist722_group9_dw.conmgr:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
9 |
10 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/ist-cs-dw1.ad.syr.edu.ist722_group9_stage.conmgr:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
9 |
10 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/obj/Development/BuildLog.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Infibeam
5 | 2017-04-23T00:39:04.7706711Z
6 | EncryptSensitiveWithUserKey
7 |
8 |
9 |
10 | Package.dtsx
11 | 2017-04-25T21:05:45.1790833Z
12 | EncryptSensitiveWithUserKey
13 |
14 |
15 | DateDimensionImport.dtsx
16 | 2017-04-22T22:12:18.7896428Z
17 | EncryptSensitiveWithUserKey
18 |
19 |
20 | Sales_fact.dtsx
21 | 2017-04-24T15:34:57.2031665Z
22 | EncryptSensitiveWithUserKey
23 |
24 |
25 | Product_ratingfact.dtsx
26 | 2017-04-24T16:28:54.7459331Z
27 | EncryptSensitiveWithUserKey
28 |
29 |
30 | Source_to_Stage_Sales_all_dimensions.dtsx
31 | 2017-04-23T01:59:16.279744Z
32 | EncryptSensitiveWithUserKey
33 |
34 |
35 | Stage_to_DW_Sales_all_dimensions.dtsx
36 | 2017-04-24T15:34:21.0780827Z
37 | EncryptSensitiveWithUserKey
38 |
39 |
40 | Source_to_Stage_productrating_dim.dtsx
41 | 2017-04-24T16:30:17.9966392Z
42 | EncryptSensitiveWithUserKey
43 |
44 |
45 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/obj/Development/Infibeam.dtproj:
--------------------------------------------------------------------------------
1 |
2 |
3 | Project
4 | 13.0.1601.5
5 | 9.0.1.0
6 | $base64$PFNvdXJjZUNvbnRyb2xJbmZvIHhtbG5zOnhzZD0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEiIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOmRkbDI9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDAzL2VuZ2luZS8yIiB4bWxuczpkZGwyXzI9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDAzL2VuZ2luZS8yLzIiIHhtbG5zOmRkbDEwMF8xMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDA4L2VuZ2luZS8xMDAvMTAwIiB4bWxuczpkZGwyMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEwL2VuZ2luZS8yMDAiIHhtbG5zOmRkbDIwMF8yMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEwL2VuZ2luZS8yMDAvMjAwIiB4bWxuczpkZGwzMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDExL2VuZ2luZS8zMDAiIHhtbG5zOmRkbDMwMF8zMDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDExL2VuZ2luZS8zMDAvMzAwIiB4bWxuczpkZGw0MDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEyL2VuZ2luZS80MDAiIHhtbG5zOmRkbDQwMF80MDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEyL2VuZ2luZS80MDAvNDAwIiB4bWxuczpkZGw1MDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEzL2VuZ2luZS81MDAiIHhtbG5zOmRkbDUwMF81MDA9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vYW5hbHlzaXNzZXJ2aWNlcy8yMDEzL2VuZ2luZS81MDAvNTAwIiB4bWxuczpkd2Q9Imh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vRGF0YVdhcmVob3VzZS9EZXNpZ25lci8xLjAiPg0KICA8RW5hYmxlZD5mYWxzZTwvRW5hYmxlZD4NCiAgPFByb2plY3ROYW1lPjwvUHJvamVjdE5hbWU+DQogIDxBdXhQYXRoPjwvQXV4UGF0aD4NCiAgPExvY2FsUGF0aD48L0xvY2FsUGF0aD4NCiAgPFByb3ZpZGVyPjwvUHJvdmlkZXI+DQo8L1NvdXJjZUNvbnRyb2xJbmZvPg==
7 |
8 | Integration Services Project2.database
9 | Integration Services Project2.database
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | {6f8a9b01-0505-4e0e-a5a1-3ceb77276b7a}
18 | Infibeam
19 | 1
20 | 0
21 | 0
22 |
23 |
24 | 2017-04-06T21:00:28.6264961-04:00
25 | AD\pkulwal
26 | IST-LD-H020-08
27 |
28 |
29 | AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAQkS+itZVokCXu6bVz9Um0wAAAAACAAAAAAADZgAAwAAAABAAAACtyYfHiElX8tLW+sfrgRacAAAAAASAAACgAAAAEAAAACeWx9ZF1oNC9FxNupbIwCmIAAAAfvtveh9XwfdbJhQLF0DVVVG13eZgYu6S91rVQ4Epuwd3ZXKvAeQmsOGjpuAt+YXI1cX44q8bDL/hafsrhlUFKXkKmK/QnLs2XBvPIQKKyDlfuv/Nf+luMK76bvrog76CrXsHcfIzUO6ShqlqIFrgC2a90cuqkPzvZaUIVReGKsBWNSlKFRYVcxQAAAC6INUAot+bjsu9GxKX1WwB3fApgg==
30 | 1
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 | 0
58 | 0
59 | 0
60 | Data Source=ist-cs-dw1.ad.syr.edu;Initial Catalog=group9-nopCommerce;Provider=SQLNCLI11.1;Integrated Security=SSPI;Auto Translate=False;
61 | 18
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 | 0
73 | 0
74 | 0
75 | group9-nopCommerce
76 | 18
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 | 0
88 | 0
89 | 1
90 | 18
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 | 0
102 | 0
103 | 0
104 | false
105 | 3
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 | 0
117 | 0
118 | 0
119 | ist-cs-dw1.ad.syr.edu
120 | 18
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 | 0
132 | 0
133 | 0
134 | 18
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 | 0
146 | 0
147 | 0
148 | Data Source=ist-cs-dw1.ad.syr.edu;Initial Catalog=ist722_group9_dw;Provider=SQLNCLI11.1;Integrated Security=SSPI;Auto Translate=False;
149 | 18
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 | 0
161 | 0
162 | 0
163 | ist722_group9_dw
164 | 18
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 | 0
176 | 0
177 | 1
178 | 18
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 | 0
190 | 0
191 | 0
192 | false
193 | 3
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 | 0
205 | 0
206 | 0
207 | ist-cs-dw1.ad.syr.edu
208 | 18
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 | 0
220 | 0
221 | 0
222 | 18
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 | 0
234 | 0
235 | 0
236 | Data Source=ist-cs-dw1.ad.syr.edu;Initial Catalog=ist722_group9_stage;Provider=SQLNCLI11.1;Integrated Security=SSPI;Auto Translate=False;
237 | 18
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 | 0
249 | 0
250 | 0
251 | ist722_group9_stage
252 | 18
253 |
254 |
255 |
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 | 0
264 | 0
265 | 1
266 | 18
267 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 | 0
278 | 0
279 | 0
280 | false
281 | 3
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 | 0
293 | 0
294 | 0
295 | ist-cs-dw1.ad.syr.edu
296 | 18
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 | 0
308 | 0
309 | 0
310 | 18
311 |
312 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 | 0
322 | 0
323 | 0
324 | Data Source=ist-cs-dw1.ad.syr.edu;Initial Catalog=ExternalSources;Provider=SQLNCLI11.1;Integrated Security=SSPI;Auto Translate=False;
325 | 18
326 |
327 |
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 | 0
337 | 0
338 | 0
339 | ExternalSources
340 | 18
341 |
342 |
343 |
344 |
345 |
346 |
347 |
348 |
349 |
350 |
351 | 0
352 | 0
353 | 1
354 | 18
355 |
356 |
357 |
358 |
359 |
360 |
361 |
362 |
363 |
364 |
365 | 0
366 | 0
367 | 0
368 | false
369 | 3
370 |
371 |
372 |
373 |
374 |
375 |
376 |
377 |
378 |
379 |
380 | 0
381 | 0
382 | 0
383 | ist-cs-dw1.ad.syr.edu
384 | 18
385 |
386 |
387 |
388 |
389 |
390 |
391 |
392 |
393 |
394 |
395 | 0
396 | 0
397 | 0
398 | 18
399 |
400 |
401 |
402 |
403 |
404 |
405 | {0E9D021A-52E2-45B4-89C3-37DEA737AB8B}
406 | Package
407 | 1
408 | 0
409 | 1
410 |
411 |
412 | {E843C100-F0D9-4DD1-84A4-89215E70A1C6}
413 | 8
414 |
415 |
416 | 1
417 |
418 |
419 |
420 |
421 |
422 | {279F03F7-8BF3-479E-A815-DD0051A6B208}
423 | DateDimensionImport
424 | 1
425 | 0
426 | 6
427 |
428 |
429 | {7394801F-E18F-40E8-9444-F30D3D009DE7}
430 | 8
431 |
432 |
433 | 1
434 |
435 |
436 |
437 |
438 |
439 | {EEDB7F82-9428-4DF7-9798-9FD62EB5C30C}
440 | Sales_fact
441 | 1
442 | 0
443 | 86
444 |
445 |
446 | {3F2440F9-D5BE-45CB-84CE-4B140EBC33A7}
447 | 8
448 |
449 |
450 | 1
451 |
452 |
453 |
454 |
455 |
456 | {122B8333-B3F7-4B30-97AD-AE962DD069CF}
457 | Product_ratingfact
458 | 1
459 | 0
460 | 53
461 |
462 |
463 | {86F2CC54-4800-4907-86DF-46099BF6F6ED}
464 | 8
465 |
466 |
467 | 1
468 |
469 |
470 |
471 |
472 |
473 | {DFACF054-A33F-4ABD-8BB3-CE6645656727}
474 | Source_to_Stage_Sales_all_dimensions
475 | 1
476 | 0
477 | 61
478 |
479 |
480 | {EDC3D90F-BA52-45E5-BF3C-E501125860A0}
481 | 8
482 |
483 |
484 | 1
485 |
486 |
487 |
488 |
489 |
490 |
491 |
492 |
493 |
494 |
495 | 0
496 | 0
497 | 0
498 | true
499 | 3
500 |
501 |
502 |
503 |
504 |
505 |
506 |
507 |
508 |
509 |
510 | 0
511 | 0
512 | 0
513 | 1252
514 | 9
515 |
516 |
517 |
518 |
519 |
520 |
521 |
522 |
523 |
524 |
525 | 0
526 | 0
527 | 0
528 | true
529 | 3
530 |
531 |
532 |
533 |
534 |
535 |
536 |
537 |
538 |
539 |
540 | 0
541 | 0
542 | 0
543 | \\hd.ad.syr.edu\01\eb3016\Documents\Desktop\Project\Customer_Gender_age_data.csv
544 | 18
545 |
546 |
547 |
548 |
549 |
550 |
551 |
552 |
553 |
554 |
555 | 0
556 | 0
557 | 0
558 | 0
559 | 9
560 |
561 |
562 |
563 |
564 |
565 |
566 |
567 |
568 |
569 |
570 | 0
571 | 0
572 | 0
573 | Delimited
574 | 18
575 |
576 |
577 |
578 |
579 |
580 |
581 |
582 |
583 |
584 |
585 | 0
586 | 0
587 | 0
588 |
589 |
590 | 18
591 |
592 |
593 |
594 |
595 |
596 |
597 |
598 |
599 |
600 |
601 | 0
602 | 0
603 | 0
604 | 0
605 | 9
606 |
607 |
608 |
609 |
610 |
611 |
612 |
613 |
614 |
615 |
616 | 0
617 | 0
618 | 0
619 | 1033
620 | 9
621 |
622 |
623 |
624 |
625 |
626 |
627 |
628 |
629 |
630 |
631 | 0
632 | 0
633 | 0
634 | 18
635 |
636 |
637 |
638 |
639 |
640 |
641 |
642 |
643 |
644 |
645 | 0
646 | 0
647 | 0
648 | <none>
649 | 18
650 |
651 |
652 |
653 |
654 |
655 |
656 |
657 |
658 |
659 |
660 | 0
661 | 0
662 | 0
663 | false
664 | 3
665 |
666 |
667 |
668 |
669 |
670 |
671 |
672 |
673 |
674 |
675 | 0
676 | 0
677 | 0
678 | true
679 | 3
680 |
681 |
682 |
683 |
684 |
685 |
686 |
687 |
688 |
689 |
690 | 0
691 | 0
692 | 0
693 | 1252
694 | 9
695 |
696 |
697 |
698 |
699 |
700 |
701 |
702 |
703 |
704 |
705 | 0
706 | 0
707 | 0
708 | true
709 | 3
710 |
711 |
712 |
713 |
714 |
715 |
716 |
717 |
718 |
719 |
720 | 0
721 | 0
722 | 0
723 | \\hd.ad.syr.edu\01\eb3016\Documents\Desktop\Project\Customer_Gender_age_data.csv
724 | 18
725 |
726 |
727 |
728 |
729 |
730 |
731 |
732 |
733 |
734 |
735 | 0
736 | 0
737 | 0
738 | 0
739 | 9
740 |
741 |
742 |
743 |
744 |
745 |
746 |
747 |
748 |
749 |
750 | 0
751 | 0
752 | 0
753 | Delimited
754 | 18
755 |
756 |
757 |
758 |
759 |
760 |
761 |
762 |
763 |
764 |
765 | 0
766 | 0
767 | 0
768 |
769 |
770 | 18
771 |
772 |
773 |
774 |
775 |
776 |
777 |
778 |
779 |
780 |
781 | 0
782 | 0
783 | 0
784 | 0
785 | 9
786 |
787 |
788 |
789 |
790 |
791 |
792 |
793 |
794 |
795 |
796 | 0
797 | 0
798 | 0
799 | 1033
800 | 9
801 |
802 |
803 |
804 |
805 |
806 |
807 |
808 |
809 |
810 |
811 | 0
812 | 0
813 | 0
814 | 18
815 |
816 |
817 |
818 |
819 |
820 |
821 |
822 |
823 |
824 |
825 | 0
826 | 0
827 | 0
828 | <none>
829 | 18
830 |
831 |
832 |
833 |
834 |
835 |
836 |
837 |
838 |
839 |
840 | 0
841 | 0
842 | 0
843 | false
844 | 3
845 |
846 |
847 |
848 |
849 |
850 |
851 | {C0A3954D-5673-4C02-8058-239A9978A2EE}
852 | Stage_to_DW_Sales_all_dimensions
853 | 1
854 | 0
855 | 50
856 |
857 |
858 | {2F767E79-EAAB-4CA4-9477-69ED1EDEA4D3}
859 | 8
860 |
861 |
862 | 1
863 |
864 |
865 |
866 |
867 |
868 | {439BDC74-59C2-4AE5-BECC-2CF7F0CCF484}
869 | Source_to_Stage_productrating_dim
870 | 1
871 | 0
872 | 31
873 |
874 |
875 | {9ED3FE50-1C3A-470E-B2E4-E9A7281FFB30}
876 | 8
877 |
878 |
879 | 1
880 |
881 |
882 |
883 |
884 |
885 |
886 |
887 |
888 |
889 |
890 |
891 |
892 | Development
893 |
894 | bin
895 |
896 |
897 |
898 |
899 | SQLServer2016
900 |
901 |
902 | LastModifiedTime
903 | LastModifiedTime
904 | 2017-04-07T01:45:19.7904282Z
905 |
906 |
907 |
908 |
909 |
910 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/obj/Development/Package.dtsx:
--------------------------------------------------------------------------------
1 |
2 |
16 | 8
18 |
19 |
20 |
29 |
30 |
31 |
32 | True
33 | DateDimensionImport.dtsx
34 |
35 |
36 |
37 |
46 |
47 |
48 |
49 | True
50 | Product_ratingfact.dtsx
51 |
52 |
53 |
54 |
63 |
64 |
65 |
66 | True
67 | Sales_fact.dtsx
68 |
69 |
70 |
71 |
80 |
81 |
82 |
83 | True
84 | Source_to_Stage_productrating_dim.dtsx
85 |
86 |
87 |
88 |
97 |
98 |
99 |
100 | True
101 | Source_to_Stage_Sales_all_dimensions.dtsx
102 |
103 |
104 |
105 |
106 |
107 |
115 |
123 |
131 |
139 |
140 |
141 |
142 |
143 |
144 |
146 |
147 |
149 |
150 |
152 |
156 |
160 |
163 |
164 |
169 |
170 |
172 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
186 |
189 |
190 |
195 |
196 |
198 |
200 |
204 |
206 |
210 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
224 |
227 |
228 |
233 |
234 |
236 |
238 |
242 |
244 |
248 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
262 |
265 |
266 |
271 |
272 |
274 |
276 |
280 |
282 |
286 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 |
299 | ]]>
300 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/obj/Development/Project.params:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/obj/Development/Source_to_Stage_productrating_dim.dtsx:
--------------------------------------------------------------------------------
1 |
2 |
16 | 8
18 |
19 |
20 |
29 |
30 |
31 |
33 |
34 |
42 |
43 | 0
47 | [stgProductRatingFact]
51 |
55 |
60 | 1252
64 | false
68 | 3
73 | false
77 | false
81 | TABLOCK,CHECK_CONSTRAINTS
85 | 2147483647
89 |
90 |
91 |
97 |
98 |
99 |
105 |
106 |
112 |
118 |
124 |
130 |
136 |
142 |
143 |
145 |
149 |
153 |
157 |
161 |
165 |
169 |
170 |
171 |
172 |
173 |
195 |
196 |
197 |
205 |
206 | 0
210 |
214 |
218 | SELECT DISTINCT pr.Id AS review_id, p.Id AS prod_id, c.id AS cust_id, CAST(LEFT(pr.CreatedOnUtc, 11) AS datetime) AS reviewdate, pr.Rating AS ratings, v.verified
223 | FROM ProductReview AS pr LEFT OUTER JOIN
224 | Product AS p ON p.Id = pr.ProductId LEFT OUTER JOIN
225 | Customer AS c ON pr.CustomerId = c.Id INNER JOIN
226 | (SELECT pr.id AS pr_id, CASE ISNULL(op.Id, 0) WHEN 0 THEN 0 ELSE 1 END AS verified
227 | FROM ProductReview AS pr LEFT OUTER JOIN
228 | (SELECT o.Id, oi.ProductId, o.CustomerId
229 | FROM [Order] AS o INNER JOIN
230 | OrderItem AS oi ON o.Id = oi.OrderId) AS op ON op.ProductId = pr.ProductId AND op.CustomerId = pr.CustomerId) AS v ON v.pr_id = pr.Id
231 |
235 | 1252
239 | false
243 | 2
248 |
252 |
253 |
254 |
260 |
261 |
262 |
349 |
399 |
400 |
401 |
402 |
403 |
408 |
409 |
410 |
411 |
412 |
422 |
423 |
424 |
427 |
428 |
429 |
430 |
431 |
439 |
440 |
441 |
442 |
443 |
444 |
446 |
447 |
449 |
450 |
452 |
456 |
460 |
463 |
464 |
469 |
470 |
472 |
474 |
478 |
480 |
484 |
486 |
487 |
488 |
489 |
490 |
491 |
492 |
493 |
494 |
495 |
496 |
497 |
499 |
500 |
502 |
506 |
510 |
513 |
514 |
519 |
520 |
522 |
524 |
528 |
530 |
534 |
536 |
537 |
538 |
539 |
540 |
541 |
544 |
545 |
546 |
547 |
548 |
549 |
551 |
552 |
553 | DataSourceViewID
554 |
555 |
556 | TableInfoObjectType
557 | Table
559 |
560 |
561 |
562 |
564 |
565 |
566 | DataSourceViewID
567 |
568 |
569 |
570 | ]]>
571 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/obj/Development/ist-cs-dw1.ad.syr.edu.ExternalSources.conmgr:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
9 |
10 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/obj/Development/ist-cs-dw1.ad.syr.edu.group9-nopCommerce.conmgr:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
9 |
10 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/obj/Development/ist-cs-dw1.ad.syr.edu.ist722_group9_dw.conmgr:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
9 |
10 |
--------------------------------------------------------------------------------
/SSIS/Integration Services Project2/obj/Development/ist-cs-dw1.ad.syr.edu.ist722_group9_stage.conmgr:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
9 |
10 |
--------------------------------------------------------------------------------