October 22, 2024
Chicago 12, Melborne City, USA
SQL

How to get a value according to its number of occurrence


I have a Key-Value table like this:

enter image description here

How to get a value according to the occurrence index of the key.

I only got the key index using

select INSTR ( key,
       'key5<>'
      , 1,1
      )
  from table ;

How should I get the complementary value to the delimiter occurrence?

I want to get the parallel value to ‘key5’ which is 961.



You need to sign in to view this answers

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video