Update
Table1
set
name = (select top 1 a.col
from Table2 a
where Table1.num = a.num)
This seems to work in Sql Server but get an error message in Sybase saying Incorrect syntax near keyword 'top'.
Can some one find out what’s the problem?
Does this work for you?: