Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.NominalSegment ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Description ===== Nominal Code segments used to build up the nominal code attached to placement income. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **NominalSegmentID** | char(20) | NOT NULL | | | | SegmentNumber | smallint | NOT NULL | | 1 to 5 | | CodeFragment | char(12) | NOT NULL | | | | Description | char(20) | NULL | | | | PermTemp | char(1) | NOT NULL | | P, T or B for both | | sortorder | integer | NULL | | | | Defunct | tinyint | NULL | | | ===== Primary Key ===== * NominalSegmentID ===== Foreign Keys ===== * No outgoing foreign keys found. ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_segmenttarget|pears.SegmentTarget]] | NominalSegment | NominalSegmentID | NominalSegmentID | ===== Indexes ===== ^ Name ^ Type ^ Columns ^ Detail ^ | SegmentNumber_CodeFragment | Unique index | SegmentNumber, CodeFragment | | ===== Triggers ===== * No triggers found. ===== Original SQL ===== <code sql> -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."NominalSegment" -- Table comment: Nominal Code segments used to build up the nominal code attached to placement income. -- Statement count: 5 CREATE TABLE "pears"."NominalSegment" ( "NominalSegmentID" char(20) NOT NULL ,"SegmentNumber" smallint NOT NULL ,"CodeFragment" char(12) NOT NULL ,"Description" char(20) NULL ,"PermTemp" char(1) NOT NULL ,"sortorder" integer NULL ,"Defunct" tinyint NULL ,PRIMARY KEY ("NominalSegmentID" ASC) ) go COMMENT ON COLUMN "pears"."NominalSegment"."SegmentNumber" IS '1 to 5' go COMMENT ON COLUMN "pears"."NominalSegment"."PermTemp" IS 'P, T or B for both' go COMMENT ON TABLE "pears"."NominalSegment" IS 'Nominal Code segments used to build up the nominal code attached to placement income.' go CREATE UNIQUE INDEX "SegmentNumber_CodeFragment" ON "pears"."NominalSegment" ( "SegmentNumber","CodeFragment" ) go </code> database/tables/pears_nominalsegment.txt Last modified: 2026/08/07 19:24by 127.0.0.1