In the past, I did RIGHT JOINS without any problems. However, for some reason, I cannot successfully join the date table in the date field. So, I have two tables. The first table has one date column and several more columns that do not contain dates. Then I have a date table that has only two date columns.
I initialize this date table by inserting the first monthly dates into it for 13 consecutive months. But my other table has only 9 months of data.
So table A looks like this:
col_A col_B col_C
----- ------ -------
sfds jkjlj 7-1-2009
rewr sfsfsd 5-1-2009
xcxvg sdfsfk 4-1-2009
...
But table B looks like this:
StartDate EndDate
7-1-2009 7-31-2009
6-1-2009 6-30-2009
5-1-2009 5-31-2009
...
But when I correctly attach table B to A like this:
SELECT *
FROM TABLE_A A
RIGHT JOIN TABLE_B B ON A.COL_C = B.StartDate
12 , Table_B 13 /. 9 . - , ? ?
- Table_A 13 , . 9 , 4 .