I have a table myTable
id | test_id_1 | test_id_2
001 | 0 | 1
001 | 1 | 0
002 | 1 | 0
002 | 0 | 1
003 | 1 | 0
003 | 0 | 1
And I'm trying to group the rows based on id so that I can get single rows with the id like such
id | test_id_1 | test_id_2
001 | 1 | 1
002 | 1 | 1
003 | 1 | 1
This is my query
SELECT *
FROM myTable
GROUP BY id
I keep getting an error saying that test_id_1 is not in the GROUP BY. But if I do include it I don't get the table I am looking for.