4条回答 默认 最新
- sxlfzhangjie 2017-07-31 09:30关注
第一个:
select * from g_cardapply where g_applydate='2009-2-20'
第二个:
http://blog.csdn.net/lukyers/article/details/45867661
第三个:
select g_idcard,count(g_idcard) as records from g_cardapplydetail
group by g_idcard having count(g_idcard)>=2
第四个:
select g_applyno,
sum(case when g_state='0' then 1 else 0 end) as 等待审核,
sum(case when g_state='1' then 1 else 0 end) as 审核通过 ,
sum(case when g_state='2' then 1 else 0 end) as 审核未通过 ,
count(*) as 总个数
from g_cardapply
group by g_applyno第五个:
with temp as
( select row_number() over(order by g_applyno desc) as rownum,g_applyno , g_applydate,g_state from g_cardapply)
select * from temp p where rownum<=10本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥30 c#打开word开启修订并实时显示批注
- ¥15 如何解决ldsc的这条报错/index error
- ¥15 VS2022+WDK驱动开发环境
- ¥30 关于#java#的问题,请各位专家解答!
- ¥30 vue+element根据数据循环生成多个table,如何实现最后一列 平均分合并
- ¥20 pcf8563时钟芯片不启振
- ¥20 pip2.40更新pip2.43时报错
- ¥15 换yum源但仍然用不了httpd
- ¥50 C# 使用DEVMOD设置打印机首选项
- ¥15 麒麟V10 arm安装gdal