Tables [dbo].[RevenueGroupRateMatrixXYBasis]
Properties
PropertyValue
Row Count (~)0
Created8:21:13 AM Thursday, June 27, 2013
Last Modified9:56:11 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_RevenueGroupRateMatrixXYBasis: RevenueGroupRateMatrixXYBasisIDRevenueGroupRateMatrixXYBasisIDint4
No
1 - 1
Foreign Keys FK_RevenueGroupRateMatrixXYBasis_BillingMajorItem: [dbo].[BillingMajorItem].BillingMajorItemFIDIndexes IX_RevenueGroupRateMatrixXYBasis_BillingMajorItem: BillingMajorItemFIDBillingMajorItemFIDint4
No
Foreign Keys FK_RevenueGroupRateMatrixXYBasis_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
NameColumnsUnique
Cluster Primary Key PK_RevenueGroupRateMatrixXYBasis: RevenueGroupRateMatrixXYBasisIDPK_RevenueGroupRateMatrixXYBasisRevenueGroupRateMatrixXYBasisID
Yes
IX_RevenueGroupRateMatrixXYBasis_BillingMajorItemBillingMajorItemFID
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_RevenueGroupRateMatrixXYBasis_BillingMajorItemCascadeBillingMajorItemFID->[dbo].[BillingMajorItem].[BMajPriKey]
FK_RevenueGroupRateMatrixXYBasis_RateMatrixRateMatrixFID->[dbo].[RateMatrix].[RateMatrixID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[RevenueGroupRateMatrixXYBasis]
(
[RevenueGroupRateMatrixXYBasisID] [int] NOT NULL IDENTITY(1, 1),
[BillingMajorItemFID] [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].[RevenueGroupRateMatrixXYBasis] ADD CONSTRAINT [PK_RevenueGroupRateMatrixXYBasis] PRIMARY KEY CLUSTERED  ([RevenueGroupRateMatrixXYBasisID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueGroupRateMatrixXYBasis] ADD CONSTRAINT [IX_RevenueGroupRateMatrixXYBasis_BillingMajorItem] UNIQUE NONCLUSTERED  ([BillingMajorItemFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueGroupRateMatrixXYBasis] ADD CONSTRAINT [FK_RevenueGroupRateMatrixXYBasis_BillingMajorItem] FOREIGN KEY ([BillingMajorItemFID]) REFERENCES [dbo].[BillingMajorItem] ([BMajPriKey]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[RevenueGroupRateMatrixXYBasis] ADD CONSTRAINT [FK_RevenueGroupRateMatrixXYBasis_RateMatrix] FOREIGN KEY ([RateMatrixFID]) REFERENCES [dbo].[RateMatrix] ([RateMatrixID])
GO
GRANT SELECT ON  [dbo].[RevenueGroupRateMatrixXYBasis] TO [MssExec]
GRANT INSERT ON  [dbo].[RevenueGroupRateMatrixXYBasis] TO [MssExec]
GRANT DELETE ON  [dbo].[RevenueGroupRateMatrixXYBasis] TO [MssExec]
GRANT UPDATE ON  [dbo].[RevenueGroupRateMatrixXYBasis] TO [MssExec]
GO
Uses