Click here to Skip to main content
16,005,181 members
Home / Discussions / Database
   

Database

 
GeneralRe: Quick Question.. Affected rows Pin
Peterixina12-Jul-07 0:10
Peterixina12-Jul-07 0:10 
GeneralRe: Quick Question.. Affected rows Pin
Giorgi Dalakishvili12-Jul-07 0:16
mentorGiorgi Dalakishvili12-Jul-07 0:16 
QuestionPaging Pin
Pdh098211-Jul-07 7:22
Pdh098211-Jul-07 7:22 
AnswerRe: Paging Pin
Pete O'Hanlon11-Jul-07 10:13
mvePete O'Hanlon11-Jul-07 10:13 
AnswerRe: Database Object. Pin
Colin Angus Mackay11-Jul-07 7:05
Colin Angus Mackay11-Jul-07 7:05 
GeneralRe: Database Object. Pin
Pdh098211-Jul-07 8:42
Pdh098211-Jul-07 8:42 
GeneralRe: Database Object. Pin
Harini N K11-Jul-07 19:01
Harini N K11-Jul-07 19:01 
QuestionSQL script [modified] Pin
kibromg11-Jul-07 6:05
kibromg11-Jul-07 6:05 
Hi All,

I have a single table that contains the following Columns

As you can see i generated the data base on ASc on id's

Select * from Call_register order by id

Table Call_Register
id Call(in Hour) Seconds
76 00:04:23 263
76 00:05:58 358
76 00:06:38 398
77 00:06:22 382
77 00:01:29 89
77 00:10:28 628
77 00:01:18 78
78 00:03:35 215
79 00:07:26 446

I want to regroup them as follows : want to also keep track of number of time id occurs:Like


id occurance call(in Hour) totalSeconds
76 3 times 00:04:23 +00:05:58+00:0638(= 263+358+398=
77 4 times 382+89+628+78=1019seconds


Could you please help in getting me the script that enables me to generate in this format


Id number of times id appeard(frequency) : sum(totalHour) sum(seconds)
76 3 times
77 4 times
78


etc..



Please advice
Thanks









-- modified at 12:33 Wednesday 11th July, 2007
AnswerRe: SQL script Pin
RepliCrux11-Jul-07 19:42
RepliCrux11-Jul-07 19:42 
QuestionSQL and VB.NET identity insert problem. Pin
aqzman_11-Jul-07 5:45
aqzman_11-Jul-07 5:45 
AnswerRe: SQL and VB.NET identity insert problem. Pin
Colin Angus Mackay11-Jul-07 5:51
Colin Angus Mackay11-Jul-07 5:51 
GeneralRe: SQL and VB.NET identity insert problem. Pin
aqzman_11-Jul-07 6:13
aqzman_11-Jul-07 6:13 
GeneralRe: SQL and VB.NET identity insert problem. Pin
Colin Angus Mackay11-Jul-07 6:51
Colin Angus Mackay11-Jul-07 6:51 
GeneralRe: SQL and VB.NET identity insert problem. Pin
sidbaruah12-Jul-07 19:40
sidbaruah12-Jul-07 19:40 
AnswerRe: SQL and VB.NET identity insert problem. Pin
Giorgi Dalakishvili11-Jul-07 5:54
mentorGiorgi Dalakishvili11-Jul-07 5:54 
QuestionBulk Insert Pin
Ashwiniyer11-Jul-07 3:28
Ashwiniyer11-Jul-07 3:28 
QuestionRe: Bulk Insert Pin
andyharman11-Jul-07 6:14
professionalandyharman11-Jul-07 6:14 
AnswerRe: Bulk Insert Pin
Ashwiniyer11-Jul-07 6:30
Ashwiniyer11-Jul-07 6:30 
GeneralRe: Bulk Insert Pin
andyharman11-Jul-07 11:33
professionalandyharman11-Jul-07 11:33 
QuestionQuestion .(Need immidiate reply Please) Pin
Karuna Kumar11-Jul-07 2:30
Karuna Kumar11-Jul-07 2:30 
AnswerRe: Question .(Need immidiate reply Please) Pin
Colin Angus Mackay11-Jul-07 2:52
Colin Angus Mackay11-Jul-07 2:52 
GeneralRe: Question .(Need immidiate reply Please) Pin
Paul Conrad11-Jul-07 7:08
professionalPaul Conrad11-Jul-07 7:08 
AnswerRe: Question .(Need immidiate reply Please) Pin
Vasudevan Deepak Kumar11-Jul-07 3:56
Vasudevan Deepak Kumar11-Jul-07 3:56 
QuestionConvert string in DB to DateTime in .NET Pin
blackjack215011-Jul-07 1:58
blackjack215011-Jul-07 1:58 
AnswerRe: Convert string in DB to DateTime in .NET Pin
kubben11-Jul-07 2:54
kubben11-Jul-07 2:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.