Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax errors in 'Informatics Metric PCORnet MSSQL.sql' #39

Open
bfurner opened this issue Aug 2, 2021 · 0 comments
Open

Syntax errors in 'Informatics Metric PCORnet MSSQL.sql' #39

bfurner opened this issue Aug 2, 2021 · 0 comments

Comments

@bfurner
Copy link

bfurner commented Aug 2, 2021

When attempting to execute the code, there appear to be some syntax errors related to missing aliases for subqueries.

Msg 102, Level 15, State 1, Line 459
Incorrect syntax near ')'.
Msg 102, Level 15, State 1, Line 465
Incorrect syntax near ')'.
Msg 102, Level 15, State 1, Line 477
Incorrect syntax near ')'.
Msg 102, Level 15, State 1, Line 483
Incorrect syntax near ')'.
Msg 102, Level 15, State 1, Line 494
Incorrect syntax near ')'.
Msg 102, Level 15, State 1, Line 500
Incorrect syntax near ')'.
Msg 102, Level 15, State 1, Line 511
Incorrect syntax near ')'.
Msg 102, Level 15, State 1, Line 517
Incorrect syntax near ')'.
Msg 102, Level 15, State 1, Line 528
Incorrect syntax near ')'.
Msg 102, Level 15, State 1, Line 534
Incorrect syntax near ')'.
Msg 102, Level 15, State 1, Line 545
Incorrect syntax near ')'.
Msg 102, Level 15, State 1, Line 551
Incorrect syntax near ')'.

Adding an alias (e.g. as subq) at each of these points in the code allows the query to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant