rat Table: Asset Meter Transaction
Sybase DBMS

Specifies the columns and rows with Sybase data type information for the rat Asset Meter Transaction table.

rat Columns

DescriptionColumn NameData Type ?Characteristics ?
Assetunit_scharlength 10
Meter IDmeter_id_scharlength 4
Run dated_run_scharformat YYYYMMDD
Run timet_run_scharlength 6
Unique portion for keyunique_scharlength 5
Record modification stamptimestamptimestamp
Invoice numberinvo_scharlength 8
Leaselse_scharlength 10
Operator initialsopr_scharlength 3
Reversal operator initialsopr_r_scharlength 3
Date of transaction reversald_rev_scharformat YYYYMMDD
Time of transaction reversalt_rev_scharlength 6
Usage period begin dated_usage_beg_scharformat YYYYMMDD
Usage period end dated_usage_end_scharformat YYYYMMDD
Base allowancebase_allow_linteger
Previous creditprev_credit_linteger
New creditnew_credit_linteger
Credit appliedcredit_applied_linteger
Number of billed items [1]billed1_linteger
Number of billed items [2]billed2_linteger
Number of billed items [3]billed3_linteger
Number of billed items [4]billed4_linteger
Number of billed items [5]billed5_linteger
Number of billed items [6]billed6_linteger
Number of billed items [7]billed7_linteger
Number of billed items [8]billed8_linteger
Number of billed items [9]billed9_linteger
Number of billed items [10]billed10_linteger
Cost per use rate [1]p_cpu_rate1_ddoublescale 5
Cost per use rate [2]p_cpu_rate2_ddoublescale 5
Cost per use rate [3]p_cpu_rate3_ddoublescale 5
Cost per use rate [4]p_cpu_rate4_ddoublescale 5
Cost per use rate [5]p_cpu_rate5_ddoublescale 5
Cost per use rate [6]p_cpu_rate6_ddoublescale 5
Cost per use rate [7]p_cpu_rate7_ddoublescale 5
Cost per use rate [8]p_cpu_rate8_ddoublescale 5
Cost per use rate [9]p_cpu_rate9_ddoublescale 5
Cost per use rate [10]p_cpu_rate10_ddoublescale 5
Amount chargedcharged_ddoublescale 2
Previous meter readprev_read_ddoublescale 0
New meter readnew_read_ddoublescale 0

rat Indexes

Index NamePiece 1Piece 2Piece 3Piece 4Piece 5Piece 6
rat_idx0unit_smeter_id_sd_run_st_run_sunique_s
rat_idx1invo_sunit_smeter_id_sd_run_st_run_sunique_s

Data Type Definitions and Characteristics

Following are descriptions of the Sybase data types used in the LeasePak database. Note that LeasePak does not use all the Sybase data types.

char
Sybase fixed length character string. Typically used to store short and medium-length string data such as keys, names, addresses, descriptions, four-character codes, and single-character switch values.
Characteristics:
  • length - The maximum number of ASCII or ISO-8859-1 characters the string can contain.

datetime
Sybase date and time, containing century, year, month, day, hour, minute, second, and second fraction (to 1/300 second) information.
Characteristics:
  • format - The date format for the LeasePak database. For example, format YYYYMMDD is the 4-digit year number followed by the 2-digit month number followed by the 2-digit day number with no intervening punctuation.

double
Sybase numeric data type. Typically used to store percentage, rate, and dollar amount information.
Characteristics:
  • precision - The magnitude and fractional granularity together, meaning the maximum number of places available to both the left and right of the decimal point. Use precision minus scale to determine the maximum number of places available to the left of the decimal point.
  • scale - The fractional granularity, meaning the number of places available to the right of the decimal point.

integer
Sybase numeric data type. Typically used to store counter and whole number information--term length, payment due day, number of units on lease, number of times delinquent, etc.

timestamp
Sybase data type based on the varbinary data type storing raw binary data. Whenever a table includes a timestamp column, Sybase updates the information in timestamp each time a user inserts or updates a record, preventing multiple-user cross-update data corruption.

text
Sybase expandable character data type. Typically used to store long-length string data such as notebook entries.