I'm trying to run the following query through excel VBA to an accpac 5.5 pervasive database:
I get this when I run from Aqua Studio:
60 record(s) selected [Fetch MetaData: 15/ms] [Fetch Data: 72407/ms]
[Executed: 26/01/09 9:33:00 EST AM ] [Execution: 5141/ms]
Is there a way to make this faster ? Is the SQL badly built ?
Code:
SELECT ICITMV.VENDNUM, ICITMV.VENDNAME, ICILOC.ITEMNO, ICILOC.QTYONHAND, ICILOC.QTYONORDER, ICILOC.QTYSALORDR, ICILOC.QTYONHAND-ICILOC.QTYSALORDR AS NET_AVAIL, ICSTATI.SALESQTY, ICSTATI.SALESQTY/365 AS DDD
FROM ICSTATI INNER JOIN (ICILOC INNER JOIN ICITMV ON ICILOC.ITEMNO = ICITMV.ITEMNO) ON ICSTATI.ITEMNO = ICITMV.ITEMNO
WHERE (((ICITMV.VENDNUM)='22280') AND ((ICSTATI.YEAR)='2008') AND ((ICSTATI.PERIOD)=10));
I get this when I run from Aqua Studio:
60 record(s) selected [Fetch MetaData: 15/ms] [Fetch Data: 72407/ms]
[Executed: 26/01/09 9:33:00 EST AM ] [Execution: 5141/ms]
Is there a way to make this faster ? Is the SQL badly built ?