I understand that my title probably doesn’t explain my situation very well, but I honestly don’t know how to say it.
I am using SQL to access a DB2 database.
Using my screenshot 1 below as a reference:
column 1 has three instances of “U11124” with three different descriptions (column 2)
I want this query to return the first instance of "U11124" and its description, but then also unique entries for other lines. Image 2 shows my desired result.
image 1

image 2

----- EDIT ----
to answer some questions / messages: technically, it should not be the first, only one of these entries. the problem is that we have three descriptions, and we need to show only one, now I said that it does not matter which one.
source
share