Tables [dbo].[RevenueRatingImportedDetailReduction]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)4726
Created10:12:49 PM Thursday, December 28, 2006
Last Modified1:46:20 PM Wednesday, April 10, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_RevenueRatingImportedDetailReduction: RevenueRatingImportedDetailReductionIDRevenueRatingImportedDetailReductionIDint4
No
1 - 1
Foreign Keys FK_RevenueRatingImportedDetailReduction_RevenueRatingImportedDetail: [dbo].[RevenueRatingImportedDetail].RevenueRatingImportedDetailFIDIndexes IX_RevenueRatingImportedDetailReduction_RevenueRatingImportedDetailFID: RevenueRatingImportedDetailFIDRevenueRatingImportedDetailFIDint4
No
BillingMinorReductionFIDint4
Yes
Foreign Keys FK_RevenueRatingImportedDetailReduction_ReductionType: [dbo].[ReductionType].ReductionTypeFIDReductionTypeFIDint4
No
Foreign Keys FK_RevenueRatingImportedDetailReduction_ReductionBasis: [dbo].[ReductionBasis].ReductionBasisFIDReductionBasisFIDint4
Yes
Descriptionvarchar(128)128
Yes
Percentagedecimal(10,3)9
Yes
ReductionAmountmoney8
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_RevenueRatingImportedDetailReduction: RevenueRatingImportedDetailReductionIDPK_RevenueRatingImportedDetailReductionRevenueRatingImportedDetailReductionID
Yes
80
IX_RevenueRatingImportedDetailReduction_RevenueRatingImportedDetailFIDRevenueRatingImportedDetailFID80
Foreign Keys Foreign Keys
NameColumns
FK_RevenueRatingImportedDetailReduction_ReductionBasisReductionBasisFID->[dbo].[ReductionBasis].[ReductionBasisID]
FK_RevenueRatingImportedDetailReduction_ReductionTypeReductionTypeFID->[dbo].[ReductionType].[ReductionTypeID]
FK_RevenueRatingImportedDetailReduction_RevenueRatingImportedDetailRevenueRatingImportedDetailFID->[dbo].[RevenueRatingImportedDetail].[RevenueRatingImportedDetailID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[RevenueRatingImportedDetailReduction]
(
[RevenueRatingImportedDetailReductionID] [int] NOT NULL IDENTITY(1, 1),
[RevenueRatingImportedDetailFID] [int] NOT NULL,
[BillingMinorReductionFID] [int] NULL,
[ReductionTypeFID] [int] NOT NULL,
[ReductionBasisFID] [int] NULL,
[Description] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Percentage] [decimal] (10, 3) NULL,
[ReductionAmount] [money] NOT NULL CONSTRAINT [DF_RevenueRatingImportedDetailReduction_ReductionAmount] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueRatingImportedDetailReduction] ADD CONSTRAINT [PK_RevenueRatingImportedDetailReduction] PRIMARY KEY NONCLUSTERED  ([RevenueRatingImportedDetailReductionID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_RevenueRatingImportedDetailReduction_RevenueRatingImportedDetailFID] ON [dbo].[RevenueRatingImportedDetailReduction] ([RevenueRatingImportedDetailFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueRatingImportedDetailReduction] ADD CONSTRAINT [FK_RevenueRatingImportedDetailReduction_ReductionBasis] FOREIGN KEY ([ReductionBasisFID]) REFERENCES [dbo].[ReductionBasis] ([ReductionBasisID])
GO
ALTER TABLE [dbo].[RevenueRatingImportedDetailReduction] ADD CONSTRAINT [FK_RevenueRatingImportedDetailReduction_ReductionType] FOREIGN KEY ([ReductionTypeFID]) REFERENCES [dbo].[ReductionType] ([ReductionTypeID])
GO
ALTER TABLE [dbo].[RevenueRatingImportedDetailReduction] ADD CONSTRAINT [FK_RevenueRatingImportedDetailReduction_RevenueRatingImportedDetail] FOREIGN KEY ([RevenueRatingImportedDetailFID]) REFERENCES [dbo].[RevenueRatingImportedDetail] ([RevenueRatingImportedDetailID])
GO
GRANT SELECT ON  [dbo].[RevenueRatingImportedDetailReduction] TO [MssExec]
GRANT INSERT ON  [dbo].[RevenueRatingImportedDetailReduction] TO [MssExec]
GRANT DELETE ON  [dbo].[RevenueRatingImportedDetailReduction] TO [MssExec]
GRANT UPDATE ON  [dbo].[RevenueRatingImportedDetailReduction] TO [MssExec]
GO
Uses