Hello everyone Im working with postgres to get a result pair but I am getting duplicate records. Im getting something like:
stop_name|departure_time
------------------------
AAA | 16489646
BBB | 16465464
AAA | 46546665
AAA | 18421654
BBB | 16849685
AAA | 56496865
I expect something like:
stop_name|departure_time
------------------------
AAA | 16489646
BBB | 16465464
Because is a bit complex I made a fiddle HERE where you can see a sample of the schema and the query Im using. Can some one gimme a hand to achieve the expected results? Thanks.