One of my friend sent me query asking me how to generate dynamic case statements in SQL. Every time he tries to run following query he is getting Error 156 : Incorrect syntax near the keyword. He was frustrated with following two queries. There are two different ways to solve the problem when user want… Continue Reading...
Source: SQL SERVER – Dynamic Case Statement – FIX : ERROR 156 : Incorrect syntax near the keyword | Journey to SQL Authority with Pinal Dave
No comments:
Post a Comment