In principle, your solution is correct; however we need to consider if all tables and column names should be wrapped in quotes or not, and how this would be portable to other rdbms. -- Pierangelo Masarati mailto:pierangelo.masarati@sys-net.it SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497