请上传宽度大于 1200px,高度大于 164px 的封面图片
    调整图片尺寸与位置
    滚轮可以放大缩小图片尺寸,按住图片拖动可调整位置,多余的会自动被裁剪掉
取消
hqq961004(uid:76955)
职业资格认证:尚未取得认证
  • 如何把sql 语句查询出来的字段,变成如下图所示的Excel表里面的一样,根据名称筛选为一条信息,而不是时间
  • 在数据库里面设置好了sa,的密码,却还是连接不上,不知道为什么?
  • select CONVERT(varchar(12),BOMApprovedDateTime,23) as '工艺审核日期', BOMApprovedBy as '工艺审核人', sum(case SplitBOMType when 1 then 1 else 0 end) as '2020', sum(case SplitBOMType when 2 then 1 else 0 end) as 'CAD转2020', sum(case SplitBOMType when 3 then 1 else 0 end) as '手工拆单', sum(case SplitBOMType when 4 then 1 else 0 end) as 'CAD转IMOS', --sum(case isnull(DoorBomApprovedDateTime,BOMApprovedDateTime) when 0 then 1 else 0 end) as '门滑' COUNT(id) as '汇总' from dbo.C_Order where CONVERT(varchar(12),BOMApprovedDateTime,23) ='2016-11-30' group by CONVERT(varchar(12),BOMApprovedDateTime,23),BOMApprovedBy -------------------------------------------------------------------------------------------------------------------- select CONVERT(varchar(12),DoorBomApprovedDateTime,23) as '门审核日期', DoorBomApprovedBy as '门审核人', COUNT (DoorBomApprovedBy ) as '滑门' from dbo.C_Order where CONVERT(varchar(12),DoorBomApprovedDateTime,23) ='2016-11-30' group by CONVERT(varchar(12),DoorBomApprovedDateTime,23), DoorBomApprovedBy 怎么把下一个查询添加到上一个查询中去成为一列?
  • 上周用还好好的,今天一打开就说要选择目录,说什么切换目录失败。发现原来的那个目录没有了,不知道是不是我删除了,我好像没动 怎么在不重装的情况下弄好?或者有什么文件夹能直接用的发给我?
  • 有没有sql的大神?这还能优化吗? --1. select CONVERT(varchar(12),OrderAcceptedDateTime,23) as '受理日期', sum(case DrawingType when 1 then 1 else 0 end) as '图纸CAD', sum(case DrawingType when 0 then 1 else 0 end) as '图纸2020', sum(case DrawingType when 2 then 1 else 0 end) as '其他', COUNT(OrderNo) as '总量', '已受理订单' as '分类' from dbo.C_Order where OrderAcceptedDateTime is not null --受理时间不为空 and CONVERT(varchar(12),OrderAcceptedDateTime,23)='${datetime}' ${if(len(ordertype)=0,""," and OrderType in ("+ordertype+")")} group by CONVERT(varchar(12),OrderAcceptedDateTime,23) ------------------- --2. union all select CONVERT(varchar(12),DrawingApprovedDateTime,23) as '审图日期', sum(case DrawingType when 1 then 1 else 0 end) as '图纸CAD', sum(case DrawingType when 0 then 1 else 0 end) as '图纸2020', sum(case DrawingType when 2 then 1 else 0 end) as '其他', COUNT(OrderNo) as '总量', '已审图订单' as '分类' from dbo.C_Order where DrawingApprovedDateTime is not null --审图时间不为空 and CONVERT(varchar(12),DrawingApprovedDateTime,23)='${datetime}' ${if(len(ordertype)=0,""," and OrderType in ("+ordertype+")")} group by CONVERT(varchar(12),DrawingApprovedDateTime,23) ------------------- --3. union all select CONVERT(varchar(12),BOMApprovedDateTime,23) as '拆单日期', sum(case DrawingType when 1 then 1 else 0 end) as '图纸CAD', sum(case DrawingType when 0 then 1 else 0 end) as '图纸2020', sum(case DrawingType when 2 then 1 else 0 end) as '其他', COUNT(Id) as '总量', '已拆单订单' as '分类' from dbo.C_Order where BOMApprovedDateTime is not null --拆单时间不为空 and CONVERT(varchar(12),BOMApprovedDateTime,23)='${datetime}' ${if(len(ordertype)=0,""," and OrderType in ("+ordertype+")")} group by CONVERT(varchar(12),BOMApprovedDateTime,23) --------------------- --4. union all select CONVERT(varchar(12),MOrderApprovedDateTime,23) as '料单审核日期', sum(case DrawingType when 1 then 1 else 0 end) as '图纸CAD', sum(case DrawingType when 0 then 1 else 0 end) as '图纸2020', sum(case DrawingType when 2 then 1 else 0 end) as '其他', COUNT(OrderNo) as '总量', '已料单审核' as '分类' from dbo.C_Order where MOrderApprovedDateTime is not null --料单审核时间不为空 and CONVERT(varchar(12),MOrderApprovedDateTime,23)='${datetime}' ${if(len(ordertype)=0,""," and OrderType in ("+ordertype+")")} group by CONVERT(varchar(12),MOrderApprovedDateTime,23) ------------------------- --5. union all select CONVERT(varchar(12),HoleApprovedDateTime,23) as '孔位审核日期', sum(case DrawingType when 1 then 1 else 0 end) as '图纸CAD', sum(case DrawingType when 0 then 1 else 0 end) as '图纸2020', sum(case DrawingType when 2 then 1 else 0 end) as '其他', COUNT(OrderNo) as '总量', '已孔位审核' as '分类' from dbo.C_Order where HoleApprovedDateTime is not null --孔位审核时间不为空 and CONVERT(varchar(12),HoleApprovedDateTime,23)='${datetime}' ${if(len(ordertype)=0,""," and OrderType in ("+ordertype+")")} group by CONVERT(varchar(12),HoleApprovedDateTime,23)

45

20

45

10

12345
个人成就
内容被浏览0
加入社区7年350天
返回顶部