Re: can someone tell me what's wrong with this procedure?

From: Sean Davis <sdavis2(at)mail(dot)nih(dot)gov>
To: ben sewell <mosherben(at)gmail(dot)com>, <pgsql-novice(at)postgresql(dot)org>
Subject: Re: can someone tell me what's wrong with this procedure?
Date: 2006-08-14 12:51:09
Message-ID: C105E9FD.F395%sdavis2@mail.nih.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 8/14/06 8:45 AM, "ben sewell" <mosherben(at)gmail(dot)com> wrote:

> Hi guys,
> I have tried to convert an MS Access query into a stored procedure to run on
> the postgres server. It's saying there is a syntax error, but I'm guessing
> this is because of the multiple inner joins. Can anyone tell me the correct
> syntax?

From your included procedure:
"
.... from
(tblproviders right join tblnewbusiness on
(tblproviders.provider_ref=tblnewbusiness.provider_ref)) and
(tblemployee inner join tbladvisersplit on
(tblemployee.employee_ref=tbladvisersplit.adviser_ref)) and
(tblnewbusiness inner join tblturnover on
(tblnewbusiness.newbusiness_ref=tblturnover.newbusiness_ref) )and
(tblemployee inner join tbladvisersplit on
(tblemployee.employee_ref=tbladvisersplit.adviser_ref)) ...."

The "from" clause has "ands" in it, which is not correct for a join.

Sean

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message roy simkes 2006-08-14 12:57:39 Non case sensitive
Previous Message ben sewell 2006-08-14 12:45:07 can someone tell me what's wrong with this procedure?