Is it possible to return city list (for example) from Poland (country_id = 76) but using country name (value of country.country row) in WHERE not directly country_id? The structure of database bellow.
@app.route('/citiess')
def city_list3():
db = get_db()
data = db.execute('''
SELECT city FROM city
JOIN country ON city.country_id = country.country_id
WHERE city.country_id = 76
''').fetchall()
data_json = []
for i in data:
data_json.extend(list(i))
return jsonify(data_json)
