Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Help

Status
Not open for further replies.

ck1999

Technical User
Dec 2, 2004
784
US
I know a little about querries but not complicated ones.

I have 2 tables

table1
masterid1
classes <-- This is a string field with comma seperated values


tblclasses
masterID2
field1
field2 <-- This is a string field that has comma seperated values
a bunch of of other fields that are irrelevant

So what I am trying to do is have a query to gather all the field2 values from tblclasses for each masterID in Field 1.

Example

Table1. (1 row of data)
Masterid1 = 1000
classes = Math, PE, Science, English,

tblclasses (1 row of data)
field1 = math
field2 = algebra, geometry, calculus, statistics

next row
field 1 = English
field 2 = american lit, british lit, grammer, essay


The query or code will generate something to the effect of

Where masterid1= 1000
str = algebra, geometry, calculus, statistics, american lit, british lit, grammer, essay

Any ideas?

Thanks a lot

Chris





 
This doesn't have anything to do with VB - please see a SQL forum (forum183).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top