Hi, I wonder if anyone has any pointers to this.
I have a page querying cities from my database.
fields to query in database
country
australia
uk
uk
france
uk
city
sydney
london
brighton
paris
oxford
?Keyword=London
That works fine and the page is populated with all the records in london.
In this page I want to make an additional query with a list of all the other cities in the uk, for example. Thats where I come unstuck.
The query i am working on just gets me the city of the main query and not cities shared by the county of the main query. I have tried select in() and imagine it needs that but where I am lost.
I hope that make sense
Thanks in advance
Richard
I have a page querying cities from my database.
fields to query in database
country
australia
uk
uk
france
uk
city
sydney
london
brighton
paris
oxford
?Keyword=London
That works fine and the page is populated with all the records in london.
In this page I want to make an additional query with a list of all the other cities in the uk, for example. Thats where I come unstuck.
The query i am working on just gets me the city of the main query and not cities shared by the county of the main query. I have tried select in() and imagine it needs that but where I am lost.
Code:
description=Request("keyword") If description <> "" Then Set rs8=Server.CreateObject("ADODB.Recordset") rs8.CursorLocation = 3 ''" & description & "' ' SQLQuery = "select table.city from table where table.city= '" & description & "' group by city HAVING COUNT(city) > 0 order by count(city) desc"
Thanks in advance
Richard
Comment