This *may not* be the same type of question.. but I want to select all the news from the last *5 days posted in* (so.. maybe one's 3 days ago and the next is 5 days ago.. and so on) and INNER JOIN THEM so that news items in similar days are listed under one heading..
the only idea that came to mind was:
SELECT * from news as newsdate INNER JOIN news as newsdata on dayofyear(newsdate.date) = dayofyear(newsdata.date)
however.. that obviously doesn't work.. and I have no idea what the real commands would be..
the only idea that came to mind was:
SELECT * from news as newsdate INNER JOIN news as newsdata on dayofyear(newsdate.date) = dayofyear(newsdata.date)
however.. that obviously doesn't work.. and I have no idea what the real commands would be..