Click here to Skip to main content
15,898,920 members
Home / Discussions / Database
   

Database

 
GeneralRe: Storing Time value in Access Pin
Richard Blythe20-Aug-10 7:58
Richard Blythe20-Aug-10 7:58 
GeneralRe: Storing Time value in Access Pin
T M Gray20-Aug-10 8:06
T M Gray20-Aug-10 8:06 
GeneralRe: Storing Time value in Access Pin
Mycroft Holmes20-Aug-10 16:32
professionalMycroft Holmes20-Aug-10 16:32 
AnswerRe: Storing Time value in Access Pin
Luc Pattyn21-Aug-10 0:13
sitebuilderLuc Pattyn21-Aug-10 0:13 
GeneralRe: Storing Time value in Access Pin
Richard Blythe21-Aug-10 5:31
Richard Blythe21-Aug-10 5:31 
AnswerRe: Storing Time value in Access Pin
Bernhard Hiller22-Aug-10 21:02
Bernhard Hiller22-Aug-10 21:02 
AnswerRe: Storing Time value in Access Pin
Corporal Agarn24-Aug-10 1:34
professionalCorporal Agarn24-Aug-10 1:34 
Questionsql function Pin
Thanusree Duth18-Aug-10 1:24
Thanusree Duth18-Aug-10 1:24 
I have created sql stored procedure to calculate work hours of employees in a week.EmployeeID,FromDate,ToDate,Department,Designation are the parameters passed.My output is:

Day EmpID EmpName FirstTimeIn LastTimeOut WorkHours Break
-------------------------------------------------------------------------
Wednesday 2855747 AlexanderMathew 9:01:09 AM 6:15:14PM 8:59:05
Thursday 2855747 AlexanderMathew 9:45:09 AM 6:45:09 PM 8:00:00 Friday 2855747 AlexanderMathew 9:08:09 AM 7:20:09 PM 9:00:00
Saturday 2855747 AlexanderMathew 9:30:09 AM 6:30:09 PM 8:00:00
Sunday 2855747 AlexanderMathew 9:32:09 AM 6:28:09 PM 8:00:00
Monday 2855747 AlexanderMathew 9:20:09 AM 6:25:09 PM 8:05:00
Tuesday 2855747 AlexanderMathew 9:02:09 AM 6:02:09 PM 8:30:00
But the problem is that,in my output 'day' is shown as row.But is there any way to display day as columns.ie:
eg:
EmpName Friday Saturday Sunday Monday Tuesday Wednesday WorkHours
-------------------------------------------------------------------------
Alexander 07:11:18 Saturday Sunday 06:20:41 08:06:28 03:23:27 25:01:54

This stored procedure is for reporting.Hope you will help me to overcome this problem..
Thanks in advance
AnswerRe: sql function Pin
ps_prakash0218-Aug-10 2:19
ps_prakash0218-Aug-10 2:19 
AnswerRe: sql function Pin
Mycroft Holmes18-Aug-10 2:45
professionalMycroft Holmes18-Aug-10 2:45 
QuestionDoes PRINT work in sql server function Pin
Jagz W17-Aug-10 18:47
professionalJagz W17-Aug-10 18:47 
AnswerRe: Does PRINT work in sql server function Pin
Mycroft Holmes17-Aug-10 19:10
professionalMycroft Holmes17-Aug-10 19:10 
GeneralRe: Does PRINT work in sql server function Pin
Jagz W17-Aug-10 19:19
professionalJagz W17-Aug-10 19:19 
GeneralRe: Does PRINT work in sql server function Pin
Mycroft Holmes17-Aug-10 19:29
professionalMycroft Holmes17-Aug-10 19:29 
AnswerRe: Does PRINT work in sql server function Pin
David Skelly17-Aug-10 22:10
David Skelly17-Aug-10 22:10 
GeneralRe: Does PRINT work in sql server function Pin
Mycroft Holmes17-Aug-10 23:37
professionalMycroft Holmes17-Aug-10 23:37 
GeneralRe: Does PRINT work in sql server function Pin
Jagz W18-Aug-10 0:29
professionalJagz W18-Aug-10 0:29 
GeneralRe: Does PRINT work in sql server function Pin
Mycroft Holmes18-Aug-10 2:49
professionalMycroft Holmes18-Aug-10 2:49 
GeneralRe: Does PRINT work in sql server function Pin
Jagz W18-Aug-10 6:57
professionalJagz W18-Aug-10 6:57 
GeneralRe: Does PRINT work in sql server function Pin
David Skelly18-Aug-10 3:33
David Skelly18-Aug-10 3:33 
AnswerRe: Does PRINT work in sql server function Pin
Eddy Vluggen19-Aug-10 12:32
professionalEddy Vluggen19-Aug-10 12:32 
QuestionGet hirarchy query Pin
SatyaKeerthi1516-Aug-10 21:30
SatyaKeerthi1516-Aug-10 21:30 
AnswerRe: Get hirarchy query Pin
Blue_Boy16-Aug-10 22:19
Blue_Boy16-Aug-10 22:19 
GeneralRe: Get hirarchy query Pin
SatyaKeerthi1516-Aug-10 22:32
SatyaKeerthi1516-Aug-10 22:32 
AnswerRe: Get hirarchy query Pin
J4amieC16-Aug-10 22:35
J4amieC16-Aug-10 22:35 

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.