Forum Replies Created

Viewing 7 posts - 1 through 8 (of 8 total)

  • RE: Urgent: Query hlp needed

    John. Thank you so much!

  • RE: Urgent: Query hlp needed

    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...

  • RE: Urgent: Query hlp needed

    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...

  • RE: Urgent: Query hlp needed

    John,

    Correct the SQL insert.

    Thanks

  • RE: Urgent: 8 Consecutive days worked

    Mark... This worked like a charm.

    Thanks a bunch:-)

  • RE: Urgent: 8 Consecutive days worked

    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)...

  • RE: Urgent: 8 Consecutive days worked

    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...

Viewing 7 posts - 1 through 8 (of 8 total)