Tables [dbo].[RateMatrixRangeY]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)4
Created5:33:10 PM Wednesday, January 2, 2008
Last Modified9:56:11 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_RateMatrixRangeY: RateMatrixRangeYIDRateMatrixRangeYIDint4
No
1 - 1
Foreign Keys FK_RateMatrixRangeY_RateMatrix: [dbo].[RateMatrix].RateMatrixFIDIndexes IX_RateMatrixRangeY_RateMatrix: RateMatrixFIDRateMatrixFIDint4
No
Minimumdecimal(12,3)9
No
Maximumdecimal(12,3)9
No
Notevarchar(128)128
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_RateMatrixRangeY: RateMatrixRangeYIDPK_RateMatrixRangeYRateMatrixRangeYID
Yes
80
IX_RateMatrixRangeY_RateMatrixRateMatrixFID80
Check Constraints Check Constraints
NameConstraint
CK_RateMatrixRangeY_ValidRange((1)=[dbo].[RateMatrixRangeYValidRange]([RateMatrixFID],[Minimum],[Maximum]))
Foreign Keys Foreign Keys
NameColumns
FK_RateMatrixRangeY_RateMatrixRateMatrixFID->[dbo].[RateMatrix].[RateMatrixID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[RateMatrixRangeY]
(
[RateMatrixRangeYID] [int] NOT NULL IDENTITY(1, 1),
[RateMatrixFID] [int] NOT NULL,
[Minimum] [decimal] (12, 3) NOT NULL,
[Maximum] [decimal] (12, 3) NOT NULL,
[Note] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RateMatrixRangeY] ADD CONSTRAINT [CK_RateMatrixRangeY_ValidRange] CHECK (((1)=[dbo].[RateMatrixRangeYValidRange]([RateMatrixFID],[Minimum],[Maximum])))
GO
ALTER TABLE [dbo].[RateMatrixRangeY] ADD CONSTRAINT [PK_RateMatrixRangeY] PRIMARY KEY CLUSTERED  ([RateMatrixRangeYID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_RateMatrixRangeY_RateMatrix] ON [dbo].[RateMatrixRangeY] ([RateMatrixFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RateMatrixRangeY] ADD CONSTRAINT [FK_RateMatrixRangeY_RateMatrix] FOREIGN KEY ([RateMatrixFID]) REFERENCES [dbo].[RateMatrix] ([RateMatrixID])
GO
GRANT SELECT ON  [dbo].[RateMatrixRangeY] TO [MssExec]
GRANT INSERT ON  [dbo].[RateMatrixRangeY] TO [MssExec]
GRANT DELETE ON  [dbo].[RateMatrixRangeY] TO [MssExec]
GRANT UPDATE ON  [dbo].[RateMatrixRangeY] TO [MssExec]
GO
Uses
Used By