For purposes of an investigation or proceeding, the secretary or an officer designated by him may administer oaths and affirmations, subpoena witnesses, compel their attendance, take evidence, and require the production of books, papers, correspondence, memoranda, agreements or other documents or records which the secretary considers relevant or material to the inquiry.