Dynamic SQL Query to ignore null values based on null value in cell

前端 未结 3 1400
一向
一向 2021-01-28 05:10

I have a dynamic SQL query with different column names and tables at runtime.

I am looking to get the SQL query to ignore reading data based on if a row contains Null v

3条回答
  •  面向向阳花
    2021-01-28 05:51

    I believe you will need to use a stored procedure or multiple joins(which might not be the healthiest solution) to solve this as Marc B indicated. You can also check the following question that addresses the same issue you are asking about.

提交回复
热议问题