i***@gmail.com
2012-08-09 11:51:49 UTC
I have a table CourtCase with following fields:
CourtCaseId (PK int)
CourtLevelId (FK int)
CourtId (FK int)
CaseNumber (varchar)
isDecided (bool)
isDeleted (bool)
I have another table CourtLevel with following fields
CourtlevelId, CourtTitle
I have a stored procedure which takes 2 parameters:
CourtLevelId, CourtId
I have to get the following data based on courtlevelid and courtid
CourtTitle, TotalCase
I need to get following details based on CourtlevelId and CourtId
Courttitle, TotalCases, Total Cases where isdecided=1, total cases where isdecided=1 and isdeleted=0
CourtCaseId (PK int)
CourtLevelId (FK int)
CourtId (FK int)
CaseNumber (varchar)
isDecided (bool)
isDeleted (bool)
I have another table CourtLevel with following fields
CourtlevelId, CourtTitle
I have a stored procedure which takes 2 parameters:
CourtLevelId, CourtId
I have to get the following data based on courtlevelid and courtid
CourtTitle, TotalCase
I need to get following details based on CourtlevelId and CourtId
Courttitle, TotalCases, Total Cases where isdecided=1, total cases where isdecided=1 and isdeleted=0