Home
Oracle PL / SQL
Aggregate Functions
Analytical Functions
Char Functions
Constraints
Conversion Functions
Cursor
Data Type
Date Timezone
Hierarchical Query
Index
Insert Delete Update
Large Objects
Numeric Math Functions
Object Oriented Database
PL SQL
Regular Expressions
Report Column Page
Result Set
Select Query
Sequence
SQL Plus
Stored Procedure Function
Subquery
System Packages
System Tables Views
Table
Table Joins
Trigger
User Previliege
View
XML
GROUPING_ID « Analytical Functions « Oracle PL / SQL
Oracle PL / SQL
Analytical Functions
GROUPING_ID
1.
An Example Query that Illustrates the Use of GROUPING_ID()
2.
One useful application of GROUPING_ID() is to filter rows using a HAVING clause
3.
You can use the GROUP_ID() function to remove duplicate rows returned by a GROUP BY clause
4.
Eliminate duplicate rows using a HAVING clause that only allows rows whose GROUP_ID() is 0