Hi,
I want to get count of Job status like count of open,count of closed jobs and count of processing jobs
This is my procedure :
USE [SmartJob
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROC [dbo].[GetJobStatus]
@CompanyID INT
AS
BEGIN
SELECT [StatusID]
,M.Value 'Status' FROM Jobs J
JOIN Master M ON M.MasterID=J.StatusID
WHERE CompanyID=@CompanyID;
END

Please help me
4 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Devendra KumarPosted Mar 8, 2016, 2:26 AM
K P Singh ChundawatPosted Mar 8, 2016, 2:06 AM
Chandu KumawatPosted Mar 8, 2016, 2:04 AM
Ranjit PowarPosted Mar 8, 2016, 2:02 AM