Tables [dbo].[RateMatrixRangeX]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)45
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_RateMatrixRangeX: RateMatrixRangeXIDRateMatrixRangeXIDint4
No
1 - 1
Foreign Keys FK_RateMatrixRangeX_RateMatrix: [dbo].[RateMatrix].RateMatrixFIDIndexes IX_RateMatrixRangeX_RateMatrix: RateMatrixFIDRateMatrixFIDint4
No
Minimumdecimal(12,3)9
No
Maximumdecimal(12,3)9
No
MinChargefloat8
Yes
MaxChargefloat8
Yes
Notevarchar(128)128
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_RateMatrixRangeX: RateMatrixRangeXIDPK_RateMatrixRangeXRateMatrixRangeXID
Yes
80
IX_RateMatrixRangeX_RateMatrixRateMatrixFID80
Check Constraints Check Constraints
NameConstraint
CK_RateMatrixRangeX_ValidRange((1)=[dbo].[RateMatrixRangeXValidRange]([RateMatrixFID],[Minimum],[Maximum]))
Foreign Keys Foreign Keys
NameDeleteColumns
FK_RateMatrixRangeX_RateMatrixCascadeRateMatrixFID->[dbo].[RateMatrix].[RateMatrixID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[RateMatrixRangeX]
(
[RateMatrixRangeXID] [int] NOT NULL IDENTITY(1, 1),
[RateMatrixFID] [int] NOT NULL,
[Minimum] [decimal] (12, 3) NOT NULL,
[Maximum] [decimal] (12, 3) NOT NULL,
[MinCharge] [float] NULL,
[MaxCharge] [float] NULL,
[Note] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RateMatrixRangeX] ADD CONSTRAINT [CK_RateMatrixRangeX_ValidRange] CHECK (((1)=[dbo].[RateMatrixRangeXValidRange]([RateMatrixFID],[Minimum],[Maximum])))
GO
ALTER TABLE [dbo].[RateMatrixRangeX] ADD CONSTRAINT [PK_RateMatrixRangeX] PRIMARY KEY CLUSTERED  ([RateMatrixRangeXID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_RateMatrixRangeX_RateMatrix] ON [dbo].[RateMatrixRangeX] ([RateMatrixFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RateMatrixRangeX] ADD CONSTRAINT [FK_RateMatrixRangeX_RateMatrix] FOREIGN KEY ([RateMatrixFID]) REFERENCES [dbo].[RateMatrix] ([RateMatrixID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[RateMatrixRangeX] TO [MssExec]
GRANT INSERT ON  [dbo].[RateMatrixRangeX] TO [MssExec]
GRANT DELETE ON  [dbo].[RateMatrixRangeX] TO [MssExec]
GRANT UPDATE ON  [dbo].[RateMatrixRangeX] TO [MssExec]
GO
Uses
Used By