How to find maximum,minimum,average values from a table in mysql/sqlite in netbeans