T-SQL Challenges

Technical Article

TSQL Challenge 19 - Working with consolidated calculations on hierarchical structures

  • Article

This challenge involves generating an organizational hierarchy and calculating the total orders created by each employee and his/her subordinates. It involves a number of challenges such as generating a resultset in the correct hierarchical form, calculating the orders created by each employee and his/her subordinates and finally calculating the total orders created by self and all the subordinates.

2009-12-14

2,432 reads

Blogs

New Pluralsight Course - Certified Kubernetes Administrator - Performing Cluster Version Upgrades

By

We’re working through the major refresh of my Certified Kubernetes Administrator series at Pluralsight! The...

What I actually do at Microsoft

By

I started working at Microsoft in January 2022. I enjoy it. I even wrote...

Talkie - a simple, private, responsive interface for LLMs

By

Watch this video on YouTube I like using ChatGPT. But I don't like the $20/month...

Read the latest Blogs

Forums

Strange behavior passing a variable in XML.value

By PatLap

Hi,  anyone would know why as soon as I add a WHERE statement (even...

What happened to my SSMS shortcuts in 20.1?

By Eric Mamet

I installed SSMS 20.1 and all my trusted keyboard shortcuts don't work anymore... <Ctrl>E...

logshipping is out of synch need to debug

By anoop.mig29

Hi We have logshipping which get out of synch in night due to purging...

Visit the forum

Question of the Day

Operator Precedence Order

What is the correct order of operator precedence from highest (evaluated first) to lowest?

See possible answers