Subject | Re: [ib-support] Re: Update using two tables |
---|---|
Author | lester@lsces.co.uk |
Post date | 2002-02-13T12:47:11Z |
> This gives me the error 'Single row subquery produced more that oneIf it gives multiple tableB.datefield entries which do you
> row' - which makes sense.
>
> Any other ideas ?
want?
MAX(tableB.datefield) for the last date?
> > update tableAupdate tableA
> > set tableA.datefield = (SELECT tableB.datefield FROM tableB
> > where tableA.number = tableB.number)
set tableA.datefield = (SELECT MAX(tableB.datefield) FROM
tableB
where tableA.number = tableB.number)
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services