Hello All
I need help combining two tables in my MySQL database. First, here are my two tables:
What I am looking for is an output similar to this, when I make a query for the current month/year:Code:TABLE: events TABLE: staticEvents id - int id - int eventName - text eventName - text eventDate - date eventMonth - tinyint eventLength - int eventDay - tinyint eventLength - int
I intentionally made the "date" in staticEvents the way I did for a reason, so I can't really change it. If anybody could help a guy out with a query, I would really appreciate it.Code:+--------------+-----------------+----------------+ |eventDate | eventName | eventLength | +--------------+-----------------+----------------+ | 2011-12-01 | event01 | 1 | | 2011-12-01 | event02 | 7 | | 2011-12-15 | staticEvent01 | 1 | | 2011-12-25 | event02 | 5 | | 2011-12-31 | staticEvent02 | 1 | +--------------+-----------------+----------------+
Thanks for taking the time to read, and have a great day.![]()


Reply With Quote





Bookmarks