SQL Language (MOSC)

MOSC Banner

skip the group

edited Sep 9, 2010 10:02AM in SQL Language (MOSC) 8 commentsAnswered
-- Update: as correctly pointed the SQL won't work. Updated the sql Hello,
 i spent sometime trying to get this to work, but hit the block. Any ideas are welcome.

i have a query that returns several groups of records. Then it joins the result to a lookup table (by PK) and, as the final result of the query, returns only the records from the given group where not a single record exists in the lookup table.
smth like this:

select * from (
select b.id, b.version_num,
          sum(NVL(b.id,0)) over(partition by b.id, b.version_num) GRP

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center