Josh this works excellent. Thanks, for that list idea. I had the idea using the list but I could count up I was getting confused. but it work.
I am going to use spatial join to join them together but there is catch it creates an output. The target shapefile or feature class can not be rename or change in any particular way because there is another script creating an unique value into that feature class if we change that then we corrupt the algorithm. Basically in the end it gets replicated. Could the script you gave me work in an sde geodatabase.
if so, how would i change my variables fc.
would it have the string saying "Database connection/sde.default"
like that.