Select the first row in a join of two tables in one statement

后端 未结 8 1815
名媛妹妹
名媛妹妹 2020-12-29 12:59

I need to select only the first row from a query that joins tables A and B. On table B exist multiple records with same name. There are not identifiers in any of the two tab

8条回答
  •  天涯浪人
    2020-12-29 13:45

    Not sure if this will solve your problem or not, but you could try using the GROUP BY clause and group by one of the name columns.

    DB2 Group by tutorial

提交回复
热议问题