Invention Grant
- Patent Title: Redundant group by and distinct removal
-
Application No.: US15658249Application Date: 2017-07-24
-
Publication No.: US10558660B2Publication Date: 2020-02-11
- Inventor: Rafi Ahmed , Andrew Witkowski , Sankar Subramanian
- Applicant: Oracle International Corporation
- Applicant Address: US CA Redwood Shores
- Assignee: Oracle International Corporation
- Current Assignee: Oracle International Corporation
- Current Assignee Address: US CA Redwood Shores
- Agency: Hickman Palermo Becker Bingham LLP
- Main IPC: G06F16/2453
- IPC: G06F16/2453

Abstract:
A method, apparatus, and stored instructions are provided for the removal of redundant GROUP BY and/or DISTINCT. Every table in the FROM clause of the query block must be a qualified table for the GROUP-BY clause or the DISTINCT keyword in the SELECT clause of the query block to be removed. A table Tx that satisfies at least one of the following two conditions is referred to as a qualified table: (1) Tx has a non-null unique column Tx.u that appears on the GROUP BY clause or the SELECT clause that contains a DISTINCT keyword and (2) There is a qualified table Ty and Ty has a filtering join with Tx.
Public/Granted literature
- US20190026332A1 REDUNDANT GROUP BY AND DISTINCT REMOVAL Public/Granted day:2019-01-24
Information query