Complex sql query (for me anyway)

Just note that you can't use dynamic values for parameters / can't send dynamic column names there. More info:

1 Like