Re: [GENERAL] SQL error - please help.

2005-08-22 Thread Stephan Szabo
On Tue, 23 Aug 2005, Bernard wrote: > Dear Postgresql specialists > > I would like to seek help with a SQL query that was developed and > tested with other SQL92 compliant databases. IIRC, allowing select items that are not in the group by but are functionally dependant on the group by columns w

Re: [GENERAL] SQL error - please help.

2005-08-22 Thread A. Kretschmer
am 23.08.2005, um 0:24:53 +1200 mailte Bernard folgendes: > SELECT > DEPARTMENT.PK, > DEPARTMENT.NAME, > MIN(PROJECT.VALUE)AS RATING > FROM DEPARTMENT, > PROJECT > WHERE DEPARTMENT.PK=PROJECT.DEPARTMENT_FK > GROUP BY DEPARTMENT.PK > ORDER BY DEPARTMENT.PK; > > ERROR: column "department.na

Re: [GENERAL] SQL error - please help.

2005-08-22 Thread Sean Davis
On 8/22/05 8:24 AM, "Bernard" <[EMAIL PROTECTED]> wrote: > Dear Postgresql specialists > > I would like to seek help with a SQL query that was developed and > tested with other SQL92 compliant databases. > > Please examine the following testcase and the result that I get: > > # su postgres > $

[GENERAL] SQL error - please help.

2005-08-22 Thread Bernard
Dear Postgresql specialists I would like to seek help with a SQL query that was developed and tested with other SQL92 compliant databases. Please examine the following testcase and the result that I get: # su postgres $ psql -d mydb -U postgres CREATE TABLE DEPARTMENT(PK INT NOT NULL, NAME TEXT