Tables [dbo].[QuoteDetailRateMatrixXYBasis]
Properties
PropertyValue
Row Count (~)0
Created5:00:24 PM Monday, April 21, 2008
Last Modified9:55:51 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_QuoteDetailRateMatrixXYBasis: QuoteDetailRateMatrixXYBasisIDQuoteDetailRateMatrixXYBasisIDint4
No
1 - 1
Foreign Keys FK_QuoteDetailRateMatrixXYBasis_QuoteDetail: [dbo].[QuoteDetail].QuoteDetailFIDIndexes IX_QuoteDetailRateMatrixXYBasis_QuoteDetail: QuoteDetailFIDQuoteDetailFIDint4
No
Foreign Keys FK_QuoteDetailRateMatrixXYBasis_RateMatrix: [dbo].[RateMatrix].RateMatrixFIDRateMatrixFIDint4
No
XRangeValuedecimal(12,3)9
Yes
YRangeValuedecimal(12,3)9
Yes
XBreakPointdecimal(12,3)9
Yes
YBreakPointdecimal(12,3)9
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Cluster Primary Key PK_QuoteDetailRateMatrixXYBasis: QuoteDetailRateMatrixXYBasisIDPK_QuoteDetailRateMatrixXYBasisQuoteDetailRateMatrixXYBasisID
Yes
80
IX_QuoteDetailRateMatrixXYBasis_QuoteDetailQuoteDetailFID
Yes
80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_QuoteDetailRateMatrixXYBasis_QuoteDetailCascadeQuoteDetailFID->[dbo].[QuoteDetail].[QuoteDetailID]
FK_QuoteDetailRateMatrixXYBasis_RateMatrixRateMatrixFID->[dbo].[RateMatrix].[RateMatrixID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[QuoteDetailRateMatrixXYBasis]
(
[QuoteDetailRateMatrixXYBasisID] [int] NOT NULL IDENTITY(1, 1),
[QuoteDetailFID] [int] NOT NULL,
[RateMatrixFID] [int] NOT NULL,
[XRangeValue] [decimal] (12, 3) NULL,
[YRangeValue] [decimal] (12, 3) NULL,
[XBreakPoint] [decimal] (12, 3) NULL,
[YBreakPoint] [decimal] (12, 3) NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QuoteDetailRateMatrixXYBasis] ADD CONSTRAINT [PK_QuoteDetailRateMatrixXYBasis] PRIMARY KEY CLUSTERED  ([QuoteDetailRateMatrixXYBasisID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QuoteDetailRateMatrixXYBasis] ADD CONSTRAINT [IX_QuoteDetailRateMatrixXYBasis_QuoteDetail] UNIQUE NONCLUSTERED  ([QuoteDetailFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QuoteDetailRateMatrixXYBasis] ADD CONSTRAINT [FK_QuoteDetailRateMatrixXYBasis_QuoteDetail] FOREIGN KEY ([QuoteDetailFID]) REFERENCES [dbo].[QuoteDetail] ([QuoteDetailID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[QuoteDetailRateMatrixXYBasis] ADD CONSTRAINT [FK_QuoteDetailRateMatrixXYBasis_RateMatrix] FOREIGN KEY ([RateMatrixFID]) REFERENCES [dbo].[RateMatrix] ([RateMatrixID])
GO
GRANT SELECT ON  [dbo].[QuoteDetailRateMatrixXYBasis] TO [MssExec]
GRANT INSERT ON  [dbo].[QuoteDetailRateMatrixXYBasis] TO [MssExec]
GRANT DELETE ON  [dbo].[QuoteDetailRateMatrixXYBasis] TO [MssExec]
GRANT UPDATE ON  [dbo].[QuoteDetailRateMatrixXYBasis] TO [MssExec]
GO
Uses