A
Aleks
I am trying to combine two sql statements to get just one result, right now
I have:
SELECT Count (ActivityId) AS ActTotNum
FROM dbo.Activities
WHERE CaseId = MMColParam and ActType ='HISTORY'
Which gives result: ActTotNum = 14
SELECT Count (ActivityId) AS ActCompleted
FROM dbo.Activities
WHERE CaseId = MMColParam and ActType ='HISTORY'AND (a.Lastmodified IS NOT
NULL AND a.Dateinitiated IS NULL)
Which gives result: ActCompleted = 4
I need one statements that gives me: 4/14, that is ActCompleted / ActTotNum
How can I do this ?
Help is greately appreciated.
Aleks
I have:
SELECT Count (ActivityId) AS ActTotNum
FROM dbo.Activities
WHERE CaseId = MMColParam and ActType ='HISTORY'
Which gives result: ActTotNum = 14
SELECT Count (ActivityId) AS ActCompleted
FROM dbo.Activities
WHERE CaseId = MMColParam and ActType ='HISTORY'AND (a.Lastmodified IS NOT
NULL AND a.Dateinitiated IS NULL)
Which gives result: ActCompleted = 4
I need one statements that gives me: 4/14, that is ActCompleted / ActTotNum
How can I do this ?
Help is greately appreciated.
Aleks