SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
nested tables in SQL Profiler

 
Reply to topic    SoftTree Technologies Forum Index » DB Audit, DB Mail, DB Tools View previous topic
View next topic
nested tables in SQL Profiler
Author Message
bob lettau



Joined: 02 Oct 2002
Posts: 1

Post nested tables in SQL Profiler Reply with quote

I am getting insufficient privileges when running this sql that has a nested table in it.

Can you help me? Thank you.
**************************************
SELECT *
FROM (SELECT KEY_ID,

MAX (DECODE (n.name, 'volume.break', n.value, null)) "volume.break",

MAX (DECODE (n.name, 'SEGMENT_UUID', n.value, null)) "SEGMENT_UUID"

FROM metadata_tab t, TABLE(t.md_ntab) n

WHERE KEY_ID IN (SELECT KEY_ID

FROM metadata_tab T, TABLE(T.md_ntab) N

WHERE T.key_context = 'PRI' AND

T.grouping = 'Element Metadata' AND

N.name = 'PUB_CODE' AND N.value = 'FLLB'

) AND

name IN ('volume.break', 'SEGMENT_UUID')
GROUP BY KEY_ID)
WHERE "volume.break" IS NOT NULL


Wed Oct 02, 2002 9:43 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 6484

Post Re: nested tables in SQL Profiler Reply with quote

Does it work in SQL*Plus?

: I am getting insufficient privileges when running this sql that has a nested
: table in it.

: Can you help me? Thank you.
: **************************************
: SELECT *
: FROM (SELECT KEY_ID,

: MAX (DECODE (n.name, 'volume.break', n.value, null))
: "volume.break",

: MAX (DECODE (n.name, 'SEGMENT_UUID', n.value, null)) "SEGMENT_UUID"

: FROM metadata_tab t, TABLE(t.md_ntab) n

: WHERE KEY_ID IN (SELECT KEY_ID

: FROM metadata_tab T, TABLE(T.md_ntab) N

: WHERE T.key_context = 'PRI' AND

: T.grouping = 'Element Metadata' AND

: N.name = 'PUB_CODE' AND N.value = 'FLLB'

: ) AND

: name IN ('volume.break', 'SEGMENT_UUID')
: GROUP BY KEY_ID)
: WHERE "volume.break" IS NOT NULL

Wed Oct 02, 2002 11:21 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » DB Audit, DB Mail, DB Tools All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.