What would be the equivalent Oracle(11g) code for performing following operation:
For MySQL
ps = con.prepareStatement("select SQL_CALC_FOUND_ROWS from student_details where UPPER(name) like UPPER(?) limit " + offset + ", " + noOfRecords);
and rs = ps.executeQuery("SELECT FOUND_ROWS()");
Try it like this:
The value returned in “SQL_CALC_FOUND_ROWS” will be the number of records that would have been selected if there wasn’t the
WHERE rn <= offsetclause