Skip to content

Commit

Permalink
Add Product.xml test
Browse files Browse the repository at this point in the history
  • Loading branch information
raczeja committed Feb 10, 2021
1 parent d000041 commit d1d462a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion test-definitions/key_comparator/Product/insert.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ INSERT INTO [dbo].[TemplateKeyComparatorProducts]
,[Quantity])
VALUES
(11,123 ,'2020-09-09',300),
(12,124 ,'2020-09-10',400)
(12,124 ,'2020-09-10',400),
(13,123 ,'2020-09-09',300),
(14,123 ,'2020-09-09',300),
(11,124 ,'2020-09-09',300),
(12,123 ,'2020-09-09',300),
(14,123 ,'2020-09-09',300),
(15,123 ,'2020-09-09',300),
(15,125 ,'2020-09-09',300)



6 changes: 3 additions & 3 deletions test-definitions/key_comparator/Product/product.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pr.[StoreNumber]
,pr.ProductID
,pr.[Date]
,sum(pr.[Quantity])
,pr.[Quantity]
FROM [dbo].[TemplateKeyComparatorProducts] pr
inner join AdventureWorks2008R2.dbo.TemplateKeyComparatorCheckAggregators d on d.[StoreNumber]=pr.[StoreNumber] and d.ProductID=pr.ProductID
group by pr.[StoreNumber],pr.ProductID,pr.Date
inner join AdventureWorks2008R2.dbo.TemplateKeyComparatorCheckAggregators d
on d.[StoreNumber]=pr.[StoreNumber] and d.ProductID=pr.ProductID

0 comments on commit d1d462a

Please sign in to comment.