Norris,
Saturday, October 12, 2002, 2:11:36 AM, you wrote:

NJ> I have the following query:

NJ> select phones.*, ops.plid, ops.box, ops.mac 
NJ> from phones, ops where 
NJ> (ops.box = 'Mcds') or (ops.box = 'Mn3300') and 
NJ> (phones.suffix1 = ops.phone) order by ops.mac


NJ> When I change the order by to a field in the phones table - sorts just fine
NJ> and produces results but in this case I am sorting by one of the fields in
NJ> the other table (ops).
NJ> massive bunch of disk activity and mysqladmin shows that the process is
NJ> writing stuff to disk then sorting then producing the results.

What is the output of EXPLAIN SELECT?


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com





---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to