Re: [SQL] Re: Query never returns ...

2001-02-08 Thread Brice Ruth
60.00 >rows=1000 width=36) > -> Sort (cost=8.30..8.30 rows=10 width=28) > -> Index Scan using pk_tblsidedruglink on tblsidedruglink >(cost=0.00..8.14 rows=10 width=28) > > EXPLAIN > > On Thu, Feb 08, 2001 at 10:19:43AM -0600, Brice Ruth wrote: > > FYI

Re: [SQL] Query never returns ...

2001-02-08 Thread Brice Ruth
ly selects. -Brice Stephan Szabo wrote: > > What does explain show for the query and have you run > vacuum analyze recently on the tables? > > On Thu, 8 Feb 2001, Brice Ruth wrote: > > > The following query: > > > > SELECT > >

Re: [SQL] Query never returns ...

2001-02-08 Thread Brice Ruth
rice Stephan Szabo wrote: > > After you load the data, you need to run vacuum analzye. That'll > get statistics on the current data in the table. Of course, I'm > not sure that'll help in this case. > > On Thu, 8 Feb 2001, Brice Ruth wrote: > > > Stepha

Re: [GENERAL] Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?

2001-02-07 Thread Brice Ruth
rett W. McCoy" wrote: > > On Wed, 7 Feb 2001, Brice Ruth wrote: > > > Is there a simple (unix) command I can run on text files to convert > > cr/lf to lf? The way I did it seemed pretty ass-backward to me (not to > > mention time consuming). > > perl -pi -e

Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?

2001-02-07 Thread Brice Ruth
Is there a simple (unix) command I can run on text files to convert cr/lf to lf? The way I did it seemed pretty ass-backward to me (not to mention time consuming). -Brice Tom Lane wrote: > > Brice Ruth <[EMAIL PROTECTED]> writes: > > Here's my latest tactic: I&#

Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?

2001-02-07 Thread Brice Ruth
ith this. I really appreciate it tremendously. -Brice Tom Lane wrote: > > Brice Ruth <[EMAIL PROTECTED]> writes: > > SELECT length(monographid) FROM tblpemdruglink WHERE drugid='DG-5039'; > > I get 5 returned to me, even though the string is only 4 ('2008&#

Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?

2001-02-07 Thread Brice Ruth
you all for the continued support on this. Regards, Brice Ruth Michael Fork wrote: > > Run the following query: > > SELECT fdb.versionid, fdb.category, pem.drugid FROM tblfdbmono fdb, > tblpemdruglink pem WHERE fdb.monographid = pem.monographid ORDER BY 1, 2, > 3; > > i

Re: [SQL] SQL Join - MySQL/PostgreSQL difference?

2001-02-07 Thread Brice Ruth
That was my understanding as well, thank you for the clarification. :) Tom Lane wrote: > > Brice Ruth <[EMAIL PROTECTED]> writes: > > About the case-sensitivity, I was under the impression that PostgreSQL > > was case-insensitive unless things were explicitly put

Re: [SQL] SQL Join - MySQL/PostgreSQL difference?

2001-02-07 Thread Brice Ruth
David, About the case-sensitivity, I was under the impression that PostgreSQL was case-insensitive unless things were explicitly put in quotes. This is at least what I read in the book ... -Brice David Olbersen wrote: > > On Thu, 1 Feb 2001, Brice Ruth wrote: > > ->SELECT

Re: [SQL] SQL Join - MySQL/PostgreSQL difference?

2001-02-07 Thread Brice Ruth
linetext +-+-- (0 rows) And it takes about 3-4 seconds to return with that prognosis. What's going on here? -Brice Peter Eisentraut wrote: > > Brice Ruth writes: > > > SELECT > > a.Number, > > a.Code, > > a.T

Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?

2001-02-06 Thread Brice Ruth
l join' of these two tables returns the correct results ... and it uses the same equality tests as the SQL join. I'm more than happy to keep tryin' different things, though ... anything to get to the bottom of this. Regards, Brice Ruth "Ross J. Reedstrom" wrote: > > B

Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?

2001-02-06 Thread Brice Ruth
s to me that your delimited text file may have padded values, > and "=" insists on exact matches for VARCHAR. > > update tblpemdruglink set monographid=btrim(monographid); > > might help, if the first query returns anything but 4. > > Ross > > On Tue, Feb

[GENERAL] SQL Join - MySQL/PostgreSQL difference?

2001-02-05 Thread Brice Ruth
query or not. Please advise. Any help will be (as always) sincerely appreciated. -- Brice Ruth WebProjkt, Inc. VP, Director of Internet Technology http://www.webprojkt.com/

[GENERAL] Re: SQL Join - MySQL/PostgreSQL difference?

2001-02-05 Thread Brice Ruth
Ian, Thanx - I figured the same about the ambiguity. I'll keep tryin' to debug this with the vendor, then. -Brice Ian Harding wrote: > > Brice Ruth wrote: > > > Greetings. > > > > I'm working with a product provided by a third part that interface

[SQL] SQL Join - MySQL/PostgreSQL difference?

2001-02-05 Thread Brice Ruth
not. Please advise. Any help will be (as always) sincerely appreciated. -- Brice Ruth WebProjkt, Inc. VP, Director of Internet Technology http://www.webprojkt.com/