SQL Interview: 11 Adding a column in the middle of a table's columns
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: Medium
Question:
When you add a column to an existing SQL Server table, the column is added to the end of the table. The column will end up with the highest column_id.
If a developer asks you how a column can be added to the middle of a table instead, what is your advice and how would you approach the request?
2021-04-21