Need help optmizing query
I am writing code to allow a customers to check how many times a transaction fee
was charged last month. The database is MySQL and my goal is to optimize this query as much as I can.
Where should I start? This is what I have so far:
SELECT cus.*, tran.*, FROM customers cus LEFT JOIN transactions tran on
tran.c_id = cus.c_id where cus.name='$c_name' ORDER BY
cus.name ASC, tran.date DESC;
Thanks in advance for any help.
Subject
Views
Written By
Posted
Need help optmizing query
2663
January 16, 2007 03:58PM
2042
January 16, 2007 06:42PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.