Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sum of distinct values or using Analytical Function - remove distinct

Gor_MahiaJul 30 2025 — edited Jul 31 2025

All,
ive the below table structure + data:
iam trying to get the SUM OF AGING column based on DISTINCT/unique TASK_COUNTER. it can be easy with CTE/nesting inner query but instead i want to write entire query at the same level with one SELECT stmnt.

Any help is appreciated.

Oracle 12c

This post has been answered by Solomon Yakobson on Jul 31 2025
Jump to Answer
Comments
Post Details
Added on Jul 30 2025
5 comments
145 views