x
login about faq Site discussion (meta-askssc)

how to get total working time of a day with all weekdays in sqlserver 2008

            ## Monday## Tuesday Wednesday Thursday Friday Saturday Sunday

               date      date    date      date      date   date    date

Employee TotalTime
Name


xxx

xxx

xxx

this is my requirement please help me to out get out of this problem

more ▼

asked Jun 12 '12 at 01:11 PM in Default

mvramana gravatar image

mvramana
0 1 2 3

I am afraid the information provided is too little too vague. If you expect help then post more details.

Jun 13 '12 at 04:38 AM robbin

To elaborate on robbin's comment: In which tables is the information stored today, and what do they look like? Do you just want to get the information out from a query or are you aiming at producing a pretty Report in Reporting Services?

Jun 13 '12 at 05:48 AM Magnus Ahlkvist
(comments are locked)
10|1200 characters needed characters left

1 answer: sort voted first

Please see the following URL which explains how to do this and is easily modified to do it by the dates you want. http://www.sqlservercentral.com/articles/Crosstab/65048/

more ▼

answered Jun 16 '12 at 04:41 AM

Jeff Moden gravatar image

Jeff Moden
1k 1 3

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x11

asked: Jun 12 '12 at 01:11 PM

Seen: 1080 times

Last Updated: Jun 16 '12 at 04:41 AM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.