I am looking to return only the rows which contain a certain string in their VARRAY.
Table Definition:
create table studentClasses(
student_id INTEGER,
full_name VARCHAR2(30),
phone_nos varray_num,
classes varray_class,
subjects_registered nestedsubjecttable,
home_address O_ADDRESS ,
next_of_kin VARCHAR2(30),
nok_address O_ADDRESS
)nested table subjects_registered store as ext_classes;
Part of my inserts
insert into studentClasses values(1, 'John Doe',
varray_num('1', '2', '3', '4', '5', '6'),
....
I want to be able to return all entries which contain a specific number in their phone_nos VARRAY. So return people with '6' in their varray.
Any ideas?