T
tran.loan
Hi,
I'd like to do a query like this:
SELECT TABLE_ID, TABLE_NAME, COUNT_OUTPUT = (COUNT(*) FROM #TABLE WHERE
NUM_ID IN(27), (COUNT_EDIT = COUNT(*) FROM #TABLE WHERE NUM_ID NOT IN
(27))
FROM #TABLE
GROUP BY TABLE_ID, TABLE_NAME
Of course, that doesn't actually work. I just want a count of the temp
table with two different where clauses. Can someone help me?
I'd like to do a query like this:
SELECT TABLE_ID, TABLE_NAME, COUNT_OUTPUT = (COUNT(*) FROM #TABLE WHERE
NUM_ID IN(27), (COUNT_EDIT = COUNT(*) FROM #TABLE WHERE NUM_ID NOT IN
(27))
FROM #TABLE
GROUP BY TABLE_ID, TABLE_NAME
Of course, that doesn't actually work. I just want a count of the temp
table with two different where clauses. Can someone help me?