cliff,
Thursday, August 01, 2002, 11:46:28 PM, you wrote:

>>Description:
c>         The UNION clause displays results 2 times even when not using the
c> ALL keyword with it. example: (SELECT
c> 
allusa.id,line,name,city,country,listcity,state,liststate,url,line,bookable,cost_range_low,cost_range_high,showlink,desc1,child,pets,wc,spec.id,spec.historic,spec.skiing,spec.romance,spec.antiques,spec.family_fun,spec.spas,spec.luxury_,spec.historic
c> FROM bb.allusa LEFT JOIN bb.spec on allusa.id=spec.id WHERE city = 'san francisco' 
AND line=1 order by state,city,name) UNION (SELECT
c> 
allusa.id,line,name,city,country,listcity,state,liststate,url,line,bookable,cost_range_low,cost_range_high,showlink,desc1,child,pets,wc,spec.id,spec.historic,spec.skiing,spec.romance,spec.antiques,spec.family_fun,spec.spas,spec.luxury_,spec.historic
c> FROM bb.allusa LEFT JOIN bb.spec on allusa.id=spec.id WHERE (line=1) AND (city LIKE 
'%san%' OR listcity LIKE '%san%' OR state='san' OR statename LIKE '%san%' OR country 
LIKE '%san%' OR name LIKE
c> '%san%') AND (city LIKE '%francisco%' OR listcity LIKE '%francisco%' OR 
state='francisco' OR statename LIKE '%francisco%' OR country LIKE '%francisco%' OR 
name LIKE '%francisco%')ORDER BY
c> state,city,name ) LIMIT 15,15
c> produces the city "San Francisco" twice in the listing.

>>How-To-Repeat:
c>         
<http://www.lanierbb.com/search/search.php?pt=bb&q=san+francisco&start=15&numr=29>

Can you send a dump of your tables for testing?





-- 
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