select substr(id,1,length(id)-3) from temptable
Attachments
Library
Quick Reference
Archives
Sample Index
2011 Indexes