Table of Contents



pears.SegmentTarget

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Description

For reporting on consultant performance using placement nominal code segments against the segment targets.

Columns

Column Type Null Default Comment
SegmentTargetID char(20) NOT NULL
NominalSegmentID char(20) NOT NULL
Period integer NOT NULL
PlacementCount double NULL
FeeAmount double NULL
Exclude smallint NULL

Primary Key

Foreign Keys

Constraint Columns References Delete/update action
NominalSegment NominalSegmentID pears.NominalSegment (NominalSegmentID) NOT NULL; ON DELETE CASCADE

Referenced By

Indexes

Triggers

Original SQL

-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."SegmentTarget"
-- Table comment: For reporting on consultant performance using placement nominal code segments against the segment targets.
-- Statement count: 3
 
CREATE TABLE "pears"."SegmentTarget" (
    "SegmentTargetID"                CHAR(20) NOT NULL
   ,"NominalSegmentID"               CHAR(20) NOT NULL
   ,"Period"                         INTEGER NOT NULL
   ,"PlacementCount"                 DOUBLE NULL
   ,"FeeAmount"                      DOUBLE NULL
   ,"Exclude"                        SMALLINT NULL
   ,PRIMARY KEY ("SegmentTargetID" ASC) 
)
GO
 
 
COMMENT ON TABLE "pears"."SegmentTarget" IS 
	'For reporting on consultant performance using placement nominal code segments against the segment targets.'
GO
 
 
ALTER TABLE "pears"."SegmentTarget"
    ADD NOT NULL FOREIGN KEY "NominalSegment" ("NominalSegmentID" ASC)
    REFERENCES "pears"."NominalSegment" ("NominalSegmentID")
    ON DELETE CASCADE
GO