polo system design.pdfI've attached the database design. In the table called ActivityTeamPersonHose, I am trying to lookup names for the fields ActivityID and HorseID from the respect tables to which the ATPH table is linked. It is currently bringing back the ID numbers correctly but I want it to bring back the names.
The code on the lookup is as follows:
SELECT [Activity].[ID], [Activity].[ActivityName] FROM Activity ORDER BY [ActivityName]; - this brings back the Activity ID
and
SELECT [HorsesCurrentlyatDruids].[ID], [HorsesCurrentlyatDruids].[HorseID] FROM HorsesCurrentlyatDruids ORDER BY [HorseID]; - this brings back the Horse ID
In both cases the table which it brings the values back from joins on another table to find the names and sadly, my SQL skills are not at the level where I can work this out.
Any assistance would be gratefully received.