I came across a problem between categories and URL rewrites after migrating a project from Magento 1 to Magento 2.
At the moment, I have conflicts when I work with products.
I started looking for the reason and noticed that in the database in the table
catalog_category_entity_varchar in the value column, I don’t have many categories that exist in the url-rewrites table.
Is there a way to display all the existing URL keys and regenerate them in the URL rewrite table, and delete any unnecessary URL rewrites?