I am sitting at a problem currently. I have imported an open source geolocation database.
I have two tables I want access to.
Table A: 
ID   | lat | lon
200 | 48  | 12
Table B:
ID   | Type  | Value
200 | City   | Munich
200 | State | Bavaria
Now I want to have a result like this:
ID   | lat | lon | TypeValue | TypeValue
200 | 48  | 12  | Munich        | Bavaria
Is this possible in only one query?
EDIT: The only value I know is "Munich"
EDIT2: This is what I've got so far:
SELECT 
geodb_coordinates.lat AS lat,
geodb_coordinates.lon AS lon,
geodb_textdata.text_val AS text
FROM 
geodb_coordinates,
geodb_textdata
WHERE 
geodb_coordinates.loc_id = geodb_textdata.loc_id AND
geodb_textdata.text_val LIKE :location
GROUP BY geodb_textdata.text_val
ORDER BY LENGTH(geodb_textdata.text_val)
LIMIT 3
 
     
    