You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
481 B
29 lines
481 B
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
|
|
|