I have a table named docList that holds the DocNumber, DocNumber, and DocTitle.
| ID | DocNumber | DocVersion | DocTitle |
| 1 | ABC-00123 | 00 | Quick Brown Fox |
| 2 | ABC-00456 | 00 | Lorem Ipsum |
| 3 | ABC-00456 | 01 | Lorem Ipsum |
| 4 | ABC-00789 | 00 | Foobar |
| 5 | ABC-00456 | 02 | Lorem Ipsum |
How I can apply Filter / Select to have a new table of the documents with the latest version? Namely, I'd like to get:
| ID | DocNumber | DocVersion | DocTitle |
| 1 | ABC-00123 | 00 | Quick Brown Fox |
| 4 | ABC-00789 | 00 | Foobar |
| 5 | ABC-00456 | 02 | Lorem Ipsum |
I tried to use Distinct(), but it returns only DocNumber column.
Thanks in advance,
simasima