(Scroll down for question if you don't require background)
For days now I've been working on a project that in simple terms allows users to search an internal company ID and then be shown a load of information relating to that ID (all stored in a SQL db). Just to give you a tiny bit of background, I've always worked with WordPress, I love WP - Custom post types, custom fields, etc - I've always found it to be a good solution for most things.
Now I'm at something of a roadblock. This database that I need a "front-end" to read cannot be changed, it also cannot be moved (/merged with WP tables, etc) as other apps read the same "live" data from it.
I have managed to put together a tiny (sort-of) front end and search function. But I'm still coming across loads of issues, I'm not a pro at PHP/SQL, etc.
My question is:
For me, WordPress seems to to be the best option. How do I get WordPress to "read" from a database entirely separate from WP and "generate" pages based on this data (so that users can search, see info in this custom data, etc), like custom post types/fields but from a db that was never generated via WP? I understand that a WP table would still be required (but separate) to run the core functions of WP, etc.
Any help would be greatly appreciated!