Hi
In below code it is giving error - column,status is invalid in the Select Statement because it is not contained either in aggregate function or Group By clause.
Create View [dbo].[View_Summary]
AS
SELECT Max(S.[Name]),
(Select count (ID) from Receipt where Id = D.Id and Status = "Receipt") as 'Receipt',
(Select count (ID) from Issued where tId = D.Id and Status = "Issued") as 'Issued'
FROM [Receipt] D
JOIN [Issued] R on R.ID = D.ID
JOIN [Master] S ON D.[ID] = S.UID
group by D.ID
GO
Thanks