Understanding Table and Column Audits
The SELECT statements that are produced by auditing with SQL Alter deal with inconsistencies between PeopleTools tables and SQL in the definition of tables or columns. A SQL table is equivalent to a record in Application Designer, and a column is equivalent to a field.
To fix problems that are found in the system tables and columns, you need to know how PeopleSoft field types correspond to SQL data types:
| Application Designer Field Type | SQL Data Type | SQL Description |
|---|---|---|
|
Character |
CHAR |
Alphanumeric; fixed length. |
|
Long character |
LONGVAR |
Alphanumeric; variable length. |
|
Date |
DATE |
Dates; stored as fixed length; displayed in various formats. |
|
Number or signed number |
SMALLINT |
Numeric; integers only (no decimals); 1 to 4 digits (and 5 digits if RawBinary). |
|
Number or signed number |
INTEGER |
Numeric; integers only (no decimals); 5 to 9 digits (and 10 digits if RawBinary). |
|
Number or signed number |
DECIMAL |
Numeric; either (1) 10 or more digits or (2) contains decimal positions. |
Note:
In Application Designer, if a field is specified as required, or if a field is numeric and does not have a format of Phone, SSN (social security number), or SIN, you need to initialize the starting value of the column and specify the NOT NULL attribute in SQL.