Hi team,
I want to provide adate time parameter "Next4days " to my query. But there is no parameter type Date and time. It is Date and time range which I can not compare with the date time. Here is my query:
Select CcyPair, Buy_Sell, ProductType,count(*), round(cast((sum (case when DeliveryDate > $Next4days + 10 and DeliveryDate < $Next4days + 30 then case when FirstCcy =BaseCcy then FirstCcyAmt else SecondCcyAmt end else 0 end) : sum (case when FirstCcy =BaseCcy then FirstCcy_Amt else SecondCcy_Amt end) ) * 100 as Decimal) , 2) From ImportData.TradeListLine
Please let me know if this is possible.