M
Mark A. Sam
Hello,
I am sure that I am doing this query correctly, but getting what appear to
be incorrect results. My client says that he sold 163 Production Dies (code
'pd') in November of 2008. On a set of queries that that I ran, against all
of the orders and products for that month, I got 163 Production Dies, which
matches my clients number. To test this I ran a simple select query on
Orders for only 'pd' and get a different result of 228 Orders which is more
than the reported number of Production Dies.
I posted an image of the query at
http://www.promote.org/newsgroups/queryimage.aspx
and here is the SQL
SELECT DISTINCT [Order Entry Header].ordJob, [Order Entry ST
Products].detProdCode
FROM [Order Entry Header] INNER JOIN [Order Entry ST Products] ON [Order
Entry Header].ordID = [Order Entry ST Products].ordID
WHERE ((([Order Entry ST Products].detProdCode)="pd") AND (([Order Entry
Header].ordInvDate) Between #11/1/2008# And #11/30/2008#))
ORDER BY [Order Entry Header].ordJob;
This should yield the all of and only the Orders that have Production Dies
in November?
Thanks for the help and God Bless,
Mark A. Sam
I am sure that I am doing this query correctly, but getting what appear to
be incorrect results. My client says that he sold 163 Production Dies (code
'pd') in November of 2008. On a set of queries that that I ran, against all
of the orders and products for that month, I got 163 Production Dies, which
matches my clients number. To test this I ran a simple select query on
Orders for only 'pd' and get a different result of 228 Orders which is more
than the reported number of Production Dies.
I posted an image of the query at
http://www.promote.org/newsgroups/queryimage.aspx
and here is the SQL
SELECT DISTINCT [Order Entry Header].ordJob, [Order Entry ST
Products].detProdCode
FROM [Order Entry Header] INNER JOIN [Order Entry ST Products] ON [Order
Entry Header].ordID = [Order Entry ST Products].ordID
WHERE ((([Order Entry ST Products].detProdCode)="pd") AND (([Order Entry
Header].ordInvDate) Between #11/1/2008# And #11/30/2008#))
ORDER BY [Order Entry Header].ordJob;
This should yield the all of and only the Orders that have Production Dies
in November?
Thanks for the help and God Bless,
Mark A. Sam