When using SELECT * FROM myTable
I get a list that looks like this:
A 473
A 234
B 752
C 136
However, I don't want to get several rows with the same letter. I just want to get the first entry with a certain letter and then skip to the next, like so:
A 473
B 752
C 136
Now, I know how to do this when I know what type of data I have. However, I want to write a SQL command that works regardless of what the table looks like, that is, something along the lines: SELECT * FROM myTable WHERE duplicates of column1 are discarded
.
EDIT: I doesn't really need to be the first entry that gets selected for each unique column1 value. Any row will do.
EDIT 2: I very much would like for the sollution to work both on strings and numbers.