I am trying to fetch the latest group of data based on given id from a table.
Here ..what I have tried..
SELECT *
FROM service_provider_portfolio_photo
where service_provider_portfolio_detail_id IN (2,3) order by created_on desc
OUTPUT:
Got all the list which have id (2,3).But I need to get the top first data from each id.Is this possible?