update Relations set "Function"='RealDatePayed' where TableName='#OwePaidRentLodg' and ColName='RealDatePayed' go