If my query is returning:
| Id | Column1 | Column2 |
|---|---|---|
| 123 | Value | |
| 123 | Value | |
| 456 | Value | |
| 456 | Value |
and I have a second query that returns:
| Id | Column3 |
|---|---|
| 123 | 50 |
| 456 | 75 |
How can I join the two querys by Id without the Column3 value appearing for every row where an Id is present - rather, for every row where it is present AND has a value only in Column1. For example:
| Id | Column1 | Column2 | Column3 |
|---|---|---|---|
| 123 | Value | 50 | |
| 123 | Value | ||
| 456 | Value | 75 | |
| 456 | Value |