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

Comparing timestamps #27

Open
jacektrocinski opened this issue Jul 5, 2019 · 0 comments
Open

Comparing timestamps #27

jacektrocinski opened this issue Jul 5, 2019 · 0 comments

Comments

@jacektrocinski
Copy link

jacektrocinski commented Jul 5, 2019

Hi,

Is there a good way to compare similarities between timestamps with pg_similarity? E.g.:

Table A

City Arrival Time
Los Angeles 2019-03-05 11:00:00.00000+00
Hong Kong 2019-03-07 17:00:00.00000+00

Table B

City Arrival Time
Los Angeles 2019-03-06 13:00:00.00000+00
Los Angeles 2019-03-01 11:00:00.00000+00

When joining Table A and Table B I would like to return only the rows which are most similar, in this case the rows Los Angeles with arrival dates on 2019-03-05 and 2019-03-06 are the closest matches.

@jacektrocinski jacektrocinski changed the title Comapring timestamps Comparing timestamps Jul 5, 2019
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