nicatt the way suggested is correct but will update all the rows of the table
Update dbo.TmpMaster30_1
set FirstProm = ( select min(h.Prom)
from dbo.TmpMaster30_1 t,
dbo.FACT_OF_PROM_ARCHIVE h,
where t.PersonNo = h.PersonNo
)
From dbo.FACT_OF_PROM_ARCHIVE
Where TmpMaster30_1.PersonNo =
FACT_OF_PROM_ARCHIVE.PersonNo
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.