If you’re getting an error that reads something like “The correlation name ‘a’ is specified multiple times in a FROM clause’” in SQL Server, it could be that you’re doing a join on two tables, but you’re assigning them the same aliases.
Each table’s alias must be unique.
To fix this issue, be sure to use unique table aliases in your query.
Continue reading