I have a query in excess
SELECT Col1, count(id) AS [count]
FROM table1
GROUP BY col1;
I have about fourty columns in table1. and I need to run this sql statements to all columns. It is tedious to change col1 fourty times. Is there a good way to do that more efficiently?
THX
SELECT Col1, count(id) AS [count]
FROM table1
GROUP BY col1;
I have about fourty columns in table1. and I need to run this sql statements to all columns. It is tedious to change col1 fourty times. Is there a good way to do that more efficiently?
THX