Need assistance in sql using uipath


I am scrapping data from UiPath and I need to compare with database data table.
Time being Websacrpped I am calling as wss
Database datatable as DT_data

database and scarpped data columns are same but data differs


For above data in database I need update queries
Where Name,age =for each webs rapped values
1)Condition to see if Role are equals then update date column
2)if Role are not equals then update with latest scrapped Role value and also update date column

Kindly assist