SELECT mdCD.* FROM mdCatalogoDatos mdCD, mdArchivos mdA WHERE mdA.tipo ='txt' AND mdA.idCatalogoDatos = mdCD.idCatalogoDatos