Gossamer Forum
Home : General : Databases and SQL :

Select command question

Quote Reply
Select command question
I have a group of numbers (separated by spaces) in a field that I would like to access.

I know what acctno is beforehand. Let's say it is 2306.

Lets say that I have the following in the relatedaccts column for the coa table:2206 2306 2406

I tried SELECT * FROM coa WHERE acctno IN (relatedaccts)

I received no errors but I did not get any results either.

Is there a way to do this?


Gene
"The older I get, the more I admire competence, just simple competence in any field from adultery to zoology."
Subject Author Views Date
Thread Select command question esm 6587 May 6, 2003, 9:14 AM
Thread Re: [esm] Select command question
Paul 6421 May 6, 2003, 1:53 PM
Thread Re: [Paul] Select command question
esm 6415 May 6, 2003, 3:10 PM
Thread Re: [esm] Select command question
Netmos 6333 Jul 7, 2003, 7:10 AM
Post Re: [Netmos] Select command question
esm 6221 Jul 7, 2003, 9:23 PM