Rudy, thanks for the reply. I will absolutely take your advice and stop using the backticks. The sql I posted today was from a stack I was having a problem with and was written prior to you enlightening me yesterday. I will go through my code and take them out. I don’t like them either. In the code you formatted, I can see the immediate changes. Much cleaner indeed.
As far as me not getting the correct result set back, that was due to a programming error on my part. I just couldn't seem to pinpoint where the problem was until now.
Maybe I am going about this whole entire process in the wrong way, and please let me know if I am, but the joins I am writing are quite long and several stacks have several sql statements. Instead of joining 10 tables together, I have decided to do smaller chunks of sql code and break it up.
From a complete “readability” standpoint in the programming code of the UI, I have put all of the sql code on one line. I do not like this either and I am wondering if there is another way to do this. When I have an issue like I did today, I have to extract the sql and then format it so it becomes readable again so that I can troubleshoot it.
Is there a tip or trick you can offer?
Thanks,
Frank