You cannot have non-mendix tables in your mendix database. But you could run another database alongside and query on that database. However, the implementation of this should be done manually in Java actions.
See the database replicator for the way to connect and retrieve data in java