【发布时间】:2018-05-11 14:14:24
【问题描述】:
select count(tele),count(AssName),count(Address) from Audit where name='ben'
select count(tele),count(AssName),count(Address) from Audit where name='nik'
select count(tele),count(AssName),count(Address) from Audit where name='josh'
这是我使用的查询,但我需要将这些单独的表合并到一个表中,如果这些单元格中只有“1”,则应计算计数。但是我的表有“0”,但它认为它们是值并且也计算“0”单元格this is the tabel now
【问题讨论】:
-
“联合所有”会起作用吗?
标签: c# sql sql-server datatable audit