Jump to content

Selecting data used in a FIND_IN_SET type query


JD*

Recommended Posts

I wasn't really sure how to phrase the subject and I'm not sure if this can be done, but lets see:

 

I have yearly data that is stored like this:

 

Name | Agreed

--------|----------

Joe    | 2009-2010,2010-2011

Mary  | 2009-2010

 

What I'm trying to do is make a query for a drop down list that will say "Please choose a year range" and I want to avoid hand coding it, but rather list only those years that have already been entered by people. Since each date isn't stored in a separate column I don't think I can do group by.

 

Anyone have some thoughts on if it can be accomplished?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.