Viewing 5 posts - 1 through 5 (of 5 total)
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....
March 7, 2015 at 3:21 am
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,...
March 6, 2015 at 8:51 am
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!
July 17, 2013 at 10:56 am
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...
July 17, 2013 at 8:29 am
Viewing 5 posts - 1 through 5 (of 5 total)