I'm trying to create a dynamic sql statement because the where clause can
change depending on certain parameters. I was able to get it to work with
out the grouping clause added. I do not know what I am doing wrong. Any
help would be appreciated.
Thanks in advance