Looks like Toad doesn’t recognize the QUALIFY clause of Teradata’s SQL flavour and when I apply formating to the SQL statement it’s considered as part of the previous one, also the semicolumn of the statement gets removed.
Ex.
So far I was able to reproduce the issue partially. A statement with qualify is not formatted at all. I created CR 106672 to track the issue.
But I don’t see the other ones.
For me :
SQL1 has been formatted.
SQL2 with qualify stays as is and it does not attached to the previous one. Semicolon is not removed.
SQL2 has been formatted.
Could you please provide more information so we will be able to reproduce and address the issues?