Skip to content
Advertisement

Pass Parameters in Pivot SQL

I had this query below and got an error with parameter @emp_group during execution. Need your suggestion on how to pass the parameter.

The query will run when removing the parameter but need to filter the records. thanks in advance.

Advertisement

Answer

You can can do the same thing with @emp_group like you did with @cols. Extract them vom the text and pass them as a paramenter.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement