Putting the partition name in a SELECT
869638Aug 5 2011 — edited Aug 5 2011Hello,
I am trying to do something like this.
SELECT u.id FROM users PARTITION (SELECT partition_name FROM dba_tab_partitions WHERE table_name='users') u WHERE u.active=1
The problem is that you can't have a select in there to fetch the partion name. Is there any way I can do this in a single SELECT?
Thanks in advance