No idea with AS400, but the normall way would be to link to the table using File>Link Tables, write a query in the queries box and execute it.
Not sure if the versions of SQL are compatable, so you may want to execute locally.
May be worht asking on an AS400 board, as it's pretty specialist.