Re: Cross querying databases (again)

2002-04-30 Thread Javier
If your default is '0', I think, the new query should work. Thanks Javier - Original Message - From: Donna Robinson <[EMAIL PROTECTED]> To: Javier <[EMAIL PROTECTED]> Sent: Monday, April 29, 2002 7:14 PM Subject: Re: Cross querying databases (again) > Hi,

Re: Cross querying databases (again)

2002-04-29 Thread Benjamin Pflugmann
Hi. Run EXPLAIN for both queries and see if it explains the difference (my first guess is be that the indexes support the one query, but not the other). Also, what does "never finishes" mean? Please list the processlist (using SHOW or mysqladmin) and have a look at the state of the query. Bye,

Re: Cross querying databases

2002-04-24 Thread Christopher Kwasneski
I'm not entirely sure if MySQL supports these (I assume so, but not positive). Try these two queries instead: To find similar: (SELECT * FROM ddetails) INTERSECT CORRESPONDING BY name (SELECT * FROM ddata) Find differences: (SELECT * FROM ddetails) EXCEPT CORRESPONDING BY name (SELECT * FROM

Re: Cross querying databases

2002-04-24 Thread Donna Robinson
Hi, I am going nuts! I am querying two databases which are very similar to find the differences between various tables. These two tables are 15 rows and 14 rows respectively. Why does this work (finds all similar rows): select ddetails.name, ddata.name from dancedetails.coupletypes as ddetails,