简体   繁体   中英

how to Find Maximum and minimum entry time of a specific day from table?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM