Hi,
I tried this code but unfortunatley unsuccessful

here are the errors with this query
Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near '.'.
Server: Msg 170, Level 15, State 1, Line 7
Line 7: Incorrect syntax near 'CL'.
Server: Msg 170, Level 15, State 1, Line 13
Line 13: Incorrect syntax near 'CH'.
I have just confirmed and the database owner is "dbo" if this helps. I HATE SQL lol, Its very urgent i get this code running the next few hours

i have been working on it with minimal knowlege and some research since yesterday. I wish your awesome knowledge of SQL saves me from this misery!
