TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rahul Rai
1.6k
150
11k
Night Shift intime and outtime
Nov 28 2019 3:32 AM
Hi everyone,
I am stuck with an issue, I have to create an attendance system where i have an employee id and punching time. There can be multiple punches in a day . So firstly for night shift employees i can't determine his actual in and out time and thus not the duration too .
for example a person came office at 11 pm on 1st april and left at 4 am on 2nd april. in betwwen he also went out for dinner or tea . I dont have fixed no. of punches. and i need to handle 2 dates as well. So min and max logic wont work.
Column name in attendance table are:-sno,user_id,date,time.
Reply
Answers (
1
)
select list of ids and print one by one using for loop
How to write select statment get top highest 10000 on count