OK i got it to update one row at a time like
update tblFPPets
set AcctNum = LicenseNum, LicenseNum = null
where DateLicenseExpires < getdate() and OwnerID_FK = 8
but when i try to do it on the entire database like
update tblFPPets
set AcctNum = LicenseNum, LicenseNum = null
where...
I am trying to select data from one field and updating it into a different field thats in the same row. But i dont really know where to begin since im new to SQL, i know i got to start with a select but how to i then use that to update into the other field ?
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.