T
Teresa Redmond
Hi, All;
I have one query left that I need help with, it's from one table to
another, like:
Additional:
Add_PKEY
Add_Num
Seat:
Seat_PKEY
Add_PKEY1
Add_PKEY2
Add_PKEY3
..
..
..
Add_PKEY12
I can't figure this out at all. Each record in Seat can have from 0
to 11 Add_PKEY values, the value can be either 0 or some text that
will match up with a record in Additional. I need one record as a
result of a query that will tell me the Seat_PKEY as well as the
Add_Num that corresponds to each of the Add_PKEYs in Seat. I am
totally stumped, have been trying things I'm seeing here, nothing is
quite it. This latest gives me a "missing operator" error:
SELECT Additional_CLINs
FROM Additional_CLIN_Nums ac INNER JOIN Seat_ID_Nums si ON
(ac.Add_CLINs_PKEY = si.Addl_CLIN12_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN11_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN10_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN9_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN8_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN7_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN6_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN5_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN4_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN3_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN2_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN1_PKEY);
I know this is very incorrect, I am just too close to it so that I
can't even see it anymore. Any help is greatly appreciated!
Thanks,
Teresa
--
~teresa~
AFH Barwench
^..^ "Never try to outstubborn a cat." Robert A. Heinlein ^..^
http://pixelmeow.com/ http://www.heinleinsociety.org/
http://pixelmeow.com/Book_Exchange/index.htm
http://pixelmeow.com/forum/
aim: pixelmeow msn: (e-mail address removed)
I have one query left that I need help with, it's from one table to
another, like:
Additional:
Add_PKEY
Add_Num
Seat:
Seat_PKEY
Add_PKEY1
Add_PKEY2
Add_PKEY3
..
..
..
Add_PKEY12
I can't figure this out at all. Each record in Seat can have from 0
to 11 Add_PKEY values, the value can be either 0 or some text that
will match up with a record in Additional. I need one record as a
result of a query that will tell me the Seat_PKEY as well as the
Add_Num that corresponds to each of the Add_PKEYs in Seat. I am
totally stumped, have been trying things I'm seeing here, nothing is
quite it. This latest gives me a "missing operator" error:
SELECT Additional_CLINs
FROM Additional_CLIN_Nums ac INNER JOIN Seat_ID_Nums si ON
(ac.Add_CLINs_PKEY = si.Addl_CLIN12_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN11_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN10_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN9_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN8_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN7_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN6_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN5_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN4_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN3_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN2_PKEY)
INNER JOIN ac on (ac.Add_CLINs_PKEY= si.Addl_CLIN1_PKEY);
I know this is very incorrect, I am just too close to it so that I
can't even see it anymore. Any help is greatly appreciated!
Thanks,
Teresa
--
~teresa~
AFH Barwench
^..^ "Never try to outstubborn a cat." Robert A. Heinlein ^..^
http://pixelmeow.com/ http://www.heinleinsociety.org/
http://pixelmeow.com/Book_Exchange/index.htm
http://pixelmeow.com/forum/
aim: pixelmeow msn: (e-mail address removed)