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!

PL/SQL tables - Join with regular table

reachmeabcMar 24 2014 — edited Mar 25 2014

Hi,

I have data like

col1, col2

10023, 234

13453, 342

12345, 542

First thing, i wanted to load these contents into a collection ( PL/SQL table ) where col1 should act as a key and col2 as value.

col1 cannot be a plain integer in a sequence from 1 to .. Col1 has different integers which are all distinct but not in sequence. I want this column to act as key in pl/sql table or nested table or any collection.

Once i load the data into collection , i wanted to join another table colx with col1 of collection returning, col2 of collection.

Can i do this in PL/SQL? How can load my own numbers as keys into pl/sql table..

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 22 2014
Added on Mar 24 2014
3 comments
536 views