I am trying to get some information from two unrelated tables and am using a third table that has a list of a lot of different ids. I want when the primary id matches with another entry for it to recognize that the two separate ids are related.
Using oracle sqldeveloper and am still learning sql, I think I might need to use pivot, but I'm not sure how to carry it out in this situation.
What I have
id1 id2
9PFTXVA DF-2648615
9PFTXVA 0092000000heHY3PHK
What I want
id1 id2 id3
9PFTXVA DF-2648615 0092000000heHY3PHK