Skip to content

Instantly share code, notes, and snippets.

@radityopw
Last active February 29, 2016 07:15
Show Gist options
  • Save radityopw/46b8ded92a0a87bef8b8 to your computer and use it in GitHub Desktop.
Save radityopw/46b8ded92a0a87bef8b8 to your computer and use it in GitHub Desktop.
use AdventureWorks2012
go
SELECT SalesPersonID, COUNT(*) as JML_ORDER
FROM Sales.SalesOrderHeader
WHERE SalesPersonID IS NOT NULL
GROUP BY SalesPersonID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment