select employee_id
, month
, sum(working_hour) as [monthly total of working hour]
from table_name
group by employee_id, month
More Related Contents:
- Insert text with single quotes in PostgreSQL
- How to use GROUP BY to concatenate strings in MySQL?
- How can I list all foreign keys referencing a given table in SQL Server?
- How to update only one field using Entity Framework?
- Split function equivalent in T-SQL?
- SQL query to split column data into rows
- Is there a workaround for ORA-01795: maximum number of expressions in a list is 1000 error?
- How do I interpret precision and scale of a number in a database?
- Is it possible to delete from multiple tables in the same SQL statement?
- SQL Error: ORA-00933: SQL command not properly ended
- A way to extract from a DateTime value data without seconds
- How to select only the first rows for each unique value of a column?
- SQL Server (TSQL) – Is it possible to EXEC statements in parallel?
- Hamming distance on binary strings in SQL
- Modify Default value in SQL Server
- How to Split String by Character into Separate Columns in SQL Server
- Unordered results in SQL
- Using PIVOT in SQL Server 2008
- Oracle Dynamic Pivoting
- Does “Right Outer Join” have any useful purpose?
- Produce DISTINCT values in STRING_AGG
- Function in SQL Server 2008 similar to GREATEST in mysql?
- How to return two columns with function
- What is it exactly a BLOB in a DBMS context
- Count the Null columns in a row in SQL
- ORDER BY items must appear in the select list if SELECT DISTINCT is specified
- Query times out from web app but runs fine from management studio
- SQL SERVER DATETIME FORMAT
- SQL WITH clause example [duplicate]
- Insert all values of a table into another table in SQL