Khalid Baheyeldin wrote:
> This is plain SQL, and hence there is nothing stopping you from using DISTINCT as well as ORDER BY, like any other SQL.
> It should be portable between MySQL and PostgreSQL.
 
Thank you, Khalid. It looked like it, but this is the first time in this territory, so I wasn't sure. I did that and it worked great.
 
Nancy E. Wichmann, PMP
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.