SELECT COUNT(*) FROM emptemp;
1161 records
SELECT COUNT(DISTINCT employeeid) FROM emptemp;
1161 records
SELECT COUNT(*) FROM employees WHERE emplid IN (SELECT employeeid FROM emptemp):
1161
SELECT COUNT(DISTINCT emplid) FROM employees WHERE emplid IN (SELECT employeeid FROM emptemp):
1161
Yes. I have rollback. Both did not work ... for some reasons it updated 1355 records and not just the 1161 that I wanted to. There were no errors or messages. The only problem is the number of records it updated.
I have an issue with my update SQL.
Table A is existing EMPLOYEES table with 10000+ records.
Table B is a EMPTEMP table where I have loaded all the information for the employees I need to update (only about 1161 records).
My SQL Update statement:
Update employees em SET (lname, startdate...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.