1-Open the data dictionary of the present registry office. Ex: \\Server\UNC\Folder\MyDictionary.add
2-I'm going to UNION the AGENT's Document linking it to another data dictionary that is in the central registry office on the internet. Ex: \\201.64.98.121:2660\UNC\Folder\DictionaryCenter.add
This is to record in a temporary table that will be merged with two more tables later for reporting purposes.
How would you do this in MySql ?
Here's a simple example I use.
Select
  Tb01.cAgeCompareceuDoc ,
  Tb01.nAtoNumero ,
  Tb01.nAtoLivro ,
  Tb01.nAtoFolha FROM N_AUT_DOCUMENTOS AS Tb01
  Where Tb01.nAtoLivro = _nLivro_Lanca_ and Tb01.cAgeCompareceuNome <> '' Â
Union Select
  Tb02.cAgeCompareceuDoc ,
  Tb02.nAtoNumero ,
  Tb02.nAtoLivro ,
  Tb02.nAtoFolha FROM CartDistribuidor.N_AUT_DOCUMENTOS AS Tb02
Where Tb02.nAtoLivro = _nLivro_Lanca_ and Tb02.cAgeCompareceuNome <> ''
        __ORDER_BY__  ;From CartDistribuidor is a LINK referring to the address \\201.64.98.121:2660\UNC\Folder\DictionaryCenter.add recorded in the ad data dictionary for direct targeting by SQL commands.
