To be more specific I have a table with recipes. In another table I keep ratings associated with these recipes. Each rating has an unique id, the second column is the recipe's id, the third column is the rating (from 1-5).
Expected result is the recipe_id, where all ratings associated with that recipe_id are the highest.
I hope you understand, I have no idea how to approach such query properly.
Hopefully I've posted my question properly, it's my first one.