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 - a.Number, -

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

2001-02-07 Thread Tom Lane
Brice Ruth [EMAIL PROTECTED] writes: About the case-sensitivity, I was under the impression that PostgreSQL was case-insensitive unless things were explicitly put in quotes. Names in queries (of tables, fields, functions, etc) are case-insensitive. This has nothing to do with the behavior of

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

2001-02-05 Thread Peter Eisentraut
Brice Ruth writes: SELECT a.Number, a.Code, a.Text FROM b, a WHERE (b.Id = a.Id) AND (VersionId = 'key1') AND (Category = 'key2') AND (b.d_Id = 'key3') ORDER BY a.Number; (my apologies: I had to 'mangle' the table/column names because of NDA) So my question

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

2001-02-05 Thread David Olbersen
On Thu, 1 Feb 2001, Brice Ruth wrote: -SELECT - a.Number, - a.Code, - a.Text -FROM - b, - a -WHERE - (b.Id = a.Id) AND These next two statements are very ambiguous. Make them explicit as you have with "(b.Id = a.Id)" and "(b.d_Id = 'key3')" Also, be sure that 'key3' is how what you want