my current project is to create employee in out table. I am having raw data with several entry for a single employee. my objective is to find the first and the last time of that specific day. My question is how can I find it?
select min(time_column) as min_time,
max(time_column) as max_time
from your_table
where date_column = '2014-04-06'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.