Windows2003-3790/sdktools/debuggers/oca/sql/view_followupinstances.sql
2020-09-30 16:53:55 +02:00

30 lines
481 B
Transact-SQL

SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE VIEW FollowupInstances AS
SELECT Followup,
COUNT (DISTINCT BucketToInt.iBucket) AS Buckets,
COUNT (DISTINCT BucketToCrash.CrashId) AS Instances
FROM BucketToCrash, BucketToInt, Followups
WHERE BucketToInt.iBucket = BucketToCrash.iBucket AND
BucketToInt.iBucket = Followups.iBucket
GROUP BY Followup
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO