Well, I know one way to do it, but it would *NOT* guarantee that each record from your primary table would get a *UNIQUE* image from the second table.
In other words, if you showed 10 dates and titles, you might find that you would get 7 different images, with 3 of the images repeated. etc.
And I do see another more complex way to do this where each date/title would get a unique image *provided* there are at least as many image records as there are data/title records.
But, really, it would probably be easier to just do this as two separate queries and let your PHP/ASP/JSP/whatever code get one record from each table.
You could do both
Code:
SELECT * FROM dates_and_titles ORDER BY something;
SELECT imageURL FROM images ORDER BY RAND();
And just run a loop where you get one record from each query each time through the loop.
But if you really need a MySQL solution we could make one.