I am looking to create a statement in which I need two columns from the SELECT
statement to be distinct.
Here is my current formula below (apologies for the sloppiness).
SELECT team_id_num,
source_id_num,
engineer,
status
FROM report central
GROUP BY engineer
ORDER BY team_id_num ASC;
For team_id_num
I am wanting to get just one team_id_num (DISTINCT)
. The tricky part is that there should be a unique source_id_num
for each correlating team_id_num
by engineer (need to group by engineer
because if not, I will not be able to see the team_id_num
if another engineer has that team_id_num.