Skip to content

Qa SQL test implementations - #86

Open
Venkat-qa-engg wants to merge 12 commits into
sbms4d:qa_testfrom
Venkat-qa-engg:qa_test
Open

Qa SQL test implementations#86
Venkat-qa-engg wants to merge 12 commits into
sbms4d:qa_testfrom
Venkat-qa-engg:qa_test

Conversation

@Venkat-qa-engg

@Venkat-qa-engg Venkat-qa-engg commented Jul 23, 2026

Copy link
Copy Markdown

Implemented SQL solutions for the QA test tasks:

  • calculate_largest_expensors.sql — pre-aggregates expenses per employee
    before joining to employee/manager tables, reducing join cardinality
  • find_manager_cycles.sql — recursive CTE traversing the manager hierarchy,
    tracking visited paths to detect and stop circular reporting chains

Approach prioritised readability and query optimisation (pre-aggregation,
avoiding unnecessary joins) over minimal solutions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant