Mysql – how to solve the below CTE syntax error for the mentioned query
I have a sample query. I have tried to rewrite it with CTE but some errors occurred. Please check and solve the below query. actual query; select dt.population, dt.name, c.name from ( select distinct countrycode, name from city ) as…