Skip to content

T122 WITH (excluding RECURSIVE) in subquery #58

Open
TedCraft opened this issue Jun 13, 2024 · 2 comments
Open

T122 WITH (excluding RECURSIVE) in subquery #58

TedCraft opened this issue Jun 13, 2024 · 2 comments
Labels
parser Ошибки, связанные с парсером данных

Comments

@TedCraft
Copy link
Collaborator

You have an error in your SQL syntax: SELECT C.CUST_NAME C.CUST_CITY FROM CUSTOMER c WHERE c.agent_code in (WITH T121 AS (SELECT AGENT_CODE FROM AGENTS) SELECT C.CUST_NAME FROM CUSTOMER c LEFT JOIN T121 T ON T.AGENT_CODE = C.AGENT_CODE) no viable alternative at input 'in' at line 1 position 68 near @1568:69='in'<106>1:68

@TedCraft
Copy link
Collaborator Author

SELECT C.CUST_NAME, C.CUST_CITY FROM CUSTOMER c WHERE c.agent_code in (WITH T121 AS (SELECT AGENT_CODE FROM AGENTS) SELECT C.CUST_NAME FROM CUSTOMER c LEFT JOIN T121 T ON T.AGENT_CODE = C.AGENT_CODE)

@makssent makssent mentioned this issue Jul 4, 2024
@makssent
Copy link
Collaborator

makssent commented Jul 4, 2024

  • "Table or view T121 does not exist."

@TedCraft TedCraft mentioned this issue Jul 4, 2024
@TedCraft TedCraft added the parser Ошибки, связанные с парсером данных label Aug 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
parser Ошибки, связанные с парсером данных
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants