Tuesday, 29 August 2017

Removing/Filtering records using Group Filters in Oracle Report (Oracle Report Builder)


Purpose: This will post will you understand the concept of “Group Filters” in Oracle report. Group filter allows you to remove records returned from the query (group) conditionally.

·         To use group filter click on the group and open the property Inspector of the group (shortcut “F4 key”).

·         There are 3 possible Filter types by which you can filter the records of the group.

o   First: - If you want your query to return first ‘n’ number of records then use the “First” filter type. Use “Number of Records” field to specify the number of records to be returned.

o   Last: - If you want your query to return last ‘n’ number of records then use the “Last” filter type. Use “Number of Records” field to specify the number of records to be returned.

o   PL/SQL:- If you want your query to return records conditionally then use “PL/SQL” filter type. In this type we have to write the conditions and logic in simple PL/SQL code. Double click on PL/SQL Filter field and write your code in the editor.




o   Here I had used a simple condition to explain the PL/SQL group filter. If the CF "CF_Balance" is not equal to zero then the record will display otherwise not.
Code:
If cf_balance <> 0 then
Return true;
Else
Return false;
End if;
 


           





7 comments:

  1. Hi, I find reading this article a joy. It is extremely helpful and interesting and very much looking forward to reading more of your work..
    build taxi app

    ReplyDelete
  2. Want to build an Uber-like laundry app? Apptunix’s laundry app developers design innovative and secure solutions.

    ReplyDelete
  3. Thanks for sharing this! If you’re looking for trusted disinfection cleaning service in Singapore, Sureclean provides professional solutions with hospital-grade, eco-friendly technology to keep your home safe and hygienic.

    ReplyDelete
  4. Thanks for sharing this! If you’re exploring the benefits of a mixed development condo Singapore, you’ll see how convenient and future-ready they are. With residential, retail, and office spaces all in one, these projects make urban living seamless—whether it’s shopping, dining, or commuting, everything is within reach.

    ReplyDelete
  5. Thanks for sharing this! If you’re exploring roller blinds in Singapore, check out the options available here. From blackout fabrics that block 100% of light and UV rays—ideal for cooling and privacy—to dim-out and perforated alternatives, there's something for every space and budget. Plus, many come with motorised upgrades for smart home convenience.

    ReplyDelete
  6. Thanks for highlighting this! If your institution is looking for reliable and delicious **institutional catering in Singapore**, explore the dedicated services offered here. Shiok Kitchen delivers halal-certified, large-scale catering that meets the unique needs of schools, hospitals, campuses, and other institutions with quality and consistency.

    ReplyDelete
  7. Thanks for sharing this! If you're searching for creative catering in Singapore, check out Creative Eateries Catering—they offer diverse cuisines from local to Western, bespoke menu options, and end-to-end support from décor to staffing.

    ReplyDelete