I have written a join query in MySQL which works well and shows the result.
I am trying to write a MySQL query that shows 2 additional columns with some calculations
 If isPercent=1 then 
New Column1=price*currentPercent/100 
New Column2=LineItemQuantity*price 
I tried to write this query in PHP but since there are 100,000s records it is timing out.
Here is MySQL query and the results shown below
Select 
wl.LineItems_LineItemID,
wl.LineItemQuantity, 
pj.IsPercent, 
pj.CurrentPercent,
pj.CurrentRate,
cb.Price 
from 
WorkOrderLineItems wl, 
PayScaleLoaclJObCodes pj, 
ClientBillingRates cb 
where 
wl.LineItems_LineItemID=pj.JobCodeID 
AND wl.LineItems_LineItemID=cb.ClientBillingRates_ID 
AND pj.PayScalesLocal_ID='33'

 
    