[dbo].[EquipmentCapacityBuckets]
CREATE VIEW [dbo].[EquipmentCapacityBuckets]
as
select CapacityBucket.CapacityBucketID,
CapacityBucket.BucketName
from CapacityBucketType
inner join CapacityBucket on CapacityBucketType.CapacityBucketTypeID = CapacityBucket.CapacityBucketTypeFID
where CapacityBucketType.CapacityBucketTypeName in ( 'Equipment Count', 'Equipment Hourly' )
GO
GRANT SELECT ON [dbo].[EquipmentCapacityBuckets] TO [MssExec]
GRANT INSERT ON [dbo].[EquipmentCapacityBuckets] TO [MssExec]
GRANT DELETE ON [dbo].[EquipmentCapacityBuckets] TO [MssExec]
GRANT UPDATE ON [dbo].[EquipmentCapacityBuckets] TO [MssExec]
GO