T
ToniS
I would like to insert to the PacketSent Table that has 2 fields in it. I
have the following insert statement (I know it will not work because I am
only selecting one field and there are two in the table)
INSERT INTO ShowPacketSent (ShowID,ExhibitorAddressID)
SELECT EA.ExhibitorAddressID
FROM Exhibitors E
INNER JOIN ExhibitorAddresses EA ON E.ExhibitorID =
EA.ExhibitorID
WHERE (E.ShowCategories = 2 OR E.ShowCategories = 3) AND
(EA.PacketSent = 1)
My question is the showID information is stored in a public variable and not
in a table, how do I go about inserting both the showID and
ExhibitorAddressID into the table?
Thanks
ToniS
have the following insert statement (I know it will not work because I am
only selecting one field and there are two in the table)
INSERT INTO ShowPacketSent (ShowID,ExhibitorAddressID)
SELECT EA.ExhibitorAddressID
FROM Exhibitors E
INNER JOIN ExhibitorAddresses EA ON E.ExhibitorID =
EA.ExhibitorID
WHERE (E.ShowCategories = 2 OR E.ShowCategories = 3) AND
(EA.PacketSent = 1)
My question is the showID information is stored in a public variable and not
in a table, how do I go about inserting both the showID and
ExhibitorAddressID into the table?
Thanks
ToniS