What is wrong with this SQL - Mailing list pgsql-novice

From Norman Khine
Subject What is wrong with this SQL
Date
Msg-id EIEOIOLCDOLMCNPHEGDOKEGCDKAA.norman@khine.net
Whole thread Raw
List pgsql-novice
Hello,
I am a bit stuck on this UPDATE query

UPDATE (price RIGHT JOIN product ON price.product = product.id) RIGHT JOIN
supplier ON product.supplier = supplier.id SET price.price = 200
WHERE (((supplier.id)=4) AND ((supplier.status)=1) AND
((product.status)=1) AND ((price.type)=1) AND ((product.id)=100902));

This works.... but the above query gets a exception error "("

SELECT supplier.id, price.price, product.id FROM (price RIGHT JOIN
product ON price.product = product.id) RIGHT JOIN supplier ON
product.supplier = supplier.id WHERE (((su
pplier.id)=4) AND ((supplier.status)=1) AND ((product.status)=1) AND
((price.type)=1) AND ((product.id)=100902));

Thanks

zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
zz/********/z/****\zzz|****\*\zz|*******|z
z/^^^^^^^^/z/******\zz|*^^^^|*|z|*|^^^^^|z norman khine
zzzzzz/**/z|**/^^\**|z|*|zzz|*|z|*|zzzzzzz mailto:norman@khine.net
zzzzz/**/zz|*|zzzz|*|z|****/*/zz|*****|zzz purley
z/******/zz|*|zzzz|*|z|*|^^zzzzz|*|^^^|zzz UK
zzZ/**/zzzz|**\^^/**|z|*|zzzzzzz|*|zzzzzzz
zz/******/zz\******/zz|*|zzzzzzz|*|*****|z
z/^^^^^^/zzzz\^^^^/zzz|^|zzzzzzz|^^^^^^^|z
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz



pgsql-novice by date:

Previous
From: David Robertson
Date:
Subject: Re: I need to know password for postgres
Next
From: Oliver Elphick
Date:
Subject: Re: I need to know password for postgres