Tables [dbo].[RevenueRatingImportHeaderReduction]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)1298
Created10:12:52 PM Thursday, December 28, 2006
Last Modified9:09:16 AM Friday, November 8, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_RevenueRatingImportHeaderReduction: RevenueRatingImportHeaderReductionIDRevenueRatingImportHeaderReductionIDint4
No
1 - 1
Cluster Key IX_RevenueRatingImportHeaderReduction_RevenueReatingImportHeaderFID: RevenueRatingImportHeaderFIDForeign Keys FK_RevenueRatingImportHeaderReduction_RevenueRatingImportHeader: [dbo].[RevenueRatingImportHeader].RevenueRatingImportHeaderFIDRevenueRatingImportHeaderFIDint4
No
Foreign Keys FK_RevenueRatingImportHeaderReduction_ReductionType: [dbo].[ReductionType].ReductionTypeFIDReductionTypeFIDint4
No
Foreign Keys FK_RevenueRatingImportHeaderReduction_ReductionBasis: [dbo].[ReductionBasis].ReductionBasisFIDReductionBasisFIDint4
Yes
Descriptionvarchar(128)128
Yes
Percentagedecimal(10,3)9
Yes
ReductionAmountmoney8
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_RevenueRatingImportHeaderReduction: RevenueRatingImportHeaderReductionIDPK_RevenueRatingImportHeaderReductionRevenueRatingImportHeaderReductionID
Yes
80
Cluster Key IX_RevenueRatingImportHeaderReduction_RevenueReatingImportHeaderFID: RevenueRatingImportHeaderFIDIX_RevenueRatingImportHeaderReduction_RevenueReatingImportHeaderFIDRevenueRatingImportHeaderFID80
Foreign Keys Foreign Keys
NameDeleteColumns
FK_RevenueRatingImportHeaderReduction_ReductionBasisReductionBasisFID->[dbo].[ReductionBasis].[ReductionBasisID]
FK_RevenueRatingImportHeaderReduction_ReductionTypeReductionTypeFID->[dbo].[ReductionType].[ReductionTypeID]
FK_RevenueRatingImportHeaderReduction_RevenueRatingImportHeaderCascadeRevenueRatingImportHeaderFID->[dbo].[RevenueRatingImportHeader].[RevenueRatingImportHeaderID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[RevenueRatingImportHeaderReduction]
(
[RevenueRatingImportHeaderReductionID] [int] NOT NULL IDENTITY(1, 1),
[RevenueRatingImportHeaderFID] [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_RevenueRatingImportHeaderReduction_ReductionAmount] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueRatingImportHeaderReduction] ADD CONSTRAINT [PK_RevenueRatingImportHeaderReduction] PRIMARY KEY NONCLUSTERED  ([RevenueRatingImportHeaderReductionID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE CLUSTERED INDEX [IX_RevenueRatingImportHeaderReduction_RevenueReatingImportHeaderFID] ON [dbo].[RevenueRatingImportHeaderReduction] ([RevenueRatingImportHeaderFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueRatingImportHeaderReduction] ADD CONSTRAINT [FK_RevenueRatingImportHeaderReduction_ReductionBasis] FOREIGN KEY ([ReductionBasisFID]) REFERENCES [dbo].[ReductionBasis] ([ReductionBasisID])
GO
ALTER TABLE [dbo].[RevenueRatingImportHeaderReduction] ADD CONSTRAINT [FK_RevenueRatingImportHeaderReduction_ReductionType] FOREIGN KEY ([ReductionTypeFID]) REFERENCES [dbo].[ReductionType] ([ReductionTypeID])
GO
ALTER TABLE [dbo].[RevenueRatingImportHeaderReduction] ADD CONSTRAINT [FK_RevenueRatingImportHeaderReduction_RevenueRatingImportHeader] FOREIGN KEY ([RevenueRatingImportHeaderFID]) REFERENCES [dbo].[RevenueRatingImportHeader] ([RevenueRatingImportHeaderID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[RevenueRatingImportHeaderReduction] TO [MssExec]
GRANT INSERT ON  [dbo].[RevenueRatingImportHeaderReduction] TO [MssExec]
GRANT DELETE ON  [dbo].[RevenueRatingImportHeaderReduction] TO [MssExec]
GRANT UPDATE ON  [dbo].[RevenueRatingImportHeaderReduction] TO [MssExec]
GO
Uses