Summary
Steps to extract an attachment including SQL statement to retrieve related records when attachment is split into segments. Also includes explanation of the attachmentCompressed and Attachmentsegmentsize parameters