T
tekari
Hi,
I'm not too well versed in SQL so I'm not sure if thats the method to
accomplish what I'm looking for, but I can't seem to do it with just
the design view of a normal query.
I have a query setup to pull information from a single table.
Example of table setup:
NUMBER CODE DATE
24311 VG 1/1/07
24311 ABC 1/1/07
24311 DEF 1/1/07
1055 BG 1/1/07
1055 DEF 1/1/07
1055 EF 1/1/07
6677 VG 1/1/07
6677 PC 1/1/07
What I'm looking for is a way to pull all of a group of numbers where
there is a CODE equal to VG.
So in the above case it would pull every single 24311 line because VG
is in one of the code lines. It would also pull all of the 6677's
because VG is there. However it would not pull anything from the 1055
line.
Is there anyway to accomplish this? Am I making this more difficult
then it needs to be?
Thanks as always for any help!
I'm not too well versed in SQL so I'm not sure if thats the method to
accomplish what I'm looking for, but I can't seem to do it with just
the design view of a normal query.
I have a query setup to pull information from a single table.
Example of table setup:
NUMBER CODE DATE
24311 VG 1/1/07
24311 ABC 1/1/07
24311 DEF 1/1/07
1055 BG 1/1/07
1055 DEF 1/1/07
1055 EF 1/1/07
6677 VG 1/1/07
6677 PC 1/1/07
What I'm looking for is a way to pull all of a group of numbers where
there is a CODE equal to VG.
So in the above case it would pull every single 24311 line because VG
is in one of the code lines. It would also pull all of the 6677's
because VG is there. However it would not pull anything from the 1055
line.
Is there anyway to accomplish this? Am I making this more difficult
then it needs to be?
Thanks as always for any help!