I m trying to get the Status percentage by different status wise and we have 4 types of status. Here is the data for Columns below.
MR_ID Sup_ID Status
1 1 Rejected
1 1 Accepted
1 1 Accepted
1 1 Rejected
2 2 InProgress
2 2 InProgress
2 2 Accepted
2 2 Fordwarded
Like for MR_ID:1 and Sup_ID:1 combination the % of "Accepted" is 50% and % of "Rejected" is 50%
Need to write a sql query or Stored Procedure to find it out in sql server
Not getting any clue.
