LloydDobler
Technical User
Hi all, hopefully an easy one...First, here's my Table
Rec# EMP# timeOUT timeIN
1 4 11:30 12:05
2 4 12:30 --
3 9 11:05 11:15
4 10 11:45 ---
What I'd like to do is when inserting a new record, to check if there's an existing record for that EMP that doesn't have a timeIN. If timeIN is null, then timeIN should be updated (=getdate()). If there are no records missing timeIN, then insert a new timeOUT record.
"I don't want to sell anything, buy anything or process anything as a career. I don't want to sell anything bought or processed... or buy anything sold or processed... or process anything sold, bought or processed... or repair anything sold, bought or processed. You know, as a career, I don't want to do that."
Rec# EMP# timeOUT timeIN
1 4 11:30 12:05
2 4 12:30 --
3 9 11:05 11:15
4 10 11:45 ---
What I'd like to do is when inserting a new record, to check if there's an existing record for that EMP that doesn't have a timeIN. If timeIN is null, then timeIN should be updated (=getdate()). If there are no records missing timeIN, then insert a new timeOUT record.
"I don't want to sell anything, buy anything or process anything as a career. I don't want to sell anything bought or processed... or buy anything sold or processed... or process anything sold, bought or processed... or repair anything sold, bought or processed. You know, as a career, I don't want to do that."