Only the products/technologies listed at the upper right are supported on the QnA site. More will added later, and eventually all TechNet/MSDN forums will migrate here this year. But for now use the existing forums for topics not listed.
I think you need SQL query code. I would ask here:
https://social.msdn.microsoft.com/Forums/en-us/home?forum=transactsql