At the moment there is a request:
SELECT * FROM shop.gropsandproducts s inner join shop.products on s.ProductId = shop.products.Id inner join shop.groups on s.GroupId = shop.groups.Id result:
As can be seen from the result, the groups table is connected to the category table by the CategoryId field.
I do not understand what needs to be added in order to still display the Category table (by linking it to the groups table).

JOIN- Vladimir Klykov