Skip to Main Content

SQL Developer for VS Code

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Wrong results with QUALIFY in vscode

Monika LewandowskaApr 22 2026 — edited Apr 22 2026

HR Schema, 26ai version, extension v26.1.1

Query with QUALIFY (I know that it is not the best query ever and we shouldnt use qualify like that but the results of the query should be the same no matter which tool we choose :D )

select  department_id, last_name, salary
from employees
qualify salary > 15000;

If I run it as as script the results are fine

DEPARTMENT_ID LAST_NAME                     SALARY
------------- ------------------------- ----------
          90 King                          24000
          90 Yang                          17000
          90 Garcia                        17000
     But if I run it as a query - all rows are fetched

BUT If I run it as a query but highlight a commented line, the results will be fine.

-- qualify
select  department_id, last_name, salary
from employees
qualify salary > 15000;  

This post has been answered by thatJeffSmith-Oracle on Apr 22 2026
Jump to Answer
Comments
Post Details
Added on Apr 22 2026
2 comments
83 views