Rimmer3001
Technical User
Apologies if this has been asked before, but I'm struggling. I am new to Aspect workforce management and I'm trying to get the hours for all the general segments that are used. I can get the data for all the General Segments used within a date range as the code shows below (this currently sits in Microsoft Access but will be used in Microsoft Excel)
SELECT TCSDBOWNER_EMP.FIRST_NAME + ' ' + TCSDBOWNER_EMP.LAST_NAME as FullName, TCSDBOWNER_GEN_SEG.NOM_DATE, TCSDBOWNER_SEG_CODE.CODE FROM (TCSDBOWNER_EMP INNER JOIN TCSDBOWNER_GEN_SEG ON TCSDBOWNER_EMP.EMP_SK = TCSDBOWNER_GEN_SEG.EMP_SK) INNER JOIN TCSDBOWNER_SEG_CODE ON TCSDBOWNER_GEN_SEG.SEG_CODE_SK = TCSDBOWNER_SEG_CODE.SEG_CODE_SK
WHERE (((TCSDBOWNER_GEN_SEG.NOM_DATE)>=42248 And (TCSDBOWNER_GEN_SEG.NOM_DATE)<=42260));
The above produces 377 record but does not give me the time spent in the code. I have tried to add on the MI from the State table where state = Pay_Normal (left Join) but this give me 54836 records which is incorrect. Can someone please point me in the right direction as I am slowly losing the will to live.
SELECT TCSDBOWNER_EMP.FIRST_NAME + ' ' + TCSDBOWNER_EMP.LAST_NAME as FullName, TCSDBOWNER_GEN_SEG.NOM_DATE, TCSDBOWNER_SEG_CODE.CODE FROM (TCSDBOWNER_EMP INNER JOIN TCSDBOWNER_GEN_SEG ON TCSDBOWNER_EMP.EMP_SK = TCSDBOWNER_GEN_SEG.EMP_SK) INNER JOIN TCSDBOWNER_SEG_CODE ON TCSDBOWNER_GEN_SEG.SEG_CODE_SK = TCSDBOWNER_SEG_CODE.SEG_CODE_SK
WHERE (((TCSDBOWNER_GEN_SEG.NOM_DATE)>=42248 And (TCSDBOWNER_GEN_SEG.NOM_DATE)<=42260));
The above produces 377 record but does not give me the time spent in the code. I have tried to add on the MI from the State table where state = Pay_Normal (left Join) but this give me 54836 records which is incorrect. Can someone please point me in the right direction as I am slowly losing the will to live.