Hi folks
Hope you can help me with this one - I've been trying to figure out a way to do the following query for about a week now. And not getting anywhere!
I'm building a web-based administration-system for a rock festival and I need to retrieve some information about the next concerts on each stage in the festival.
I have 3 tables: tblConcert, tblBand and tblVenue.
What I would like to retrieve from the database is the following data:
tblConcert.ConcertID
tblConcert.ConcertStartTime
tblBand.BandName
tblVenue.VenueName
But: I need to just retrieve the NEXT concert in all venues. So what I need is a way to retrieve for each venue the concert with the earliest start-time - and that start-time should be later than or equal to Now().
I've been trying with GROUP BY and a lot of other things, but nothing seems to work for me.
Could someone please help?
Best
Rasmus Wehner
Mimia
Hope you can help me with this one - I've been trying to figure out a way to do the following query for about a week now. And not getting anywhere!
I'm building a web-based administration-system for a rock festival and I need to retrieve some information about the next concerts on each stage in the festival.
I have 3 tables: tblConcert, tblBand and tblVenue.
What I would like to retrieve from the database is the following data:
tblConcert.ConcertID
tblConcert.ConcertStartTime
tblBand.BandName
tblVenue.VenueName
But: I need to just retrieve the NEXT concert in all venues. So what I need is a way to retrieve for each venue the concert with the earliest start-time - and that start-time should be later than or equal to Now().
I've been trying with GROUP BY and a lot of other things, but nothing seems to work for me.
Could someone please help?
Best
Rasmus Wehner
Mimia