Requirement is to check an employee within a specified time how many products do, 1. First of all, there is a table of worktime employee on-boarding and off-duty time, ontime, respectively, offtime, employee number emp_no; 2. Another product list wip_detail production, are products of sn, emp_no production staff, production time opratime; 3. Now there was a statistical interface, a query endtime begtime start time and end time, staff number, to check the time and the number of the products of the staff on-the-job period, I am now a little mess, want to look have a good SQL queries
CodePudding user response:
If every product after the completion of the real-time storing a record immediately