Skip to content

SQL query with nested JOIN returns incorrect results #14

@qianheng-aws

Description

@qianheng-aws

When using nested JOIN statements in SQL queries, the results are incorrect. For example:

SELECT * FROM table1 t1 JOIN table2 t2 ON t1.id = t2.id JOIN table3 t3 ON t2.id = t3.id

Returns duplicate rows that should not be present.

Expected behavior: Query should return correct joined results without duplicates.
Actual behavior: Duplicate rows appear in the result set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsuntriaged

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions