The documentation does indeed say; "When you use a table-valued parameter with a JOIN in a FROM clause, you must also alias it" but it’s perhaps not as prominent as it could be. So let’s alias the Table-Valued Parameters…