Some SQL tips I've learned over the last few years

&hellip;even though I spent part of my career writing SQL queries in corporations. Temporary tables with with with can be used to create temporary tables that can be used in the main query. with cities as ( select name, state , population from city ) select * from cities where population > 1000000 ; filter in aggregated columns having is not the only way to filter aggregated columns. filter is…