*open OPEN DATABASE first.dbc OPEN DATABASE second.dbc *activate first SET DATABASE TO first *use will respect acitve dbc USE somedbf ALIAS FIRST_DBF *use in specific dbc (first is active) USE second!somedbf ALIAS Second_DBF *in sql select / insert update SELECT Cur1.Field1 F_First,Cur2.Field1 F_second FROM First!somedbf AS Cur1 INNER JOIN Second!somedbf AS Cur2 ON someexpression *XBase like append etc will respect the local alias *close a specific on SET DATABASE TO first CLOSE DATABASESIf first and second differ only in path, you have to specify the path all the time.