Getting unique rows/values in SQL. I have same some data like this
valueA ValueB ValueC
test "Value1" "Something"
test "Value1" "Something else"
test2 "Value1" "Something else"
So then I want to get the first two rows since valueC is different and then I also want row 3.
but say Row 4 is
test "Value1" "Something"
The same as Row 1. I don't want that row.
Can I do this with a select statement or where or something else?
In my schema ValueA is in one table and then Values b and C are from a different table. So I am doing something like
select * from table1,table2
which gives me the 3 values.
But I don't want the repeated values.