Is it possible to perform a join operation to the result of a split function?
I have a simple table and one of the fields is an array of dates (e.g. 1/1/2010, 2/1/2010, 3/1/2010). I didn't bother putting this info in another table because it is pretty rare for there to be multiple dates, but it happens. For most of my database I just need the first date which I can pull out using a split() or str(). But for one particular query I need to have all the dates so I want to create a JOIN on the result of the split() function. Is this possible?
I tried:
SELECT tbl_Initiatives.Name, DateGroup.Date
FROM tbl_Initiatives INNER JOIN (SELECT tbl_Initiative.pk_InitiativeID, Split(tbl_Initiatives.Dates, ",")) AS DateGroup
And I got stuck. Any suggestions?
Thanks!