Code: Select all
<Tours>
<id>
<tourdesc>
<tourcityid>
</Tours>
<Cities>
<id>
<citydesc>
<countryid>
</Cities>
<Countries>
<id>
<countrydesc>
</Countries>
Based on the above relationships I can extract the following information in a single data band as follows:
{Tours.id} {Tours.tourdesc} {Tours.Tour_City.citydesc} {Tours.Tour_City.City_Country.countrydesc}
I now need to provide a parameter where the user selects from the list of countries from the Countries.countrydesc and that brings up only those Tours which are in that country.
I created a variable called Country and linked it to the Data Column key = countries.id and value = countries.countrydesc. I now need to tell sql query to use this variable.....and that's the bit I can't do.
Please will you tell me how to do that.
Currently my query strings are :
select id,tourdesc, tourcityid, from tours.
select id, citydesc, countryid from cities.
select id, countrydesc from countries
All help gratefully received with thanks.