I have two tables that look like this:
|Year|Month|Day|Hour|
|---|---|---|---|
|2009|1|1|0|
|2009|1|1|1|
|2009|1|1|2|
|2009|1|1|3|
|2009|1|1|4|
|2009|1|1|5|
|2009|1|1|6|
|2009|1|1|7|
|2009|1|1|8|
|2009|1|1|9|
|2009|1|1|10|
|Year|Month|Day|Weekday|Holiday|
|---|---|---|---|---|
|2009|1|1|4|1|
|2009|1|2|5|0|
|2009|1|3|6|0|
|2009|1|4|0|0|
How can I join the Weekday and Holiday columns from Table2 to the Table1 and it fills up values based on table 2? Sorry if this is confusing