When I run the script below with comments on, I get 13147 rows. When I remove the comments, I get 12689 rows. I want to get 13147 rows. I am missing something in the left outer join. Will someone please tell me what is it that I am missing?