From cf8a8572471a9620fe2da6f28cad2ddb4b829727 Mon Sep 17 00:00:00 2001 From: "apurvis@lumoslabs.com" Date: Sat, 28 May 2016 16:16:11 +0800 Subject: [PATCH] Probably use WITH --- _includes/sqlstyle.guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_includes/sqlstyle.guide.md b/_includes/sqlstyle.guide.md index 80cffe1..adb4350 100644 --- a/_includes/sqlstyle.guide.md +++ b/_includes/sqlstyle.guide.md @@ -291,8 +291,8 @@ FROM my_tmp_table #### Sub-queries -In PostgreSQL you should be doing subqueries with `WITH` clauses and avoiding the use of inline -subqueries. +In PostgreSQL you should probably be writing subqueries with `WITH` clauses and mostly avoiding the +use of inline subqueries. In MySQL or other query engines that do not support `WITH`, sub-queries should be left aligned 2 spaces to the right of the opening parentheses and then laid out using the same style as a `WITH`