you can't have a 'rownum' equal to 3, it will always be 1.
How so? The subquery should "return all rows of Appointment, then filter out to the third row. Then in that case it will then actualy be the 1st row in the final result set. Anyway.
I don't know the reasoning for just getting the third row of something to update. I am sure too that there is a better design/solution for the actual goal.
Adding cursors or an order by, I think the problem is in the logic of why do you want to do this, more than poor style for a query. There is always many ways to write the same query. Some are faster than others, some take a long way around, but some work ok. I don't think a query like what I had written is poor style, if the reasoning behind needing such a query is sound.
Mark
Mark