Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要得到他们之间一天的时差。有没有不使用 TEMP TABLE 的简单方法?
提前致谢
select timediff(min(time_out), min(time_in)) as time_diff from your_table group by emp_id, `date`