SQL: Don't use CTE in the name of your CTEs
I used to be able to tell when someone moved from working with Access databases and arrived at SQL Server. What was the tell-tale sign?
All their tables had names like tblCustomers.
We’ve pretty much stopped people doing that, and we also have pretty much stamped out Hungarian Notation, at least in SQL Server. We don’t use variable names like @intCreditRating, although there are still a number of people that I see clinging to Hungarian Notation when they work with SSIS, particularly in their .NET code. In their code, you’ll see values like strCustomerName and so on. The irony is that .NET developers long since moved past doing that, yet people writing .NET code in SSIS still do it.
2020-05-22


