seniorT-SQL

What are computed columns and how do they affect indexing?

Updated May 17, 2026

Short answer

Computed columns are derived columns that can be persisted and indexed.

Deep explanation

Computed columns are defined using expressions based on other columns. If marked PERSISTED, they are stored physically and can be indexed. This improves performance for repeated calculations and enables SARGable queries.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More T-SQL interview questions

View all →