how to get min intime and max outtime from table,
i have a table table1 in that table i have many columns and records like
empid empname attendencedate
1 a 04-01-17 08:45am
1 a 04-01-17 09:45am
1 a 04-01-17 10:45am
1 a 04-01-17 12:45pm
1 a 04-01-17 01:45pm
1 a 04-01-17 08:45pm
i want only select minimum attendencedate is intime and maximum attendencedate is outtime like below format
empid empname intme outtime
1 a 04-01-17 08:45am 04-01-17 08:45pm


Abhinav AbhishekRank #2,198 · 642 reputationPosted Apr 10, 2017, 9:40 AM EDT
Ramesh BarikRank #3,664 · 401 reputationPosted Apr 10, 2017, 9:28 AM EDT