Tables [dbo].[RevenueRatingImportedHeaderReduction]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)2353
Created10:12:52 PM Thursday, December 28, 2006
Last Modified8:43:42 AM Thursday, December 5, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_RevenueRatingImportedHeaderReduction: RevenueRatingImportedHeaderReductionIDRevenueRatingImportedHeaderReductionIDint4
No
1 - 1
Foreign Keys FK_RevenueRatingImportedHeaderReduction_RevenueRatingImportedHeader: [dbo].[RevenueRatingImportedHeader].RevenueRatingImportedHeaderFIDIndexes IX_RevenueRatingImportedHeaderReduction_RevenueRatingImportedHeaderFID: RevenueRatingImportedHeaderFIDRevenueRatingImportedHeaderFIDint4
No
BillingMajorReductionFIDint4
Yes
Foreign Keys FK_RevenueRatingImportedHeaderReduction_ReductionType: [dbo].[ReductionType].ReductionTypeFIDReductionTypeFIDint4
No
Foreign Keys FK_RevenueRatingImportedHeaderReduction_ReductionBasis: [dbo].[ReductionBasis].ReductionBasisFIDReductionBasisFIDint4
Yes
Descriptionvarchar(128)128
Yes
Percentagedecimal(10,3)9
Yes
ReductionAmountmoney8
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_RevenueRatingImportedHeaderReduction: RevenueRatingImportedHeaderReductionIDPK_RevenueRatingImportedHeaderReductionRevenueRatingImportedHeaderReductionID
Yes
80
IX_RevenueRatingImportedHeaderReduction_RevenueRatingImportedHeaderFIDRevenueRatingImportedHeaderFID80
Foreign Keys Foreign Keys
NameColumns
FK_RevenueRatingImportedHeaderReduction_ReductionBasisReductionBasisFID->[dbo].[ReductionBasis].[ReductionBasisID]
FK_RevenueRatingImportedHeaderReduction_ReductionTypeReductionTypeFID->[dbo].[ReductionType].[ReductionTypeID]
FK_RevenueRatingImportedHeaderReduction_RevenueRatingImportedHeaderRevenueRatingImportedHeaderFID->[dbo].[RevenueRatingImportedHeader].[RevenueRatingImportedHeaderID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[RevenueRatingImportedHeaderReduction]
(
[RevenueRatingImportedHeaderReductionID] [int] NOT NULL IDENTITY(1, 1),
[RevenueRatingImportedHeaderFID] [int] NOT NULL,
[BillingMajorReductionFID] [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_RevenueRatingImportedHeaderReduction_ReductionAmount] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueRatingImportedHeaderReduction] ADD CONSTRAINT [PK_RevenueRatingImportedHeaderReduction] PRIMARY KEY NONCLUSTERED  ([RevenueRatingImportedHeaderReductionID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_RevenueRatingImportedHeaderReduction_RevenueRatingImportedHeaderFID] ON [dbo].[RevenueRatingImportedHeaderReduction] ([RevenueRatingImportedHeaderFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RevenueRatingImportedHeaderReduction] ADD CONSTRAINT [FK_RevenueRatingImportedHeaderReduction_ReductionBasis] FOREIGN KEY ([ReductionBasisFID]) REFERENCES [dbo].[ReductionBasis] ([ReductionBasisID])
GO
ALTER TABLE [dbo].[RevenueRatingImportedHeaderReduction] ADD CONSTRAINT [FK_RevenueRatingImportedHeaderReduction_ReductionType] FOREIGN KEY ([ReductionTypeFID]) REFERENCES [dbo].[ReductionType] ([ReductionTypeID])
GO
ALTER TABLE [dbo].[RevenueRatingImportedHeaderReduction] ADD CONSTRAINT [FK_RevenueRatingImportedHeaderReduction_RevenueRatingImportedHeader] FOREIGN KEY ([RevenueRatingImportedHeaderFID]) REFERENCES [dbo].[RevenueRatingImportedHeader] ([RevenueRatingImportedHeaderID])
GO
GRANT SELECT ON  [dbo].[RevenueRatingImportedHeaderReduction] TO [MssExec]
GRANT INSERT ON  [dbo].[RevenueRatingImportedHeaderReduction] TO [MssExec]
GRANT DELETE ON  [dbo].[RevenueRatingImportedHeaderReduction] TO [MssExec]
GRANT UPDATE ON  [dbo].[RevenueRatingImportedHeaderReduction] TO [MssExec]
GO
Uses