Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select newest records that have distinct Name column #130

Open
eleteroboltz opened this issue Oct 3, 2017 · 0 comments
Open

Select newest records that have distinct Name column #130

eleteroboltz opened this issue Oct 3, 2017 · 0 comments

Comments

@eleteroboltz
Copy link

I'm trying to query a table and instead of showing all duplicate names, I want it to show only the newest record of each name.

I tried to do the query but I did not succeed.

Congratulations for the great work and thank you in advance.

Exemple: Original table
ID| Name | Price | Date
0 | A | 10 | 2017-01-21
1 | B | 09 | 2017-02-22
2 | A | 08 | 2017-03-23
3 | C | 10 | 2017-04-15
4 | B | 08 | 2017-05-19

Desired result
ID| Name | Price | Date
2 | A | 08 | 2017-03-23
3 | C | 10 | 2017-04-15
1 | B | 09 | 2017-05-19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant