Subject | Re: [ib-support] how to perform update with aggregate subselect ? |
---|---|
Author | Andrew Guts |
Post date | 2002-06-19T13:22:40Z |
Louis Kleiman wrote:
you very much.
>In my apps, IDs like this are always integers > 0. I often have to addOops, sorry. I've missed something. Now I've got it. Nice idea. Thank
>what I call hints to queries like this that don't want to use the
>primary key without a little nudging:
>
>update table1
> set total = (select sum(Quantity) from table2 where table2.CustomerID
>= table1.CustomerID and table2.CustomerID > 0)
>
>Maybe it works in your case, maybe not...
>
>Louis Kleiman
>SSTMS, Inc.
>
>
you very much.