PROBLEM with simple SQL-statement
From: J.W. van der Kooy <kooy_at_frw.ruu.nl>
Date: Wed, 15 Jun 1994 11:08:46 GMT
Message-ID: <kooy.3.771678526_at_frw.ruu.nl>
Date: Wed, 15 Jun 1994 11:08:46 GMT
Message-ID: <kooy.3.771678526_at_frw.ruu.nl>
Hello,
I have some problems with performing a, I think, very simple task in an
ORACLE-database (using SQLPLUS).
My plan was to update a column 'amount' with the value of 'price'
multiplied by an appropriate VAT-rate from another table. I tried this:
SQL> update MYTABLE set AMOUNT = PRICE *
It did not work: I got
(select distinct ....
(select distinct VAT from VATTABLE where CATEG = 2);
missing expression
WHAT must be done differently here???
Thanks for answering.
Jan Willem van der Kooy Received on Wed Jun 15 1994 - 13:08:46 CEST