I'm working in a telephone company. I'm using Oracle9i, and SQL Navigator for Oracle. Here's my query:
select called, SUM(ceil(duration/60)) as SL0806
from c0806
where called like '1900%' group by called;
The query is fine, but in the results there're many same records like:
A B C
1 | 19001221 | 72
2 | 19001255 | 1186
3 | 19001255* | 1
4 | 190012552 | 6
5 | 190012553 | 3
6 | 1900125533 | 1
7 | 19001509 | 6
8 | 19001510 | 235
9 | 19001510# | 2
10 | 19001511 | 659
11 | 190015110 | 31
12 | 19001512 | 1
Now the problem is the record number 2 and number 3 are the same. Which statement I must use to retrive these records just in one?
I meant is must be:
A B C
1 | 19001221 | 72
2 | 19001255 | 1187
3 | 190012552 | 6
4 | 190012553 | 3
Please help me out! Thanks alot! (Sorry for my English)
select called, SUM(ceil(duration/60)) as SL0806
from c0806
where called like '1900%' group by called;
The query is fine, but in the results there're many same records like:
A B C
1 | 19001221 | 72
2 | 19001255 | 1186
3 | 19001255* | 1
4 | 190012552 | 6
5 | 190012553 | 3
6 | 1900125533 | 1
7 | 19001509 | 6
8 | 19001510 | 235
9 | 19001510# | 2
10 | 19001511 | 659
11 | 190015110 | 31
12 | 19001512 | 1
Now the problem is the record number 2 and number 3 are the same. Which statement I must use to retrive these records just in one?
I meant is must be:
A B C
1 | 19001221 | 72
2 | 19001255 | 1187
3 | 190012552 | 6
4 | 190012553 | 3
Please help me out! Thanks alot! (Sorry for my English)