Tables [dbo].[RevenueRatingImportDetailReduction]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)2035
Created10:12:51 PM Thursday, December 28, 2006
Last Modified9:06:16 AM Thursday, May 23, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_RevenueRatingImportDetailReduction: RevenueRatingImportDetailReductionIDRevenueRatingImportDetailReductionIDint4
No
1 - 1
Cluster Key IX_Clustered_RevenueRatingImportDetailReduction_RevenueRatingImportDetailFID: RevenueRatingImportDetailFIDForeign Keys FK_RevenueRatingImportDetailReduction_RevenueRatingImportDetail: [dbo].[RevenueRatingImportDetail].RevenueRatingImportDetailFIDIndexes IX_RevenueRatingImportDetailReduction_RevenueRatingImportDetailFID: RevenueRatingImportDetailFIDRevenueRatingImportDetailFIDint4
No
Foreign Keys FK_RevenueRatingImportDetailReduction_ReductionType: [dbo].[ReductionType].ReductionTypeFIDReductionTypeFIDint4
No
Foreign Keys FK_RevenueRatingImportDetailReduction_ReductionBasis: [dbo].[ReductionBasis].ReductionBasisFIDReductionBasisFIDint4
Yes
Descriptionvarchar(128)128
Yes
Percentagedecimal(10,3)9
Yes
ReductionAmountmoney8
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_RevenueRatingImportDetailReduction: RevenueRatingImportDetailReductionIDPK_RevenueRatingImportDetailReductionRevenueRatingImportDetailReductionID
Yes
80
Cluster Key IX_Clustered_RevenueRatingImportDetailReduction_RevenueRatingImportDetailFID: RevenueRatingImportDetailFIDIX_Clustered_RevenueRatingImportDetailReduction_RevenueRatingImportDetailFIDRevenueRatingImportDetailFID80
IX_RevenueRatingImportDetailReduction_RevenueRatingImportDetailFIDRevenueRatingImportDetailFID80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_RevenueRatingImportDetailReduction_ReductionBasisReductionBasisFID->[dbo].[ReductionBasis].[ReductionBasisID]
FK_RevenueRatingImportDetailReduction_ReductionTypeReductionTypeFID->[dbo].[ReductionType].[ReductionTypeID]
FK_RevenueRatingImportDetailReduction_RevenueRatingImportDetailCascadeRevenueRatingImportDetailFID->[dbo].[RevenueRatingImportDetail].[RevenueRatingImportDetailID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[RevenueRatingImportDetailReduction]
(
[RevenueRatingImportDetailReductionID] [int] NOT NULL IDENTITY(1, 1),
[RevenueRatingImportDetailFID] [int] NOT 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_RevenueRatingImportDetailReduction_ReductionAmount] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueRatingImportDetailReduction] ADD CONSTRAINT [PK_RevenueRatingImportDetailReduction] PRIMARY KEY NONCLUSTERED  ([RevenueRatingImportDetailReductionID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE CLUSTERED INDEX [IX_Clustered_RevenueRatingImportDetailReduction_RevenueRatingImportDetailFID] ON [dbo].[RevenueRatingImportDetailReduction] ([RevenueRatingImportDetailFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_RevenueRatingImportDetailReduction_RevenueRatingImportDetailFID] ON [dbo].[RevenueRatingImportDetailReduction] ([RevenueRatingImportDetailFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueRatingImportDetailReduction] ADD CONSTRAINT [FK_RevenueRatingImportDetailReduction_ReductionBasis] FOREIGN KEY ([ReductionBasisFID]) REFERENCES [dbo].[ReductionBasis] ([ReductionBasisID])
GO
ALTER TABLE [dbo].[RevenueRatingImportDetailReduction] ADD CONSTRAINT [FK_RevenueRatingImportDetailReduction_ReductionType] FOREIGN KEY ([ReductionTypeFID]) REFERENCES [dbo].[ReductionType] ([ReductionTypeID])
GO
ALTER TABLE [dbo].[RevenueRatingImportDetailReduction] ADD CONSTRAINT [FK_RevenueRatingImportDetailReduction_RevenueRatingImportDetail] FOREIGN KEY ([RevenueRatingImportDetailFID]) REFERENCES [dbo].[RevenueRatingImportDetail] ([RevenueRatingImportDetailID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[RevenueRatingImportDetailReduction] TO [MssExec]
GRANT INSERT ON  [dbo].[RevenueRatingImportDetailReduction] TO [MssExec]
GRANT DELETE ON  [dbo].[RevenueRatingImportDetailReduction] TO [MssExec]
GRANT UPDATE ON  [dbo].[RevenueRatingImportDetailReduction] TO [MssExec]
GO
Uses