Ok so I have a FK constraint, from tblMeetingRoom to tblFacility, the Primary intFacilityID
is a FK in tblMeetingRoom
. However I am having issues with getting the data I want from tblFacility; I'm not quite sure what I am missing from the SQL syntax but I am sure someone will set me straight.
So you can see how I am trying to get the data from chrFacilityName within tblFacilty by using the relationship betweent intFacilityID and facilityId. However the query doesnt return the correct result. So what syntax do I need or what change to the query do I need to make.
In summary: I want a list of DISTINCT chrFacilityNames WHERE intFacilityID = facilityId