Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)

  • RE: Populating data by Date Intervals

    roger.price-1150775 (3/6/2015)


    Well spotted. Thanks.

    Just one small thing... I also have a EmployeeMaster table which has EMPID, EMP_name, DeptID in the table.

    When I pass em.DeptID=1 in where clause at the end....

  • RE: Populating data by Date Intervals

    .

  • RE: Populating data by Date Intervals

    Superbly worked

    Just one small change the QTR query will have QQ in datepart function. Right?

    SELECT

    empid,

    [Week] = (SELECT SUM(workedhours) FROM EmployeeDetails w WHERE w.empid = e.empid and DATEPART(WW, workdate) = DATEPART(WW,...

  • RE: Query for Reort

    Superb!!!!!

    This is Super Excellent and exactly as I expected.

    I was almost on the same lines but was not able to reach the result.

    Thanks For your help and Support!

  • RE: Query for Reort

    Create Table If not exists

    IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[tblEMPLog]') AND type in (N'U'))

    DROP TABLE [dbo].[tblEMPLog]

    GO

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    SET ANSI_PADDING ON

    GO

    IF NOT EXISTS (SELECT...

Viewing 5 posts - 1 through 5 (of 5 total)