how to build a query dynamically in java
the query can be complex(joins,having,where,and,or) or simple
there can be n tables in a database and the goal is to retrieve data from those tables based on some criteria .
how to proceed in this situation where the query has to be built dynamically.
plz reply me in this regard as soon as possible