Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Update TOP x number of rows
Tue, Aug 1 2006 1:43 AMPermanent Link

"Clive"
Hi People,

Is it possible to do something like this in V4

Update TOP 10
Set value = 100
from mytable
where something = 4

Essentially only updating the top 10 rows in the result set?


Tue, Aug 1 2006 4:23 AMPermanent Link

"Ralf Mimoun"
Clive wrote:
> Hi People,
>
> Is it possible to do something like this in V4
>
> Update TOP 10
> Set value = 100
> from mytable
> where something = 4
>
> Essentially only updating the top 10 rows in the result set?

At least via memory table.

Ralf
Tue, Aug 1 2006 8:48 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Clive,

<< Is it possible to do something like this in V4

Update TOP 10
Set value = 100
from mytable
where something = 4

Essentially only updating the top 10 rows in the result set? >>

Not directly, no.  However, you could dump the result of a SELECT TOP query
into a temporary table, and then do the UPDATE with a join to that table on
some key field, therefore accomplishing what you want.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image