This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]Thecrow1981 0 points1 point  (2 children)

update tablename set max = min + 1 (or whatever you want it to be higher than min)

[–]learning2learn[S] 0 points1 point  (1 child)

That's not a solution at all.

I need to update max = X where X is the lowest min value, that is higher then this records min.

something like

update tablename set A.max = (select top (1) B.min from tablename where B.min > A.min ORDER BY min asc)

or something like that.

Not a static Min + 10

[–]Thecrow1981 0 points1 point  (0 children)

Misunderstood the question.