Skip to content
Advertisement

Joining table get the first data on first table if duplicate

Hi i have table1 and table2. table1 is the logtime table of employees and table2 is the groupcode of the employee. On table1 some employees has duplicate time in because they time in multiple time to just to secure their time in.

Table1

Table2

result

Expected result

current query

How can i achive as expected result above?

Thankyou in advance.

Advertisement

Answer

you can use distinct count as follows:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement