From: | "Henshall, Stuart - WCP" <SHenshall(at)westcountrypublications(dot)co(dot)uk> |
---|---|
To: | "'Josh Berkus'" <josh(at)agliodbs(dot)com>, Yan Bai <annie_job(at)hotmail(dot)com>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Difference between Access97 and PostgreSQL |
Date: | 2002-02-01 10:15:16 |
Message-ID: | E2870D8CE1CCD311BAF50008C71EDE8E01F747B5@MAIL_EXCHANGE |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
> -----Original Message-----
> From: Josh Berkus [mailto:josh(at)agliodbs(dot)com]
> Sent: 31 January 2002 00:58
> To: Yan Bai; pgsql-sql(at)postgresql(dot)org
> Subject: Re: Difference between Access97 and PostgreSQL
>
>
> Annie,
>
> > My question may out of the range of this forum.
>
> Well, yes. But, since I'm a nice guy, I'll answer your question even
> though it does not relate to Postgres ... if you promise not to do it
> again! In the future, send this question to a more appropriate list,
> such as PSQL-ODBC, where they discuss Paotgres & MS Access.
>
> > When I run the following query under postgreSQL and Access2000, it
> > works well. But Access97 cannot accept it. I got the error message
> > as 'syntax error near FROM', it seems like in Access97,
> there cannot
> > have a subquery after 'FROM'
> >
> > --------------------------------------------------
> > SELECT temp.rating, temp.avgage
> > FROM (SELECT s.rating, AVG(s.age) as avgage
> > FROM sailors s GROUP BY s.rating) as temp
> > --------------------------------------------------
> >
>
> You are exactly correct. MS Access 97 does not support sub-queires in
> the FROM clause. THe only sub-queries supported by Access 97 are
> sub-queries in the WHERE clause.
With this sort of problem (I also vaguely recall ahving a problem with a
union) I tend to make another query (as in an MS Access query that anyone
else would call a view) and use it in the from clause.
Cheers,
- Stuart
From | Date | Subject | |
---|---|---|---|
Next Message | Tomas Eriksson | 2002-02-01 12:59:08 | Compare with CHAR |
Previous Message | Christopher Kings-Lynne | 2002-02-01 00:29:44 | Re: Difference between Access97 and PostgreSQL |