Click here to Skip to main content
15,908,111 members
Home / Discussions / Database
   

Database

 
AnswerRe: Help!! Pin
Ashfield15-Sep-08 23:29
Ashfield15-Sep-08 23:29 
AnswerPlease read this article before posting again Pin
David Mujica16-Sep-08 2:55
David Mujica16-Sep-08 2:55 
AnswerRe: Help!! Pin
nelsonpaixao16-Sep-08 14:34
nelsonpaixao16-Sep-08 14:34 
QuestionMultiple select in 1 query Pin
Agweet15-Sep-08 21:48
Agweet15-Sep-08 21:48 
AnswerRe: Multiple select in 1 query Pin
N a v a n e e t h15-Sep-08 21:55
N a v a n e e t h15-Sep-08 21:55 
QuestionRemoving spaces using query Pin
M Riaz Bashir15-Sep-08 19:24
M Riaz Bashir15-Sep-08 19:24 
AnswerRe: Removing spaces using query Pin
Ashfield15-Sep-08 20:12
Ashfield15-Sep-08 20:12 
Questionhelp! Spliting Time spent on business hours and after hours Pin
CandyHe15-Sep-08 12:11
CandyHe15-Sep-08 12:11 
Hi,

I have a programming problem to split the total time spent on jobs into business hour and after hours

business hour 8:30 - 17:00
after hour 17:01 - 8:29

database is on sql server 2005, there are job_start_datetime and job_end_datetime columns hold the jobs start and end time, also a total_time_spent column hold the total of time spent on the job.

I have an order to split the time spent into business hour and after hours. I am creating 2 filed in the table to sperate these hours. but I am having problem to using Datediff to calculate amount of hour into 2 time frames.

Can someone give me any advise how can I do that?

Thanks

Candy
AnswerRe: help! Spliting Time spent on business hours and after hours Pin
Blue_Boy15-Sep-08 12:38
Blue_Boy15-Sep-08 12:38 
GeneralRe: help! Spliting Time spent on business hours and after hours [modified] Pin
CandyHe15-Sep-08 13:26
CandyHe15-Sep-08 13:26 
GeneralRe: help! Spliting Time spent on business hours and after hours Pin
Blue_Boy15-Sep-08 16:37
Blue_Boy15-Sep-08 16:37 
AnswerA different approach to storing time Pin
David Mujica16-Sep-08 5:36
David Mujica16-Sep-08 5:36 
GeneralRe: A different approach to storing time Pin
David Mujica16-Sep-08 5:55
David Mujica16-Sep-08 5:55 
QuestionChecking if a field exists in a table before adding it to another table Pin
Twyce15-Sep-08 10:38
Twyce15-Sep-08 10:38 
AnswerSounds like homework, but ... Pin
David Mujica15-Sep-08 10:57
David Mujica15-Sep-08 10:57 
AnswerRe: Checking if a field exists in a table before adding it to another table Pin
Blue_Boy15-Sep-08 11:31
Blue_Boy15-Sep-08 11:31 
AnswerRe: Checking if a field exists in a table before adding it to another table Pin
Pete O'Hanlon15-Sep-08 11:46
mvePete O'Hanlon15-Sep-08 11:46 
Questionanyone can give me sample syntax or code in update using mysql in c#?? Pin
cutedrew15-Sep-08 8:02
cutedrew15-Sep-08 8:02 
AnswerRe: anyone can give me sample syntax or code in update using mysql in c#?? Pin
Blue_Boy15-Sep-08 8:43
Blue_Boy15-Sep-08 8:43 
Questionrun SQL server scripts from inside a C# code Pin
Sabry190515-Sep-08 1:17
Sabry190515-Sep-08 1:17 
AnswerRe: run SQL server scripts from inside a C# code Pin
Ashfield15-Sep-08 1:21
Ashfield15-Sep-08 1:21 
GeneralCombining Like and In Pin
Brady Kelly15-Sep-08 0:49
Brady Kelly15-Sep-08 0:49 
GeneralRe: Combining Like and In Pin
Blue_Boy15-Sep-08 0:54
Blue_Boy15-Sep-08 0:54 
Questionmax date without repeat in query Pin
mahmoudinirat15-Sep-08 0:26
mahmoudinirat15-Sep-08 0:26 
AnswerRe: max date without repeat in query Pin
Blue_Boy15-Sep-08 0:41
Blue_Boy15-Sep-08 0:41 

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.