- tbl_customer_master_data
tbl_currencies
tbl_invoices.
Code: Select all
SELECT
tbl_invoices.customer_code,
tbl_currencies.code,
tbl_currencies.id
FROM tbl_invoices
INNER JOIN tbl_currencies
ON tbl_invoices.currency = tbl_currencies.id
WHERE (tbl_invoices.update_date = '6/15/2014 12:00:00 AM')
AND customer_code = :customer_code
GROUP BY tbl_invoices.customer_code,
tbl_currencies.code,
tbl_invoices.currency,
tbl_currencies.id
ORDER BY tbl_invoices.currency
- tbl_customer_master_data has an index on customer_code
tbl_invoices has index on customer_code, update_date and currency
tbl_currencies has an index on id
What can I do in order to improve the performance ?
Many thanks
Pio Pio