Let’s look at how to create a simple GROUP BY report in CsvPath Framework’s tabular data validation language. Of all our examples, this is an easy one!

A GROUP BY query is straightforward. It selects rows and groups them according to one or more columns. The archetypal example is:

SELECT
dept,
role,
SUM(salary) total_salary
FROM    employee
GROUP BY dept, role

This query produces a result set with three columns. The first two are a unique combination of the dept and role columns and the third is a summation of the salaries in the rows with that combination of department and role.

For our example we’ll use FlightPath Data’s built-in examples because they are handy. Every time you create a project Fligh…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help