It's been a while since I wrote "complex" queries in SQL...
I have a table Attendance
with columns
BranchID (int)
SignDate (DateTime)
EmployeeID (nvarchar)
Each Branch
has tens of employees.
What I need is a list the earliest SignDate
for each branch per day and EmployeeID
who signed.
I tried several ways, but no luck...
I'm using SQL Server.
Thanks.