I have a table named 'blogDetails' having blogId, userId, blogTitle, blogContent I have another table named 'blogPopularity' having blogId, userId, popularityStat.
Now in the second table(blogPopularity) the field 'popularityStat' can contains either 'L' (for likes) or 'D' (for dislikes).
I am using Stored Procedure to insert both contents(to blogDetails) and like/dislike status(to blogPopularity).
I want to display the number of Likes and Dislikes for each blog.
Anybody suggest me how to do this.