Viewing 15 posts - 1,666 through 1,680 (of 2,894 total)
....
I suggested the same thing you mentioned to the person who created these tables. However, I got the reply that this was out of question and I have to proceed...
May 1, 2012 at 5:45 am
You would greatly benefit if you could normalise your Staff table.
I would suggest to get MonHours, TueHours etc. out of this table and place it into dedicated StaffWorkHours table which...
May 1, 2012 at 5:26 am
I can see the problem. Please wait for few minutes.
May 1, 2012 at 5:11 am
Paul, let start from making your query a bit more readable.
1. You can use DATENAME function instead of converting month number to string.
2. You don't need check if "datepart(mm,s.[Date]) IN...
May 1, 2012 at 5:03 am
Base on limited details posted...
Contacts = CONVERT(VARCHAR(8), EventDate, 112)
+
...
May 1, 2012 at 4:44 am
Would you be able to post DDL and data setup not as attachments? Many workplaces do prohibit downloading from web...
May 1, 2012 at 4:31 am
Welcome to the best SQL Forum on earth!
In order to help you we will need a bit more details from you.
Table's DDL, some sample data (as insert script) and...
May 1, 2012 at 4:29 am
never heard more stupid question!
at the end it depends on pc power.
April 30, 2012 at 2:48 am
Use TRY ... CATCH
If you want everything undone when the error happens do everything within one TRANSACTION
April 27, 2012 at 8:06 am
It's not, just this huge set of sum's and brackets on Friday did make me dizzy. Time for a pint!
😀
April 27, 2012 at 7:52 am
... was able to achieve this with code:
convert(int,((sum(datepart(hour,Timenetin) * 3600) + sum(datepart(hour,cat2_hours) * 3600) + sum(datepart(minute,Timenetin) * 60) + sum(datepart(minute,cat2_hours) * 60) + sum(datepart(second,Timenetin) * 1) +...
April 27, 2012 at 7:06 am
vinu512 (4/27/2012)
Jeff Moden (4/27/2012)
vinu512 (4/26/2012)
April 27, 2012 at 6:59 am
jwmott (4/26/2012)
select...
April 27, 2012 at 2:45 am
Which one?
April 27, 2012 at 2:38 am
Viewing 15 posts - 1,666 through 1,680 (of 2,894 total)