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