Mysql query formation error in calculating total time taken by particular projects

astha sharma

I am not able to phrase the mqsql query for the shown table and values. I want the output as shown. The below values are in tabular form .

**Name | Time**           

  RWS  |         1                   
  CMS  |        2                
  JT    |       2                
  CMS  |         1      
  RWS  |         2

  JT    |        1
  RWS   |        1

I want the output as

**Name | time**

RWS |      4

CMS  |     3

JT    |    3
Rahul

You want to use SUM() aggregate function along with a GROUP BY clause like

select `Name`, sum(`Time`) as `Time`
from table1
group by `Name`

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to use pandas groupby with aggregation for counting total time taken by a particular event for a particular ID?

From Dev

Calculating time taken between rows in SQL

From Dev

Why the time taken by a thread is more than the total time taken by a process?

From Dev

Calculating total transmission time of a packet

From Dev

Calculating query execution time

From Dev

Total time taken by jmeter to execute the given load

From Dev

MySQL Query for calculating weightage

From Dev

How to remove the time taken by the clock from the total measured execution time?

From Dev

How to remove the time taken by the clock from the total measured execution time?

From Dev

How do you make a threadGroup time not be taken in consideration of the total time

From Dev

MySQL Query For Total Online Time Based On Login/Logout Entries

From Dev

How to get avg time taken by grouping a particular column using sql?

From Dev

Query not calculating total Sum of Invoice_Total Column

From Dev

Error in mysql query for getting rank from total mark

From Dev

Calculating total time excluding overlapped time & breaks in SQLServer

From Dev

Calculating time difference between activity timestamps in a query

From Dev

Calculating average spending (amount spent/person) in a particular month mysql

From Dev

Calculating total active time from on/off activity log

From Dev

Calculating total length of a union of time intervals presented at a table

From Dev

Extract only date from datetime for calculating total time in PHP

From Dev

Calculating total active time from on/off activity log

From Dev

Is It possible to write a TFS Query to get Actual Time Taken for a Tasks?

From Dev

Cpu Time taken by apache Pig query in Pig Latin

From Dev

Best way to know the time taken by a $http query to fetch the results?

From Dev

Best way to know the time taken by a $http query to fetch the results?

From Dev

Adding a filter to MongoDB query increases the time taken for count()

From Dev

query mysql to find total value

From Dev

MySQL query with total percentage by id

From Dev

sql query, total number of people who have taken more than 1 variety in a season

Related Related

  1. 1

    How to use pandas groupby with aggregation for counting total time taken by a particular event for a particular ID?

  2. 2

    Calculating time taken between rows in SQL

  3. 3

    Why the time taken by a thread is more than the total time taken by a process?

  4. 4

    Calculating total transmission time of a packet

  5. 5

    Calculating query execution time

  6. 6

    Total time taken by jmeter to execute the given load

  7. 7

    MySQL Query for calculating weightage

  8. 8

    How to remove the time taken by the clock from the total measured execution time?

  9. 9

    How to remove the time taken by the clock from the total measured execution time?

  10. 10

    How do you make a threadGroup time not be taken in consideration of the total time

  11. 11

    MySQL Query For Total Online Time Based On Login/Logout Entries

  12. 12

    How to get avg time taken by grouping a particular column using sql?

  13. 13

    Query not calculating total Sum of Invoice_Total Column

  14. 14

    Error in mysql query for getting rank from total mark

  15. 15

    Calculating total time excluding overlapped time & breaks in SQLServer

  16. 16

    Calculating time difference between activity timestamps in a query

  17. 17

    Calculating average spending (amount spent/person) in a particular month mysql

  18. 18

    Calculating total active time from on/off activity log

  19. 19

    Calculating total length of a union of time intervals presented at a table

  20. 20

    Extract only date from datetime for calculating total time in PHP

  21. 21

    Calculating total active time from on/off activity log

  22. 22

    Is It possible to write a TFS Query to get Actual Time Taken for a Tasks?

  23. 23

    Cpu Time taken by apache Pig query in Pig Latin

  24. 24

    Best way to know the time taken by a $http query to fetch the results?

  25. 25

    Best way to know the time taken by a $http query to fetch the results?

  26. 26

    Adding a filter to MongoDB query increases the time taken for count()

  27. 27

    query mysql to find total value

  28. 28

    MySQL query with total percentage by id

  29. 29

    sql query, total number of people who have taken more than 1 variety in a season

HotTag

Archive