Tables [dbo].[ReductionTemplateRateLookupRange]
Properties
PropertyValue
HeapYes
Row Count (~)41
Created3:44:52 PM Tuesday, May 8, 2012
Last Modified8:43:42 AM Thursday, December 5, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_ReductionTemplateRateLookupRange: ReductionTemplateRateLookupRangeIDReductionTemplateRateLookupRangeIDint4
No
1 - 1
Foreign Keys FK_ReductionTemplateRateLookupRange_ReductionTemplateRateLookup: [dbo].[ReductionTemplateRateLookup].ReductionTemplateRateLookupFIDReductionTemplateRateLookupFIDint4
No
Minimumdecimal(12,2)9
No
Maximumdecimal(12,2)9
No
Ratedecimal(10,3)9
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_ReductionTemplateRateLookupRange: ReductionTemplateRateLookupRangeIDPK_ReductionTemplateRateLookupRangeReductionTemplateRateLookupRangeID
Yes
Check Constraints Check Constraints
NameConstraint
CK_ReductionTemplateRateLookupRange_ValidRange((1)=[dbo].[ReductionTemplateRateValidRange]([ReductionTemplateRateLookupFID],[Minimum],[Maximum]))
Foreign Keys Foreign Keys
NameColumns
FK_ReductionTemplateRateLookupRange_ReductionTemplateRateLookupReductionTemplateRateLookupFID->[dbo].[ReductionTemplateRateLookup].[ReductionTemplateRateLookupID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ReductionTemplateRateLookupRange]
(
[ReductionTemplateRateLookupRangeID] [int] NOT NULL IDENTITY(1, 1),
[ReductionTemplateRateLookupFID] [int] NOT NULL,
[Minimum] [decimal] (12, 2) NOT NULL,
[Maximum] [decimal] (12, 2) NOT NULL,
[Rate] [decimal] (10, 3) NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ReductionTemplateRateLookupRange] ADD CONSTRAINT [CK_ReductionTemplateRateLookupRange_ValidRange] CHECK (((1)=[dbo].[ReductionTemplateRateValidRange]([ReductionTemplateRateLookupFID],[Minimum],[Maximum])))
GO
ALTER TABLE [dbo].[ReductionTemplateRateLookupRange] ADD CONSTRAINT [PK_ReductionTemplateRateLookupRange] PRIMARY KEY NONCLUSTERED  ([ReductionTemplateRateLookupRangeID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ReductionTemplateRateLookupRange] ADD CONSTRAINT [FK_ReductionTemplateRateLookupRange_ReductionTemplateRateLookup] FOREIGN KEY ([ReductionTemplateRateLookupFID]) REFERENCES [dbo].[ReductionTemplateRateLookup] ([ReductionTemplateRateLookupID])
GO
GRANT SELECT ON  [dbo].[ReductionTemplateRateLookupRange] TO [MssExec]
GRANT INSERT ON  [dbo].[ReductionTemplateRateLookupRange] TO [MssExec]
GRANT DELETE ON  [dbo].[ReductionTemplateRateLookupRange] TO [MssExec]
GRANT UPDATE ON  [dbo].[ReductionTemplateRateLookupRange] TO [MssExec]
GO
Uses