Skip to content

AL04 — Duplicate table alias in one FROM

Group: Aliasing · Auto-fixable: no

Two tables in the same FROM share an alias, so any qualified reference to it is ambiguous. Give each table a distinct alias.

bad: FROM orders o JOIN order_items o ON ...
good: FROM orders o JOIN order_items i ON ...

Disable this rule in banshee.toml:

[lint]
exclude = ["AL04"]

Or silence one line with -- noqa: AL04. See Linting.