Skip to content

T615/T617 WINDOW FUNCTION #76

Closed
wants to merge 2 commits into from

Conversation

makssent
Copy link
Collaborator

@makssent makssent commented Aug 14, 2024

Fixes #62, #63.

  • Запрос: SELECT CUST_CODE, CUST_NAME, rank() over (order by opening_amt), lead(opening_amt,1) over (order by opening_amt) FROM CUSTOMER order by opening_amt

Ошибка: You have an error in your SQL syntax: SELECT CUST_CODE CUST_NAME rank() over (order by opening_amt) lead(opening_amt1) over (order by opening_amt) FROM CUSTOMER order by opening_amt no viable alternative at input '(' at line 1 position 42 near @942:42='('<29>1:42

  • Запрос: SELECT CUST_CODE, CUST_NAME, rank() over (order by opening_amt), first_value (opening_amt) over (order by opening_amt) FROM CUSTOMER order by opening_amt

Ошибка: You have an error in your SQL syntax: SELECT CUST_CODE CUST_NAME rank() over (order by opening_amt) first_value (opening_amt) over (order by opening_amt) FROM CUSTOMER order by opening_amt no viable alternative at input '(' at line 1 position 42 near @942:42='('<29>1:42

Новая ошибка: Cannot invoke "org.antlr.v4.runtime.tree.ParseTree.accept(org.antlr.v4.runtime.tree.ParseTreeVisitor)" because "tree" is null

@makssent
Copy link
Collaborator Author

Нужны корректировки

@makssent makssent closed this Aug 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

T615 LEAD and LAG functions
1 participant