OSHA WORK PLACE SAFETY TABLE JOINING SCHEMA Main tables STD VIOL STATE CODE TEXT ACTIVITYNO SITESTATE DELETE ISSUANCE CITATION ITEMNO ITEMGROUP EMPHASIS GRAVITY PENCURRENT PENINITIAL VIOLTYPE VIOLTYPEA STD_LOOKUP STD ABATE INSTANCES REC NUMEXPOSED ABATEDONE ERCONTDT VIOLCONT PENCONT EMPRCONT EMPECONT FINORDT PMA AMENDED ISA DISPEVT FTAINSP FTAPEN ISSUDT CONTDT FTA_AMN FTA_ISA FTA_DISP HAZCAT ABATEDT ISSUEDATE DATE_ABATE ABATEDT2 ERCONDATE FINORDATE FTA_ISDT CONTDATE FTAFINDT FTA_FIN 16 ACC CATEGORY CODE VALUE 17 18 OCC 19 CODE OCCUPATION 20 21 22 HZS 23 CODE TEXT 24 6 10 RID REPORTID OFFICE STATE CODE ABRV 7 11 FDA CODE AGENCY NAICS LOC PROG_CD FY STATUS PENDING RENEW SUBJECT 26 25 12 NAICS NAICSTEXT SIC SIC INDUSTRY 8 13 SCC TYPE STATE COUNTY CITY NAME HAZSUB LEPTABLE ACTIVITYNO SITESTATE ITEMNR CIT_NO ITEMGRP HAZSUB1 HAZSUB2 HAZSUB3 HAZSUB4 HAZSUB5 14 15 NEPTABLE PROG_CD FY STATUS PENDING RENEW SUBJECT 1 2 3 4 27 PROG To look for the history of penalties or failure to abate, including the amount and reason the amount was changed To find out whether the inspection is related to another inspection or other action. To look for information on additional information recorded for the inspection. 5 To look for information about a debt, including interest, fees and the outcome of the debt. 6 To look for details on penalties, types of violations -- willful, repeat, serious, etc. -- and the number of employees exposed to the danger. 7 To look for information on names of those injured, the task that was being performed when the accident occurred, whether a hazardous substance contributed to the accident, which body parts were injured, and the degree of the injury -- for example, whether it was fatal. 8 To look for information on accidents that involve hazardous substances but that do not involve people. 9 To look for descriptions of any special programs -- local or national -- related to the specific inspection. 10 9 ACTIVITYNO SITESTATE PROGCODE PROGTEXT To look for records of payment of administrative fees, penalties or failure-to-abate charges. To look for information on each federal and state office submitting compliance data. Codes: 111-499 = federal area office 500-599 = state 18(b) office Supplimental tables 2 3 12 To decode the orth American Industry Classification System codes. 13 To decode the Standard industrial classification codes. 14 To decode the Department of Commerce county code. 15 To decode the Department of Commerce city code. 16 To look for information on federal or state standard cited. 17 To look for information on the nature of injury. The joining applies only when the value in the CATEGORY field of the ACC table equals to NATURE-INJ. 18 To look for information on the part of body. The joining applies only when the value in the CATEGORY field of the ACC table equals to PART-BODY. To look for information on the source of injury. The joining applies only when the value in the CATEGORY field of the ACC table equals to SOURCE-INJ. 20 To look for information on the event type. The joining applies only when the value in the CATEGORY field of the ACC table equals to EVENT-TYP. 21 To look for information on the contributing factor. The joining applies only when the value in the CATEGORY field of the ACC table equals to ENVIR-FAC. ACTIVITYNO SITESTATE FTAINSP FTAPEN HISTTYPE CITID HISTDATE HISTEVENT HISTPEN HISTABDT HISTVTYPE HISTACT DATEHIST DTHISTAB FTADATE FTAEVENT FTAACT FILLER DATEFTA ADMPAY ACTIVITYNO SITESTATE FILLER APTYPE ADMDATE ADMAMT DATEADM PAYDATE PENAMT FTAAMT PAY163 PAYORG PAYBAL DATEPAY RELACT ACTIVITYNO SITESTATE ITEMNR RELTYPE ACTNR SAFETY HEALTH SHPGM DATARQD PENDUDATE FTADUDATE DUECODE PAPREP PATRAVEL PAONSITE PATECHSUPP PARPTPREP PAOTHRCNF PALITIGN PADENIAL PASUMHOURS FRSTCONTST PENREMIT FTAREMIT TOTPENLTY TOTALFTA TOTALVIOLS TOTSERIOUS PROG_ RELACT_ OPTINFO_ DEBT_ VIOLS_ EVENT_ HAZSUB_ ACCID_ ADMPAY_ SIC SITEZIP SITECITY SITECNTY DUNSNO CATSICGDE CATSICINSP LSTR_DT FRST_DT MOD_DATE OPENDT CLOSEDT CLOSEDT2 PENDUDT FTADUDT FRSTCONDT To decode the Agency code for owner-type. 19 1 CONTFLAG HISTFLAG OSHA1MOD STFLAG PREVCTTYP PREVACTNO ACTIVITYNO REPORTID CSHO_ID JOBTITLE OPTREPTNO ESTABNAME SITEADD SITESTATE HOSTESTKEY OWNERTYPE OWNERCODE ADVNOTICE OPENDATE CLOSEDATE CAT_SH NAICS NAICSEC NAICSINS INSPTYPE INSPSCOPE EMPCOUNT EMPCOVERED NATEMPCNT WALKAROUND INTRVIEWD UNION CLOSECASE WHYNOINSP CLOSEDATE2 SAFETYMANF SFTYCONST SFTYMARIT HELTHMANF HELTHCONST HELTHMARIT MIGRANT ANTCSRVD FRSTDENY LSTREENTR LWDIRATE 11 Updated April 2009 HISTORY OSHA ACCID ACTIVITYNO SITESTATE NAME RELINSP SEX DEGREE NATURE BODYPART SOURCE EVENT ENVIRON HUMAN TASK OCC_CODE HAZSUB AGE Lookup tables 4 OPTINFO ACTIVITYNO SITESTATE OPTYPE OPTID OPTVALUE 5 DEBT ACTIVITYNO SITESTATE DEBTTYPE WAIVED WA_REASON REFDATE INT DLQ DCA_SEND DCA_RET DCA_REC DCA_LITIG DCA_FEE ARCHIVED DCA_INT DCA_DLQ DFO_SEND DFO_RET DFO_REC AO_SEND CB_SEND IRS_SEND CB_RET NEXT_DATE LAST_DATE SOL_DATE SOL_REASN CASE_HOLD JUNK DATEREF SEND_DCA RET_DCA SEND_DFO RET_DFO SEND_AO SEND_CB SEND_IRS RET_CB DATE_NEXT DATE_LAST DATE_SOL 22 To look for information on the human factor. The joining applies only when the value in the CATEGORY field of the ACC table equals to HUMAN-FAC. 23 To decode the occupation codes. 24 To look for information on hazardous substance. 25 To look for information on hazardous substance. 26 To look for information on local program. The joining applies when the PROGCODE field in the PROG table has the value of “L.” 27 To look for information on national special emphasis program. The joining applies when the PROGCODE field in the PROG table has the value of “N” or “S.”