Hi guys, i have an append query as seen below:
INSERT INTO ozekismsout ( receiver, status, msg )
SELECT wompromo.SMS, message.Status, message.Message
FROM ozekismsout, purchase, message, wompromo
ORDER BY wompromo.SMS;
Problem with this query is that when it appends to the table "ozekismsout" it creates anything from 12,24 to 36 records for the same result when it should just be creating just one.
Bit of background: "wompromo" as seen above is a query which goes like this:
SELECT Customer.SMS
FROM Customer INNER JOIN purchase ON Customer.ID = purchase.[Customer ID]
WHERE (((purchase.Item) Like "Women"));
There is only one customer who matches this criteria, so why on earth does it generate the same entry numerous times (via append query into ozekismsout) instead of once?
INSERT INTO ozekismsout ( receiver, status, msg )
SELECT wompromo.SMS, message.Status, message.Message
FROM ozekismsout, purchase, message, wompromo
ORDER BY wompromo.SMS;
Problem with this query is that when it appends to the table "ozekismsout" it creates anything from 12,24 to 36 records for the same result when it should just be creating just one.
Bit of background: "wompromo" as seen above is a query which goes like this:
SELECT Customer.SMS
FROM Customer INNER JOIN purchase ON Customer.ID = purchase.[Customer ID]
WHERE (((purchase.Item) Like "Women"));
There is only one customer who matches this criteria, so why on earth does it generate the same entry numerous times (via append query into ozekismsout) instead of once?