SQL Interview 7: Are statement terminators ever required in T-SQL?
This is a post in the SQL Interview series. These aren’t trick or gotcha questions, they’re just questions designed to scope out a candidate’s knowledge around SQL Server and Azure SQL Database.
Section: Development Level: Intro
Question:
Many versions of SQL require every SQL statement to be terminated with a semicolon.
Since it was created, T-SQL has listed statement terminators as optional.
Are there any situations where they are required, and not optional?
2021-04-08