Viewing 15 posts - 31 through 45 (of 47 total)
dwain.c (12/26/2012)
I'm not quite sure why but try the full code at the bottom of this post without change.
I tried your full code, I have the same error:
[Err] 42000...
December 26, 2012 at 1:00 am
thank for reply.
I tried your last code but I have error in variable "@CountOfEmp":
DECLARE @CountOfEmp INT = (SELECT COUNT(*) FROM [dbo].[names]);
WITH GroupsOfWeeks AS (
SELECT *
...
December 26, 2012 at 12:27 am
You have right, I'm sorry... 🙂
The output of last query -adding a WHERE clause before ORDER BY that excludes holidays- is wrong because excludes the first nine valid dates of...
December 25, 2012 at 9:07 am
dwain.c (12/25/2012)
Have you tried adding a WHERE clause before ORDER BY that excludes holidays?
Yes, I tried and this is the output wrong you see:
WITH GroupsOfWeeks AS (
...
December 25, 2012 at 4:40 am
dwain.c (12/24/2012)
December 25, 2012 at 3:46 am
Yes, Sir.
In my case I counted 50 weeks in a year
divided by 5 workers = 10 weeks each because for two week for year is vacation.
1. I need...
December 24, 2012 at 9:32 am
J Livingston SQL (12/24/2012)
cms9651 (12/24/2012)
one of five people have to work a full week, while others are off.
everyone has to work the same number of weeks for...
December 24, 2012 at 8:47 am
thank you for reply.
one of five people have to work a full week, while others are off.
everyone has to work the same number of weeks for year.
know what I mean?
December 24, 2012 at 6:39 am
thanks a lot for help!
September 6, 2012 at 10:37 am
The rule for the sorting is mat geographic NAME.
MAW = My Area West
MAE = My Area East
MAC = My Area Center
MAS = My Area South
September 6, 2012 at 10:02 am
Eugene Elutin (9/6/2012)
The MAT column will be ordered randomly, but Tot will still come as a last one per DVD.
I agree, that setup needs clarification about Total: is it already...
September 6, 2012 at 9:49 am
Luis Cazares (9/4/2012)
However, let me try to explain it, but read the article as well.
You had a decimal(10,2) value which can contain any value with...
September 4, 2012 at 11:15 am
Luis Cazares (9/4/2012)
cms9651 (9/4/2012)
Luis Cazares (9/4/2012)
Have you tried using DECIMAL(12,4)?thank you for help now working !!!!
Do you know why did it worked? It's important for you to understand what happened...
September 4, 2012 at 10:21 am
Luis Cazares (9/4/2012)
Have you tried using DECIMAL(12,4)?
thank you for help now working !!!!
September 4, 2012 at 9:40 am
ChrisM@Work (8/28/2012)
SELECTCASE
WHEN (GROUPING([MAT]) = 1) THEN 'Tot'
ELSE [MAT] END
AS MAT,
--[myNUmber]
COUNT (*) AS [myNUmber]
FROM (
SELECT DISTINCT
CASE
WHEN LEFT (TZZ, 2) IN ('1D','1F') THEN 'MAO'
WHEN LEFT (TZZ, 2) IN ('1G','1H') THEN...
August 28, 2012 at 6:41 am
Viewing 15 posts - 31 through 45 (of 47 total)