hi,
i have this query and when executed in mySQL query window throws error that "Big Query - Query not completely stored in memory". Also executed thru app, the program justs hangs. I have checked all indexes, they all look good.
----------------------------------------------------
Select sum(qtk.span) as Linqty , qth.qtnum, qtk.qtlin, sum(qtk.lnqty) as lnqty,qtl.idesc,qtk.plies,qtk.untot,qtk.ptype,(qth.csnam)as selectcust,cus.grpcd,(qtk.span) as span, (qth.qtalt) as ID from qth,cus,qtk,qtl where cus.ccode = qth.ccode and qth.qtnum =qtk.qtnum and qth.qtor = 'OR' and qth.qtnum IN (Select qth.qtnum from qth where qth.invdt >= {d '2005-02-01'} AND qth.invdt <= {d '2005-03-17'}) And cus.grpcd like '%'group by qth.qtnum,qtl.idesc ,qtk.qtlin,
qtk.plies,qtk.untot,qtk.ptype,qth.csnam,cus.grpcd,qtk.span order by qtl.idesc
i have this query and when executed in mySQL query window throws error that "Big Query - Query not completely stored in memory". Also executed thru app, the program justs hangs. I have checked all indexes, they all look good.
----------------------------------------------------
Select sum(qtk.span) as Linqty , qth.qtnum, qtk.qtlin, sum(qtk.lnqty) as lnqty,qtl.idesc,qtk.plies,qtk.untot,qtk.ptype,(qth.csnam)as selectcust,cus.grpcd,(qtk.span) as span, (qth.qtalt) as ID from qth,cus,qtk,qtl where cus.ccode = qth.ccode and qth.qtnum =qtk.qtnum and qth.qtor = 'OR' and qth.qtnum IN (Select qth.qtnum from qth where qth.invdt >= {d '2005-02-01'} AND qth.invdt <= {d '2005-03-17'}) And cus.grpcd like '%'group by qth.qtnum,qtl.idesc ,qtk.qtlin,
qtk.plies,qtk.untot,qtk.ptype,qth.csnam,cus.grpcd,qtk.span order by qtl.idesc