Another follow up ...
There is a column in mdl_course called originalcourseid
In a query:
select id,fullname,shortname,originalcourseid from mdl_course;
that shows all courses, 2 at the bottom showed ID numbers of the courses they were copied from:
| 1378 | Algebra 2 TAG | Alg2TAG | 180 |
Course ID 180:
| 180 | Algebra 2 Honors | Alg2H | NULL |
The other:
| 1152 | Virtual Academy Physics | VA Physics | 342 |
Course ID 342 didn't exist so I assume the original course was deleted after the copy.
Somewhere in that courses table their might be a pending.
'SoS', Ken