Skip to content

I need to optimize this MYSQL query

I have tried NOT EXIST but didn’t get expected result can’t do index since duplicate entries of student_id,status are valid entries,Need to reduce execution time since the table has large number of data. Answer You can try query with JOIN condition: Here the fiddle SQLize.online Sure that your tab…

SQL query for Join statement

I have 3 tables products, pricingGroup and productPricing. I want to show all products even it has no service pricing and set its status/IsActive to false. What query I have now What I want to Get Products Table ProductPricing Table PricingGroup Table Answer You are missing last join clause pricing.PricingGro…