Convert SQL to BAQ

It is on EpicWeb.epicor.com and there is no where else you can get it since it is Epicor property.

You may want to look at another approach since this is not a simple baq report. I would only do reports this way.