====== 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 ===== * SegmentTargetID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | NominalSegment | NominalSegmentID | [[database:tables:pears_nominalsegment|pears.NominalSegment (NominalSegmentID)]] | NOT NULL; ON DELETE CASCADE | ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== * No indexes found. ===== Triggers ===== * No triggers found. ===== 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