Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Choose only one row per id before join

SainaaMay 22 2020 — edited May 24 2020

Hello, I am trying to join 2 tables on ID. But one table may have 2 rows for same id, I want to take only one row. how can I do that?

For example:

table a

left join

table b

on a.id=b.id will return me 103 rows (because 2 ID got different rows)

table a will return me 101 rows

I want to have 101 rows after join

This post has been answered by BEDE on May 22 2020
Jump to Answer
Comments
Post Details
Added on May 22 2020
7 comments
4,388 views