Optimising use of temporary tables in Sybase. IMHO a bit of a kludge but useful to know anyway.