First I download all the latest orders. Then I run the following query to take all those orders (the ones in pending only) and dump them in a spreadsheet.
However, periodically, the spreadsheet does not include all the orders. Sometimes it misses an order or two.
Can anyone see anything wrong with the query below?
It is supposed to select all orders in pending only...
SELECT Person.Name, Person.ContactID, Person.[Address Line 1], Person.[Address Line 2], Person.[Address Line 3], Person.[Address Line 4], Person.[Postal Code], Person.[Address Country], Person.[Email Address], Person.[Phone Number], Order.[Order Number], OrderDetail.sProductDescription, OrderDetail.QuantityOrdered, Order.Status
FROM ([Order] INNER JOIN Person ON Order.DeliverContactID = Person.ContactID) INNER JOIN OrderDetail ON Order.[Order Sequence Number] = OrderDetail.OrderSequenceNumber
WHERE (((Order.Status)='N'));
However, periodically, the spreadsheet does not include all the orders. Sometimes it misses an order or two.
Can anyone see anything wrong with the query below?
It is supposed to select all orders in pending only...
SELECT Person.Name, Person.ContactID, Person.[Address Line 1], Person.[Address Line 2], Person.[Address Line 3], Person.[Address Line 4], Person.[Postal Code], Person.[Address Country], Person.[Email Address], Person.[Phone Number], Order.[Order Number], OrderDetail.sProductDescription, OrderDetail.QuantityOrdered, Order.Status
FROM ([Order] INNER JOIN Person ON Order.DeliverContactID = Person.ContactID) INNER JOIN OrderDetail ON Order.[Order Sequence Number] = OrderDetail.OrderSequenceNumber
WHERE (((Order.Status)='N'));
Comment