Viewing 7 posts - 1 through 8 (of 8 total)
Sorry abt that.
* Need to Pull list of associates who worked less than 6 or 8 hrs for given period of time (Could be a month)
* There may two or...
July 28, 2011 at 5:35 am
John,
The requirement is to pull associates who worked less than 6 hrs and 8 hrs if they were PT or FT respectively on a given day.
So the sample data has...
July 28, 2011 at 2:22 am
Mark... This worked like a charm.
Thanks a bunch:-)
June 29, 2011 at 8:40 pm
Hi Mark,
I'm not getting fruitful results with the query.
Query Used:
WITH CTE1 AS (
SELECT [ASSOCIATEID],[LASTNM],[FIRSTNM],[DateWorked],[HoursWorked],
CONVERT(VARCHAR(8),DATEADD(Day,-ROW_NUMBER() OVER(PARTITION BY [ASSOCIATEID] ORDER BY [DateWorked]),
[DateWorked]),112)...
June 28, 2011 at 6:41 am
Thanks Craig,
Here is the script to create the source table
----------------------------------------------
USE [TESTDB]
GO
/****** Object: Table [dbo].[CVTEST] Script Date: 06/28/2011 03:29:01 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE...
June 28, 2011 at 1:55 am
Viewing 7 posts - 1 through 8 (of 8 total)