Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SubQuery Problem
Message
From
14/10/2006 03:07:11
 
 
To
14/10/2006 02:09:42
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Miscellaneous
Thread ID:
01161962
Message ID:
01161971
Views:
18
>After a few trial, I finally figure out how to select just the next appointment... as follows:
>
>
>SELECT a.case_no, min(a.appt_time) FROM appt_table a where a.case_no in (select b.case_no from pt_tx2 b where b.tx_date = '2006-10-06') and a.appt_time > '2006-10-06' group by 1 order by 1
>
>
>But the speed is still 33s ?!

post
reccount(appt_table)
reccount(pt_tx2)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform