SQL query to rewrite broken image URLs

Can you tell me the proper SQL search command to find the path /files/sites/ in my WordPress database? I need to replace that with /wp-content/uploads/sites/{site ID}/files. I want to search for it in my PHPMYADMIN in SQL first or do a dry run.

Please check the reported URL in the chat session and look at the broken images link and the URLs they pinpoint to. I'd like to fix them.