Web_THBC 为表示层也就是页面(
aspx)
BLL_THBC 为业务逻辑层
DAL_THBC 为数据库交互层 (向数据库执行SQL语句)
Model_THBC 为实体类
DbHelper 为数据库连接类
统计个专营店的男女数量
复制代码 代码如下:
select duaUARTERS_IDduaUARTERS_NAME
sum(case when sex = then else end) as Man
sum(case when sex = then else end) as Woman
from dboDCAD_USER as du
left join
dboDCAD_UARTERS as dua
on duUARTERS_ID = duaUARTERS_ID
group by duaUARTERS_IDduaUARTERS_NAME
作者 ershouyage