I have SQL request
Here is part of the code of it
LEFT JOIN dbo.contacts_client_organization cog WITH(NOLOCK)
ON cog.clientid = be.clientid
After cog I have an error
'(', CROSS, FULL, INNER, JOIN, LEFT, NATURAL, ON, RIGHT or USING expected, got 'WITH
I want to rewrite the query to use it on Amazon Redshift
Here is the full query
How I can solve it?