ms access - SQL - Structuring code for Group by and Sum in query -



ms access - SQL - Structuring code for Group by and Sum in query -

i appriciate ideas on how approach problem/function in sql code. please see attached image.

i need grouping absencecause, sum numdays according each absencecausegroup , displayed under each absenceemployeeid.

the goal accomplish new table like:

|absenceemployeeid|absencecause|numdays| | 081014002722|children | 9| | 081014002722|travel | 2|

thanks, joergen mathiesen

something ?

select absenceemployeeid, absencecause, sum(numdays) que_absence_days grouping absenceemployeeid, absencecause

sql ms-access database-design

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -