I have done this in reverse with the Membership Test (IN) and I have figured
out a way for it to work (example below) but this does not seem the best
way. Can I ask for some SQL input?
I have one field in a database (SQL Server 2000) that contains a comma
separated list of state abbr. (AL,CA,TX). I am submitting ONE state
selection (CA) for example to a query. I simply need to go to the database
and select records CONTAINING 'CA' within the comma delimited list..
Here is what I have (abbreviated for simplicity) - the database field with
the comma delimited list is named states. The variable FORM.stateabbr is
sent in via a form.
SELECT *
FROM Members
WHERE States LIKE '%#FORM.stateabbr#%'
Please share your input. I am not the greatest GURU at SQL but I am thinking
that there is a more eloquent (and reliable) way of doing this particular
search.
Tony
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- CFInstall fails & Blocked port 510... Andrew Scott
- RE: CFInstall fails & Blocked... Kwang Suh
- RE: CFInstall fails & Blo... Andrew Scott
- RE: CFInstall fails & Blo... Kwang Suh
- RE: CFInstall fails & Blo... Andrew Scott
- RE: CFInstall fails & Blo... Kwang Suh
- RE: CFInstall fails & Blo... Andrew Scott
- Port 51010 problem solved - R... Andrew Scott
- Re: Port 51010 problem solved... Ken Wilson
- RE: Port 51010 problem solved... Andrew Scott
- Re: SQL Pickle Tony Gruen
- Re: SQL Pickle Paul Hastings
- RE: SQL Pickle Tony Gruen
- RE: CFInstall fails & Blo... Jochem van Dieten
- RE: Macromedia.com running on top of Mach II Stacy Young
- Re: Macromedia.com running on top of Mach II Matt Liotta
- RE: Macromedia.com running on top of Mach II Stacy Young
- RE: Macromedia.com running on top of Mach II B G
- Re:Macromedia.com running on top of Mach II Michael Dinowitz
- Re: Macromedia.com running on top of Mach II Christian Cantrell
- Re: Macromedia.com running on top of Mach II Michael Dinowitz