Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2>Problem Has Solve.</h2> <p>This Code show employee is not present in spesific Dates or ALL Dates marked with Intime and OutTime empty.</p> <pre><code>SELECT QueryDate.HR_Personnel.ID, QueryDate.HR_Personnel.Per_Code, QueryDate.HR_Personnel.Per_Name, QueryDate.QDt.UniqueDate, IIf((Min(TA_Record_Info.Date_Time)&lt;&gt;Max(TA_Record_Info.Date_Time)),Format(Min(TA_Record_Info.Date_Time),"hh:mm:ss"),IIf(Format(Min(TA_Record_Info.Date_Time),"hh:mm:ss")="",Format(Min(TA_Record_Info.Date_Time),"hh:mm:ss"),IIf(Format(Min(TA_Record_Info.Date_Time),"hh:mm:ss")&lt;"12:00:00",Format(Min(TA_Record_Info.Date_Time),"hh:mm:ss"),'-'))) AS InTime, IIf((Max(TA_Record_Info.Date_Time)&lt;&gt;Min(TA_Record_Info.Date_Time)),Format(Max(TA_Record_Info.Date_Time),"hh:mm:ss"),IIf(Format(Max(TA_Record_Info.Date_Time),"hh:mm:ss")="",Format(Min(TA_Record_Info.Date_Time),"hh:mm:ss"),IIf(Format(Max(TA_Record_Info.Date_Time),"hh:mm:ss")&gt;"12:00:00",Format(Min(TA_Record_Info.Date_Time),"hh:mm:ss"),'-'))) AS OutTimeFROM ( SELECT HR_Personnel.ID, HR_Personnel.Per_Code, HR_Personnel.Per_Name, QDt.UniqueDate FROM HR_Personnel, (SELECT DateValue([Date_Time]) AS UniqueDate FROM TA_Record_Info GROUP BY DateValue([Date_Time])) AS QDt )as QueryDate LEFT JOIN TA_Record_Info ON(QueryDate.QDt.UniqueDate=DateValue(TA_Record_Info.Date_Time)) AND(QueryDate.HR_Personnel.ID=TA_Record_Info.Per_Code) GROUP BY QueryDate.HR_Personnel.ID, QueryDate.HR_Personnel.Per_Code, QueryDate.HR_Personnel.Per_Name, QueryDate.QDt.UniqueDate ORDER BY QueryDate.QDt.UniqueDate; </code></pre> <p>Credit to <a href="https://stackoverflow.com/users/2174085/johnny-bones">johnny-bones</a> who want to take the time to solve my problem. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload