I have a table in MySQL which has following columns
Table – Reviews
Review_Id
Business_Id
Title
Description
Useful_Count
A particular business_id (foreign key) can have many reviews. What I want is to extract this information from DB given a set of business Ids
- Total review count for each business Id
- The top review (title and description mainly) for each business Id (Top review would be the one having highest number of useful_counts.
Is it possible to get both the information using a single SQL query?
Try this: