TSQL Tryer (3/5/2015)
ignore last post - think I've worked it out - will post all code again shortly.Sorry
I was just about to send a response, its the ai/bi columns that haven't separated on a couple of the selects. (eg Selects 1, 3,4,5,6)
_________________________________________________________________________
SSC Guide to Posting and Best Practices