Query needs to loop?
- From: "DonSQL2222" <DonSQL2222@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 25 Aug 2005 14:55:34 -0700
Is this possible?
A char variable length field contains this data: (for example)
ABC,XYZ,GEF,CAB
I need to query another table on the contents of each of these names that
are separated by comma.
I need to read ABC and then query another table for ABC in field1 and pick
up some fields.
Then, I need to do the same for XYZ, etc, reading across.
How can I parse the field that's comma delim, and in one continuous select
statment pick all the data from another table? Put a looping statement into
the Select statement to read through the comma delim field until done?
Thanks,
Don
.
- Follow-Ups:
- Re: Query needs to loop?
- From: Hugo Kornelis
- Re: Query needs to loop?
- Prev by Date: Re: How to Join a table with Other (result) Tables ? Complex one
- Next by Date: Re: Query needs to loop?
- Previous by thread: How to Join a table with Other (result) Tables ? Complex one !
- Next by thread: Re: Query needs to loop?
- Index(es):
Relevant Pages
|
|