How to Think Like the SQL Server Engine