I have the first table like below:
Node Date Value
01R-123 2023-01-10 09
01R-123 2023-01-09 11
01R-123 2023-01-08 18
01R-123 2023-01-07 87
01R-123 2023-01-06 32
01R-123 2023-01-05 22
01R-123 2023-01-04 16
01R-123 2023-01-03 24
01R-123 2023-01-02 24
01R-123 2023-01-01 24
And second table like this :
Node Timestamp Method
01R-123 2023-01-10 Jet
01R-123 2023-01-09 Jet
01R-123 2023-01-08 Jet
01R-123 2023-01-05 Jet
01R-123 2023-01-04 Jet
01R-123 2023-01-03 Jet
01R-123 2022-12-30 Jet
01R-123 2022-12-29 Jet
01R-123 2022-12-28 Jet
01R-123 2022-12-25 Jet
These two tables are joined according below detail:
Based on two conditions-
First: a.[Node] = b.[Node]
Second: a.[Date] = b.[Timestamp]
Now the question is:
In the first table, date is continuous but not in the second table AND when both tables are joined using above condition the dates and correspondent values available in the second table are shown. But I need to get the date in a continuous manner.
After all, I need data like below table:
Node Date Value Method
01R-123 2023-01-10 09 Jet
01R-123 2023-01-09 11 Jet
01R-123 2023-01-08 18 Jet
01R-123 2023-01-07 87 Jet
01R-123 2023-01-06 32 Jet
01R-123 2023-01-05 22 Jet
01R-123 2023-01-04 16 Jet
01R-123 2023-01-03 24 Jet
01R-123 2023-01-02 24 Jet
01R-123 2023-01-01 24 Jet
Again, joining condition for both table is also DATE