Here is my data

```
cardNo| userName| tablename| hours |  date 
1     |  a      |    a     |   12  |  12-06-2015 
1     |  a      |    a     |    5  |  11-06-2015 
2     |  b      |    b     |    3  |  15-06-2015 
1     |  a      |    a     |    8  |  12-06-2015 
2     |  b      |    b     |    3  |  21-06-2015 
1     |  a      |    a     |   12  |  14-06-2015 
2     |  b      |    b     |   10  |  8-06-2015 

```

`cardNo` is unique. I need to display all details and total hours for each card, like: 

```
cardNo | userName | tablename | totalhours 
1      | a        |   a       |  37 
2      | b        |   b       |  16 

```