>Sorry Sergey for taking so long. I have just today been able to get back to this problem. Here is a stored procedure that I wrote to do what I need. My question is if there is an easier or better way. I no longer have a requirement using a "*" in siteno.
>
< snip >
I'm sorry, but I still don't understand what your code is doing or suppose to do.
--sb--