How to use sql querys in class and Ax Query

How to use sql querys in class and Ax Query

It’s hard to say what you need without more information from you, but maybe you’re looking for Select Statement Syntax.