Sinceramente non si capisce molto. Forse è meglio che posti la struttura di entrambe le tabelle ed i campi che vuoi estrapolare.