It depends on how they write the sql...

Try the way I suggested...