We help IT Professionals succeed at work.
Get Started

SQL View syntax question

sbornstein2
sbornstein2 asked
on
72 Views
Last Modified: 2015-03-02
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?
Comment
Watch Question
Senior DBA
CERTIFIED EXPERT
Most Valuable Expert 2018
Distinguished Expert 2019
Commented:
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE