sql queries and R scripts for extracting datasets from Oracle and PostgreSQL BOSS survey databases