Simplest solution. Use a derived table.
Attachments
Library
Quick Reference
Archives
Sample Index
2004 Indexes