Advertisement

08.31.2005 at 12:55PM PDT, ID: 21546832
[x]
Attachment Details

Improve SQL Performance

Asked by rnshh in Databases Miscellaneous

Hello,
I have a query that I'd like to improve the performance on. The engine is Pervasive PSQL8

Select J.Custno,J.ShipAddress1,J.Jobnum,JL.Linenum,JL.PartNumber,JL.JobSerialNumber,JL.Item,JL.FilterSize,JL.Description,JL.Quantity,J.ReceiveDate,J.ProjectedShipDate,W.CheckInDate,W.CheckOutDate from Jobs J, Prodv2 P, ItemBOM I,{oj JobLinesv2 JL left outer join WIP W on JL.Jobnum=W.Jobnum and JL.JobSerialNumber=W.JobSerialNumber}
where J.InvoiceDate = '1899-12-31'
and J.Canceled=0
and JL.Jobnum=J.Jobnum
and JL.Item<>''
and JL.PartNumber<>''
and SubString(I.LinePartNumber,1,3) IN ('012','013','200','201','201')
and SubString(JL.PartNumber,1,3)=SubString(I.PartNumber,1,3)
and SubString(JL.PartNumber,11,2)=SubString(I.PartNumber,11,2)
and P.Item=JL.Item
and P.Suppno='SMI01'
and P.IsStock=0
order by JL.Jobnum,JL.Linenum

Thanks for any help.
TimStart Free Trial
[+][-]08.31.2005 at 01:24PM PDT, ID: 14797439

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.31.2005 at 01:32PM PDT, ID: 14797503

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.31.2005 at 08:25PM PDT, ID: 14799314

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Databases Miscellaneous
Sign Up Now!
Solution Provided By: Shweeta
Participating Experts: 3
Solution Grade: B
 
 
[+][-]09.01.2005 at 06:52AM PDT, ID: 14801980

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.02.2005 at 06:37PM PDT, ID: 14814535

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32