Building a dynamic query
I have a need to build a truly dynamic query, that would be able to take online form input and create a query that would handle data requests like, How many employees earn less than #some salary, have a masters degree, and speak chinese. or show me all the employees in org A that are vets.
A true ad hoc query tool.
the back end is oracle 11g, the database contains about 8 or 9 tables all total there about 500 records that will be searched. we are running CF7.
I just started kicking this around today so I am open for Ideas. add filters in the where clause, i got that, start with 1=1 and use conditional statements to add filters as necessary. setting up the Select and From statements, need help there.
Since this is a small db, I thout about, but scrapped, making a super-view to query from.
your thoughts and suggestions would be greatly appreciated.
thanks
jb
