CREATE VIEW dbo.PacketInfoView AS
/*
  Changes:
*/
SELECT dtRange.IndividualDate AS View_DateStamp, MAX(Id) AS View_Id, FK_ProductNumber AS View_FK_ProductNumber, PacketType AS View_PacketType
FROM ProductPricePacket WITH (NOLOCK) 
CROSS APPLY dbo.DateRange(ProductPricePacket.StartDate, ProductPricePacket.EndDate, ProductPricePacket.FK_PacketNumber) AS dtRange
GROUP BY dtRange.IndividualDate, FK_ProductNumber, PacketType