Compare departments and titles