Multiple choice sql

SELF JOIN not allowed in

  1. Indexed view

  2. procedures

  3. triggers

  4. views

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

SQL Server indexed views have strict limitations to ensure determinism and performance optimization. SELF JOINs are not allowed in indexed views because they create circular dependencies that make it difficult for the query optimizer to maintain the indexed view's integrity. Regular views, stored procedures, and triggers can all use SELF JOINs without restrictions.