sbornstein2
asked on
SQL View syntax question
Hello all,
I have a view that has records such as this:
SELECT ExchangeRateDate, CurrencyCode, ExchangeRate FROM ExchangeRate
ExchangeRateDate CurrencyCode ExchangeRate
2/19/2015 GBP 1.1255
2/19/2015 ANG 0.6522
2/20/2015 GBP 1.3525
2/20/2015 ANG 0.7525
2/23/2015 GBP 1.8525
2/23/2015 ANG 0.4525
Problem is the source table does not store weekend exchange rates. What I want to do is carry forward any Friday record to the Saturday and Sunday so creating records for this where in the above example I would have 4 more records. How can I accomplish this in my view?
I have a view that has records such as this:
SELECT ExchangeRateDate, CurrencyCode, ExchangeRate FROM ExchangeRate
ExchangeRateDate CurrencyCode ExchangeRate
2/19/2015 GBP 1.1255
2/19/2015 ANG 0.6522
2/20/2015 GBP 1.3525
2/20/2015 ANG 0.7525
2/23/2015 GBP 1.8525
2/23/2015 ANG 0.4525
Problem is the source table does not store weekend exchange rates. What I want to do is carry forward any Friday record to the Saturday and Sunday so creating records for this where in the above example I would have 4 more records. How can I accomplish this in my view?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
ASKER