How can I achieve the following in SQL:
SELECT
@CURRCOLUMN,
COUNT(*)
FROM
CUSTOMERS
WHERE
@CURRCOLUMN = ""
It gives me an error. I basically need to loop through an entire tables variables to find out occurances of the column being either "" or null and return me a count of the number of occurances. This is just a small part of that task.
SELECT
@CURRCOLUMN,
COUNT(*)
FROM
CUSTOMERS
WHERE
@CURRCOLUMN = ""
It gives me an error. I basically need to loop through an entire tables variables to find out occurances of the column being either "" or null and return me a count of the number of occurances. This is just a small part of that task.