Skip to content
Advertisement

SQL – get the value of the related update by date

Say I have 2 tables

Orders:

And I have a table that contains updates of the dollar to pound values on various dates

My goal is to query for the pound price, using the updated price for the time, so I get something like this

How can I connect the 2 tables? Using equals won’t work, as

Advertisement

Answer

You could use this:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement