Ok - this is totally in left field:
I've got a table (inherited) that has, as columns, a series of attributes. I need to get a count of each occurrence of each of the attributes. I can, of course, write 165 queries that say:
...but I'd rather find something more elegant that will allow me to get a count of all the columns in the table in one pass...
Am I smoking crack?
< M!ke >
I've got a table (inherited) that has, as columns, a series of attributes. I need to get a count of each occurrence of each of the attributes. I can, of course, write 165 queries that say:
Code:
SELECT attribute, count(attribute)
FROM tblFromH3ll
GROUP BY attribute;
...but I'd rather find something more elegant that will allow me to get a count of all the columns in the table in one pass...
Am I smoking crack?
< M!ke >