{"id":3044,"date":"2018-10-20T16:33:19","date_gmt":"2018-10-20T03:33:19","guid":{"rendered":"https:\/\/www.helenanderson.co.nz\/?p=3044"},"modified":"2020-05-14T18:41:50","modified_gmt":"2020-05-14T06:41:50","slug":"sql-ctes","status":"publish","type":"post","link":"https:\/\/helenanderson.co.nz\/sql-ctes\/","title":{"rendered":"Why I use SQL CTEs"},"content":{"rendered":"\n

How do CTEs work?<\/h2>\n\n\n\n

In the example below I’ve used CTEs to:<\/p>\n\n\n\n