View slot9.WORLD.TSTA.TDEX_RMS_ARRESTEE_VW
Legend:
Primary key columns
Columns with indexes
Implied relationships
Excluded column relationships
< n > number of related tables
 
Column Type Size Nulls Auto Default Children Parents Comments
HEADER char 2  √  null
ACTION varchar2 0  √  null
LABEL varchar2 0  √  null
UPDATE_DATE date 7  √  null
UPDATE_TIME varchar2 4  √  null
AGENCY varchar2 9  √  null
INCIDENT_NUMBER varchar2 20
ARRESTEE_UNIQUE_ID number 0
LAST_NAME varchar2 100  √  null
FIRST_NAME varchar2 80  √  null
MIDDLE_NAME varchar2 80  √  null
SUFFIX_NAME varchar2 30  √  null
SOCIAL_SECURITY_NUMBER number 0  √  null
DATE_OF_BIRTH date 7  √  null
AGE number 0  √  null
GENDER varchar2 30
RACE varchar2 30
ETHNICITY varchar2 30  √  null
RESIDENT_STATUS varchar2 0  √  null
US_CITIZEN varchar2 0  √  null
PASSPORT_VISA_NUMBER varchar2 30  √  null
IMMIGRATION_DOCUMENT_NUMBER varchar2 0  √  null
COUNTRY_OF_BIRTH varchar2 0  √  null
DRIVERS_LICENSE_NUMBER varchar2 30  √  null
DRIVERS_LICENSE_STATE varchar2 30  √  null
DRIVERS_LICENSE_CLASS varchar2 30  √  null
HOME_ADDRESS varchar2 50  √  null
HOME_ADDRESS_CITY varchar2 40  √  null
HOME_ADDRESS_STATE varchar2 30  √  null
HOME_ADDRESS_ZIP_CODE varchar2 12  √  null
HOME_PHONE varchar2 12  √  null
CELL_PHONE varchar2 12  √  null
EMPLOYER_ADDRESS varchar2 0  √  null
EMPLOYER_ADDRESS_CITY varchar2 0  √  null
EMPLOYER_ADDRESS_STATE varchar2 0  √  null
EMPLOYER_ADDRESS_ZIP_CODE varchar2 0  √  null
WORK_PHONE varchar2 0  √  null
EMPLOYER_NAME varchar2 0  √  null
OCCUPATION varchar2 0  √  null
JUVENILE_INDICATOR varchar2 0  √  null
HAIR_COLOR varchar2 30  √  null
EYE_COLOR varchar2 30  √  null
HEIGHT varchar2 3  √  null
WEIGHT varchar2 3  √  null
SCARS_MARKS_TATTOOS varchar2 40  √  null
DNA_INDICATOR varchar2 0  √  null
REGISTERED_OFFENDER_INDICATOR varchar2 0  √  null
BIRTH_CITY_TEXT varchar2 0  √  null
BIRTH_STATE varchar2 0  √  null
FBI_ID varchar2 30  √  null
BUILD varchar2 30  √  null
EYEWEAR varchar2 1  √  null
DENTAL_CHARACTERISTIC varchar2 0  √  null
SPEECH varchar2 0  √  null
SKIN_TONE varchar2 30  √  null
ARRESTEE_ARMED_WITH varchar2 0  √  null
ARMED varchar2 0  √  null
DISPOSITION_ARRESTEE_UNDER_18 varchar2 0  √  null
ARREST_NUMBER number 0  √  null
ARREST_SYSTEM_NUMBER number 0  √  null
INCIDENT_SYSTEM_NUMBER number 0
WARRANT_NUMBER varchar2 0  √  null
WARRANT_AGENCY_ORI varchar2 9  √  null
WARRANT_AGENCY_NAME varchar2 40  √  null
WARRANT_AGENCY_STATE varchar2 2  √  null
ALTERNATE_NAME_1 varchar2 182  √  null
ALTERNATE_NAME_1_TYPE char 5  √  null
ALTERNATE_NAME_2 varchar2 0  √  null
ALTERNATE_NAME_2_TYPE varchar2 0  √  null
ALTERNATE_NAME_3 varchar2 0  √  null
ALTERNATE_NAME_3_TYPE varchar2 0  √  null
SID varchar2 30  √  null

Analyzed at Mon Sep 20 21:05 MDT 2021

View Definition:
select distinct 'AP' HEADER, null ACTION, null LABEL, arees.updator_date UPDATE_DATE, to_char(arees.updator_date, 'HH24MI') UPDATE_TIME, ac.ori_number AGENCY, inc.inc_report_number INCIDENT_NUMBER, ip.per_person_id ARRESTEE_UNIQUE_ID, --Person id mn.lname LAST_NAME, mn.fname FIRST_NAME, mn.mname MIDDLE_NAME, mn.title_code SUFFIX_NAME, mn.ssn SOCIAL_SECURITY_NUMBER, mn.dob DATE_OF_BIRTH, bdm_age(mn.dob, arees.updator_date) AGE, --Age as of UPDATE_DATE --p.sex_sex_code GENDER, --18230 --p.race_race_code RACE, --18230 --p.ethnicity_code ETHNICITY, --18230 mp.sex_code GENDER, --18230 mp.race_code RACE, --18230 mp.ethnicity_code ETHNICITY, --18230 null RESIDENT_STATUS, --Not in EJS RMS null US_CITIZEN, --Not in EJS RMS (select id_number from misc_ids where updator_date = (select max(updator_date) from misc_ids mi where per_person_id = p.person_id and misc_cd_misc_id_code = misc.misc_cd_misc_id_code) and rownum = 1) PASSPORT_VISA_NUMBER, null IMMIGRATION_DOCUMENT_NUMBER, --Not in EJS RMS null COUNTRY_OF_BIRTH, --Not in EJS RMS (select id_number from misc_ids where updator_date = (select max(updator_date) from misc_ids mi2 where per_person_id = p.person_id and misc_cd_misc_id_code = 'DL')and rownum = 1) DRIVERS_LICENSE_NUMBER, (select state_cd_state_code from misc_ids where updator_date = (select max(updator_date) from misc_ids mi2 where per_person_id = p.person_id and misc_cd_misc_id_code = misc2.misc_cd_misc_id_code) and rownum = 1) DRIVERS_LICENSE_STATE, (select misc_id_type from misc_ids where updator_date = (select max(updator_date) from misc_ids mi2 where per_person_id = p.person_id and misc_cd_misc_id_code = misc2.misc_cd_misc_id_code) and rownum = 1) DRIVERS_LICENSE_CLASS, (select substrb(ejs_addresses.full_street_summary(a1.address_id),1,50) from addresses a1 where a1.address_id = (select max(address_id) from person_addresses pa where pa.person_id = p.person_id and address_type_code = 'RES')) HOME_ADDRESS, (select city from addresses a1 where a1.address_id = (select max(address_id) from person_addresses pa where pa.person_id = p.person_id and address_type_code = 'RES')) HOME_ADDRESS_CITY, (select state_cd_state_code from addresses a1 where a1.address_id = (select max(address_id) from person_addresses pa where pa.person_id = p.person_id and address_type_code = 'RES')) HOME_ADDRESS_STATE, (select substrb(zip5 || '-' || zip4,1,12) from addresses a1 where a1.address_id = (select max(address_id) from person_addresses pa where pa.person_id = p.person_id and address_type_code = 'RES')) HOME_ADDRESS_ZIP_CODE, (select area || '-' || prefix || '-' || suffix from phones where phone_id = (select max(phone_id) from phones where per_person_id = p.person_id and pho_typ_cd_phone_type_code = pho.pho_typ_cd_phone_type_code)) HOME_PHONE, (select area || '-' || prefix || '-' || suffix from phones where phone_id = (select max(phone_id) from phones where per_person_id = p.person_id and pho_typ_cd_phone_type_code = pho2.pho_typ_cd_phone_type_code)) CELL_PHONE, null EMPLOYER_ADDRESS, --Not in EJS RMS null EMPLOYER_ADDRESS_CITY, --Not in EJS RMS null EMPLOYER_ADDRESS_STATE, --Not in EJS RMS null EMPLOYER_ADDRESS_ZIP_CODE, --Not in EJS RMS null WORK_PHONE, --Not in EJS RMS null EMPLOYER_NAME, --Not in EJS RMS null OCCUPATION, --Not in EJS RMS null JUVENILE_INDICATOR, --Use Age (select hair_cd_hair_code from physical_descriptions where date_of_info = (select max(date_of_info) from physical_descriptions where per_person_id = p.person_id) and rownum = 1) HAIR_COLOR, (select eye_cd_eye_code from physical_descriptions where date_of_info = (select max(date_of_info) from physical_descriptions where per_person_id = p.person_id) and rownum = 1) EYE_COLOR, (select height from physical_descriptions where date_of_info = (select max(date_of_info) from physical_descriptions where per_person_id = p.person_id) and rownum = 1) HEIGHT, (select weight from physical_descriptions where date_of_info = (select max(date_of_info) from physical_descriptions where per_person_id = p.person_id) and rownum = 1) WEIGHT, (select description from smts where smt_id = (select max(smt_id) from SMTS where per_person_id = p.person_id) and rownum = 1) SCARS_MARKS_TATTOOS, null DNA_INDICATOR, --Not in EJS RMS null REGISTERED_OFFENDER_INDICATOR, null BIRTH_CITY_TEXT, null BIRTH_STATE, (select id_number from misc_ids where updator_date = (select max(updator_date) from misc_ids mi2 where per_person_id = p.person_id and misc_cd_misc_id_code = misc3.misc_cd_misc_id_code) and rownum = 1) FBI_ID, (select bld_cd_build_code from physical_descriptions where date_of_info = (select max(date_of_info) from physical_descriptions where per_person_id = p.person_id) and rownum = 1) BUILD, (select glasses from physical_descriptions where date_of_info = (select max(date_of_info) from physical_descriptions where per_person_id = p.person_id) and rownum = 1) EYEWEAR, null DENTAL_CHARACTERISTIC, --Not in EJS RMS null SPEECH, (select skn_cd_skin_code from physical_descriptions where date_of_info = (select max(date_of_info) from physical_descriptions where per_person_id = p.person_id) and rownum = 1) SKIN_TONE, null ARRESTEE_ARMED_WITH, null ARMED, null DISPOSITION_ARRESTEE_UNDER_18, ia.arr_arrest_id ARREST_NUMBER, ia.arr_arrest_id ARREST_SYSTEM_NUMBER, inc.incident_id INCIDENT_SYSTEM_NUMBER, null WARRANT_NUMBER, ac2.ori_number WARRANT_AGENCY_ORI, ac2.agency_desc WARRANT_AGENCY_NAME, ac2.agency_state WARRANT_AGENCY_STATE, REPLACE(mn2.lname || ', ' || NVL(mn2.fname, ',NULL'), ',NULL') ALTERNATE_NAME_1, 'ALIAS' ALTERNATE_NAME_1_TYPE, null ALTERNATE_NAME_2, --Not Needed. null ALTERNATE_NAME_2_TYPE, --Not Needed. null ALTERNATE_NAME_3, --Not Needed. null ALTERNATE_NAME_3_TYPE, --Not Needed. (select id_number from misc_ids where updator_date = (select max(updator_date) from misc_ids mi2 where per_person_id = p.person_id and misc_cd_misc_id_code = misc4.misc_cd_misc_id_code) and rownum = 1) SID from arrestees arees, incident_people ip, incidents inc, agency_codes ac, master_names mn, people p, master_people mp, --18230 misc_ids misc, misc_ids misc2, --person_addresses padd, --addresses addr, phones pho, phones pho2, physical_descriptions pd, smts smt, misc_ids misc3, incident_arrests ia, --warrants warr, e_warrants ewar, agency_codes ac2, master_names mn2, misc_ids misc4, incident_supplements isup where ip.inc_per_id = arees.inc_per_id and isup.inc_incident_id = ip.inc_incident_id and isup.supp_seq = ip.supp_seq and inc.incident_id = isup.inc_incident_id and isup.isc_status_code = 'A' and ac.agency_code = inc.agncy_cd_agency_code and mn.per_person_id = ip.per_person_id and mn.mn_id = ip.mn_mn_id and p.person_id = mn.per_person_id and P.MASTER_PERSON_ID = MP.MASTER_PERSON_ID and misc.per_person_id (+) = p.person_id and misc.misc_cd_misc_id_code (+) = 'PP' and misc2.per_person_id (+) = p.person_id and misc2.misc_cd_misc_id_code (+) = 'DL' --and padd.person_id (+) = p.person_id --and padd.address_type_code (+) = 'RES' --and addr.address_id = padd.address_id and pho.per_person_id (+) = p.person_id and pho.pho_typ_cd_phone_type_code (+) = 'RES' and pho2.per_person_id (+) = p.person_id and pho2.pho_typ_cd_phone_type_code (+) = 'CEL' and pd.per_person_id (+) = p.person_id and smt.per_person_id (+) = p.person_id and misc3.per_person_id (+) = p.person_id and misc3.misc_cd_misc_id_code (+) = 'X1' and ia.incsup_inc_incident_id (+) = inc.incident_id --and warr.arrest_id (+) = ia.arr_arrest_id --20238 --and ewar.warrant_id (+) = warr.ewar_warrant_id --20238 --and ac2.agency_code (+) = ewar.agncy_cd_agency_code --18230 and ac2.agency_code (+) = ewar.agency_code --18230 and mn2.per_person_id (+) = p.person_id --and mn2.nme_typ_name_type_code (+) = 'A' --18230 and mn2.name_type_code (+) = 'A' --18230 and misc4.per_person_id (+) = p.person_id and misc4.misc_cd_misc_id_code (+) = 'X2'
 
Possibly Referenced Tables/Views: