... 2 BEST PRACTICES FOR DATABASE PROGRAMMING 30 The query executes successfully and we get the results expected: Bob Smith Flat 1, 27 Heigham Street 1 Bob Smith Flat 1, 27 Heigham Street 2 ... concentrate on the reasons I consider these to be best practices, rather than the code itself. CHAPTER 2 BEST PRACTICES FOR DATABASE PROGRAMMING 29 Identify Hidden Assumptions in Your Code One ... INSERT INTO @Table VALUES (1,1), (1 ,2) , (2, 1), (2, 2), (3,1), (3 ,2) ; SELECT * FROM @Table WHERE x = 1 AND y = 1 OR y = 2; GO In this case, as before, the code indentation actually detracts...