GastroScout
Programmer
Hi,
First off: my site - - runs CF 5/SQL server 7.0, and has around 24,000 records (restaurants in Germany, Austria, Switzerland)
For historical reasons, the "Cuisine" field is defined as a simple text (nvarchar) field that contains multiple, comma/blank-delimited values for each restaurant (i.e. "international, German, French". What I want to do is - for any given selection - populate an HTML Select dropdown containing all the cuisine values for the given selection, with no duplicates.
I can't use SELECT DISTINCT because the field contains multiple values...
Specific example: the selection results in the following hits:
RestaurantNumber Cuisine
1 international
2 international, German
3 French, Italian
4 Italian, German
5 American, German, international
The dropdown, which would be used to narrow the selection in a follow-on search, should look like this:
- American
- French
- German
- international
- Italian
Is there any way to do this with the existing structure or do I have to create a new structure (i.e. nested table) and copy the data?
Thanks in advance for your help,
Jeff Zalkind
Editor-in-Chief and Webmaster, GastroScout.com
First off: my site - - runs CF 5/SQL server 7.0, and has around 24,000 records (restaurants in Germany, Austria, Switzerland)
For historical reasons, the "Cuisine" field is defined as a simple text (nvarchar) field that contains multiple, comma/blank-delimited values for each restaurant (i.e. "international, German, French". What I want to do is - for any given selection - populate an HTML Select dropdown containing all the cuisine values for the given selection, with no duplicates.
I can't use SELECT DISTINCT because the field contains multiple values...
Specific example: the selection results in the following hits:
RestaurantNumber Cuisine
1 international
2 international, German
3 French, Italian
4 Italian, German
5 American, German, international
The dropdown, which would be used to narrow the selection in a follow-on search, should look like this:
- American
- French
- German
- international
- Italian
Is there any way to do this with the existing structure or do I have to create a new structure (i.e. nested table) and copy the data?
Thanks in advance for your help,
Jeff Zalkind
Editor-in-Chief and Webmaster, GastroScout.com