Pradeep Bhat
Thank you Bhat,
Here is the code for the above said problem
after getting a connection to database assume that "con" represents Connection object.
then
Statement st= con.createStatement();
ResultSet rs=st.executeQuery(strQuery);
where strQuery is a
String for strQuery="select col_name from table_name"
will get the result set
but when strQuery="select max(col_name) from table_name"
then above mentioned Exception is thrown.
Regards
arun