"Lonni J Friedman" <netllama@gmail.com> writes:
> Thanks, this is exactly what I need. Only one question. What is the
> 'ss' that you have in that query?
Table alias for the sub-select. The SQL spec says you have to provide
one ... you can leave out the AS keyword, though.
regards, tom lane