Using Pervasive SQL v8, this query ignores the WHERE clause. If I remove the INNER JOIN, the query works correctly. How do I do this query with the INNER JOIN?
Query = Select arlinh.documentnumber, arlinh.locationkey, arlinh.revenueacctkey, arlinh.shipdate, inloc.itemclasskey from arlinh INNER JOIN inloc ON (arlinh.itemkey = inloc.itemkey); WHERE ((arlinh.shipdate BETWEEN '2007-01-01' AND '2007-01-08') AND (arlinh.revenueacctkey BETWEEN '40000000' AND '4999Z999'))
With the INNER JOIN, all the records in the database are in the resulting recordset; while, without it, only the records defined by the WHERE clause are in the resulting recordset.