MySQL Forums
Forum List  »  Performance

Re: mysql subquery too slow
Posted by: S C
Date: October 31, 2005 11:32AM

Thanks for your reply Felix

ALSO, s2 trade date should be the last date that the trade appeared

For example stack table looks like this:

112323 BOOKED 100 2005-10-28 NEW
112323 BOOKED 200 2005-10-29 MODIFIED
112323 BOOKED 200 2005-10-29 PROCESSED --- This is where loan got processed
999999 BOOKED 100 2005-10-31 NEW
112323 BOOKED 200 2005-11-01 PROCESSED ---- This is an erroneous entry

So when I lookup 112323 on 11/01 I must compare with 10/29 ONLY Then look at the status of PROCESSED.

I have to lookback to find the last date of occurance of trade 112323 in addition to what you have suggested.

Shantanu

Options: ReplyQuote


Subject
Views
Written By
Posted
1569
S C
October 28, 2005 03:02PM
1217
October 29, 2005 09:30AM
Re: mysql subquery too slow
1240
S C
October 31, 2005 11:32AM


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.