Formatting after JOIN
Arcom
Posts: 6
When using SQL Prompt > Format SQL when using the JOIN statement the table name and join condition are indented and placed on the next line (which is my preference).
If I user an INNER JOIN, LEFT JOIN or RIGHT JOIN however, the table name and join condition are placed immediately after the join statements on the same line.
Is it possible to force the INNER JOIN etc. formatting to behave the same way as JOIN?
If I user an INNER JOIN, LEFT JOIN or RIGHT JOIN however, the table name and join condition are placed immediately after the join statements on the same line.
Is it possible to force the INNER JOIN etc. formatting to behave the same way as JOIN?
Comments
I'm not sure I'm seeing the same behaviour you've described when I try it here. Would it be possible to post a small script that shows what you're currently seeing and how you'd like it instead?
Thanks,
Aaron.
SELECT * FROM Dept d INNER JOIN Employee e ON d.DeptId = e.DeptId
reformats to
whereas
SELECT * FROM Dept d JOIN Employee e ON d.DeptId = e.DeptId
reformats to
My preference is for the latter, but I can't find an option to set this
Thanks
Andy
I've logged this request as SP-5079 in our internal tracking system. We will be looking to improve the flexibility of the formatting system in Prompt in the future so this request will be helpful when we consider the list of rules.
If you have any more suggestions please feel free to post them here!
Thanks,
Aaron.