Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB SQL » View Thread |
Messages 21 to 30 of 30 total |
Is this IN comparison a bug? |
Fri, Mar 12 2010 11:59 AM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Roy,
<< You missed the >> No, I saw it. I just didn't think that it changed the context of the sentence. -- Tim Young Elevate Software www.elevatesoft.com |
Fri, Mar 12 2010 12:17 PM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Tim
>No, I saw it. I just didn't think that it changed the context of the >sentence. I read it as a joke, and since I have that style of humor I would have thought so even without the smiley. Roy Lambert |
Fri, Mar 12 2010 12:39 PM | Permanent Link |
Rita Tipton | "Tim Young [Elevate Software]" <timyoung@elevatesoft.com> wrote in message news:319F16FB-FFD3-41B3-9E8F-0ABF4F5A2A6C@news.elevatesoft.com... > > No, I saw it. Tilt. Rita |
Sat, Mar 13 2010 8:29 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Tim
It works now in b9 - just thought I'd say. Roy Lambert |
Mon, Mar 15 2010 4:26 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Roy,
<< It works now in b9 - just thought I'd say. >> Thanks for the update. -- Tim Young Elevate Software www.elevatesoft.com |
Tue, Mar 16 2010 6:46 AM | Permanent Link |
John Hay | Tim
I don't know if this should be in a new thread but the query I sent to Roy (see below) which produced 0 records appears to be a problem with join optimization. If I add nojoinoptimize it returns 351 "duplicate" records. I tried the same query replacing the dervived table with a "physical table" and got the same results. This was tested with b9. John SELECT DISTINCT c._id,_fkContacts,_Surname, _Forename,_fkCompanies,_fkSites FROM Career C JOIN Contacts C1 ON C._fkContacts=Contacts._ID JOIN (SELECT _Surname, _Forename,_fkCompanies,_fkSites,count(*) as cnt FROM Career JOIN Contacts C ON _fkContacts = C._ID GROUP BY _Surname, _Forename,_fkCompanies,_fkSites HAVING cnt > 1) t1 ON C1._Surname=t1._Surname AND C1._Forename= t1._Forename AND C._fkCompanies=t1._fkCompanies AND C._fkSites=t1._fkSites order by _surname,_forename |
Tue, Mar 16 2010 7:22 AM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | John
Congratulations on ferreting that out. I would literally never have thought of adding nojoinoptimize. Roy Lambert |
Tue, Mar 16 2010 1:43 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | John,
<< I don't know if this should be in a new thread but the query I sent to Roy (see below) which produced 0 records appears to be a problem with join optimization. If I add nojoinoptimize it returns 351 "duplicate" records. I tried the same query replacing the dervived table with a "physical table" and got the same results. This was tested with b9. >> Could you please send me what you're using on your end (database catalog and tables) ? Thanks, -- Tim Young Elevate Software www.elevatesoft.com |
Tue, Mar 16 2010 2:50 PM | Permanent Link |
Roy Lambert NLH Associates Team Elevate | Tim
You should be able to download the script to create them from the binaries "Data for John Hay" Roy Lambert |
Wed, Mar 17 2010 7:58 AM | Permanent Link |
John Hay | Tim
As Roy wrote, the data is in the binaries. The only additional test I did was to create a table with CREATE TABLE crtemp AS SELECT _Surname, _Forename,_fkCompanies,_fkSites,count(*) as cnt FROM Career JOIN Contacts C ON _fkContacts = C._ID GROUP BY _Surname, _Forename,_fkCompanies,_fkSites HAVING cnt > 1 I then ran the query the query below which got 0 records. SELECT DISTINCT c._id,_fkContacts,_Surname, _Forename,_fkCompanies,_fkSites FROM Career C JOIN Contacts C1 ON C._fkContacts=Contacts._ID JOIN crtemp t1 ON C1._Surname=t1._Surname AND C1._Forename= t1._Forename AND C._fkCompanies=t1._fkCompanies AND C._fkSites=t1._fkSites order by _surname,_forename Cheers John |
« Previous Page | Page 3 of 3 | |
Jump to Page: 1 2 3 |
This web page was last updated on Saturday, April 27, 2024 at 08:52 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |