A family of Microsoft relational database management systems designed for ease of use.
.
.
.
GROUP BY dbo.Blasting_Pattern_Hole.DesignDepth, dbo.Blasting_Pattern_Hole.BlastDepth, dbo.Blasting_Pattern_Hole.PowderDispensedCount, dbo.Blasting_Pattern_Hole.WetDry,
dbo.Blasting_Pattern_Hole.Collar, dbo.Drilling_Pattern_Hole.DrillDepth, dbo.Blasting_Pattern_Hole.PowderDesignCount, dbo.WorkLocation.WorkLocation, dbo.Bench.Bench, dbo.Pattern.PatternNo,
dbo.Blasting_Pattern_Hole.Comment, dbo.WorkLocation.WorkLocationID, dbo.Pattern.BenchID, dbo.Pattern.PatternID, dbo.Blasting_Pattern_Hole.CommentFilter, dbo.Hole.HoleNum, dbo.HoleComment.HoleComment,
CASE WHEN dbo.Blasting_Pattern_Hole.PowderDispensedCount > (dbo.Blasting_Pattern_Hole.PowderDesignCount
- dbo.Blasting_Pattern_Hole.PowderDesignCount * @PowderAllowance)
THEN CAST('1' AS int) ELSE '' END,
CASE WHEN dbo.Blasting_Pattern_Hole.PowderDispensedCount > (dbo.Blasting_Pattern_Hole.PowderDesignCount
- dbo.Blasting_Pattern_Hole.PowderDesignCount * @PowderAllowance)
THEN 'OVER' ELSE '' END + CASE WHEN dbo.Blasting_Pattern_Hole.PowderDispensedCount < (dbo.Blasting_Pattern_Hole.PowderDesignCount
- dbo.Blasting_Pattern_Hole.PowderDesignCount * @PowderAllowance)
THEN 'UNDER' ELSE '' END + CASE WHEN dbo.Blasting_Pattern_Hole.PowderDispensedCount BETWEEN
(dbo.Blasting_Pattern_Hole.PowderDesignCount
- dbo.Blasting_Pattern_Hole.PowderDesignCount * @PowderAllowance) AND
(dbo.Blasting_Pattern_Hole.PowderDesignCount
- dbo.Blasting_Pattern_Hole.PowderDesignCount * @PowderAllowance) THEN 'PASS' ELSE '' END,
CASE WHEN dbo.Blasting_Pattern_Hole.PowderDispensedCount < (dbo.Blasting_Pattern_Hole.PowderDesignCount
- dbo.Blasting_Pattern_Hole.PowderDesignCount * @PowderAllowance)
THEN CAST('1' AS int) ELSE '' END, CASE WHEN dbo.Blasting_Pattern_Hole.PowderDispensedCount BETWEEN
(dbo.Blasting_Pattern_Hole.PowderDesignCount
- dbo.Blasting_Pattern_Hole.PowderDesignCount * @PowderAllowance) AND
(dbo.Blasting_Pattern_Hole.PowderDesignCount
- dbo.Blasting_Pattern_Hole.PowderDesignCount * @PowderAllowance) THEN CAST('1' AS int) ELSE '' END