Viewing 15 posts - 226 through 240 (of 608 total)
Thanks Jack..
My guess is another job(s) running...
We are checking now...but we wondered if it could be anything else.
July 11, 2012 at 1:31 pm
Thanks Lowell!
Your stuff is always so good. Wish I had read your reply before I started on what I wrote:
;with cte as (SELECT
E.eecCoID AS 'Rec ID',
E.EecEEID AS 'Emp...
June 29, 2012 at 7:06 am
You are right!
That did the trick!
Thanks soooo much for all your help Andy!
June 28, 2012 at 10:09 am
Nope!
<bangs head against wall>
Sure doesn't (still shows years and years of terminations) and I can't figure out why if I run just this:
SELECT (eecDateOfTermination)
FROM EMPCOMP
WHERE
eecDateOfTermination IS...
June 28, 2012 at 9:27 am
darn it....it's not right...not filtering by week...
I changed it (a little)..
SELECT
E.eecCoID AS 'Rec ID',
E.EecEEID AS 'Emp ID',
eepNameFirst AS 'First Name',
eepNameLast AS 'Last Name',
EecDateOfOriginalHire AS 'Service Date',
EecDateOfTermination
FROM...
June 28, 2012 at 9:09 am
I think that's it....checking now..
Thank you so much Andy!
June 28, 2012 at 8:33 am
Okay here's everything I have so far...runs, but not correct results...not filtering by week..
can't figure out why
--With Terminations
SELECT
----DATEPART(YEAR, e.eecDateOfLastHire) as 'Year of Hire',
--EEPDATEOFBIRTH,
CmpCompanyCode as 'Company Code',
E.EecOrgLvl2 as 'Org Level',
cmpCompanyName as...
June 28, 2012 at 8:04 am
I'm close but this isn't right....
(SELECT MAX(EC.eecDateOfTermination) FROM EMPCOMP EC WHERE EC.EecEEID = E.EECEEID AND (eC.eecDateOfTermination <= (SELECT DATEADD(wk,DATEDIFF(wk,0,GETDATE()),0)) AND (EC.eecDateOfTermination is not null OR EC.eecDateOfTermination >= (SELECT DATEADD(wk,DATEDIFF(wk,0,GETDATE()),6)))))...
June 28, 2012 at 7:48 am
Sorry.
Is there a way to eliminate the duplicate Employees, taking only the latest prgpaydate in the CTE?
June 25, 2012 at 10:59 am
So really in my worst case senario the adding the witness doesn't help me much.
Thanks for all the help Lynn.
-->sending you good karma<--- 🙂
June 19, 2012 at 2:55 pm
Viewing 15 posts - 226 through 240 (of 608 total)