Thanks Charlie- this works great!
SELECT a.ged_firstname, a.ged_lastname, '-', b.ged_firstname as spouse_firstname, b.ged_lastname as spouse_lastname
FROM ged_main AS a
LEFT JOIN ged_main AS b
ON a.ged_spouse_id=b.ged_id
</cfquery>
<tr class="trdynamic">
<td class="tdheaderdynamic">Last Name</td>
<td class="tdheaderdynamic">First Name</td>
<td class="tdheaderdynamic">Spouse Last Name</td>
<td class="tdheaderdynamic">Spouse First Name</td>
</tr><cfoutput>
<cfloop query="match_spouse">
<tr>
<td class="tddynamic">#ged_firstname#</td>
<td class="tddynamic">#ged_lastname# </td>
<td class="tddynamic">#spouse_firstname#</td>
<td class="tddynamic">#spouse_lastname#</td>
</tr>
</cfloop>
</cfoutput>
</table>
How would I prevent the double entries
| Marie Cleophas Olivine | Roy | Joseph Hyacinthe | Boisvert |
| Joseph Hyacinthe | Boisvert | Marie Cleophas Olivine | Roy |
?
?
Try adding after the join:
And a.ged_spouse_id<>b.ged_spouse_id
Again, this is just a guess. A less obvious choice in such a self-join is to change the <> to a <. Test both carefully, and let us k own how it goes.