There are 3 tables: Products (id / name / price), Categories (id / name) and and a table implementing many-to-many relationships (id / idProduct / idCategories)
Please tell me how to write the correct sql query that would output: the name of the category, the name of the product which has the maximum price in this category, the price of this product.
Find the maximum price for the category and then connect for the price with the goods not to offer)) I am looking for a more correct and beautiful solution