| ID | VERSION_ID |
|---|---|
| 111 | ABC1234.1 |
| 222 | ABC1234.2 |
| 333 | ABC12345.1 |
| 444 | ABC12345.2 |
| 555 | ABC123456.1 |
| 666 | ABC123457.1 |
I have an oracle table in the above structure. I want to get unique result with version_id column like 'ABC%.%. For example for version_id ABC1234.* I should get result with Id 111(least one).
The final Result should be in below format.
| ID | VERSION_ID |
|---|---|
| 111 | ABC1234.1 |
| 333 | ABC12345.1 |
| 555 | ABC123456.1 |
| 666 | ABC123457.1 |