I have the following code:
select *
from (
select aTable.cas_id, aTable.udv_string
from bTable, aTable
where bTable.field_id = '50'
and bTable.field_id = aTable.field_id
) infotable
This gives the following output:
cas_id udv_string
582 2 4
615 2
276 23
453 2 4
1004 2 4
As you can see, three rows have multiple values which are space separated. I have tried to use 'split_string' but this doesn't work for me. Can someone please help? I have also searched and tried to apply the solutions on your stackoverflow sites regarding this problem to no avail.
I would like the output to be:
cas_id udv_string
582 2
582 4
615 2
276 23
453 2
453 4
1004 2
1004 4