十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
作者:镜音连改二
成都创新互联公司坚信:善待客户,将会成为终身客户。我们能坚持多年,是因为我们一直可值得信赖。我们从不忽悠初访客户,我们用心做好本职工作,不忘初心,方得始终。10多年网站建设经验成都创新互联公司是成都老牌网站营销服务商,为您提供成都网站设计、做网站、网站设计、H5高端网站建设、网站制作、高端网站设计、小程序开发服务,给众多知名企业提供过好品质的建站服务。
链接:
来源:知乎
著作权归作者所有,转载请联系作者获得授权。
SELECT
apply.org_name AS 分公司,
n.statusdes AS 实时状态,
operation_log.apply_id,
operation_log.operator_name AS 合同复核操作人,
max(
operation_log.operation_time
) AS 合同复核时间,
contract.contract_number AS 合同编号,
contract.actual_loan_time AS 实际放款时间,
contract.loan_amount AS 合同金额FROM
operation_logLEFT JOIN contract ON contract.apply_id = operation_log.apply_idLEFT JOIN apply ON apply.apply_id = operation_log.apply_idLEFT JOIN (
SELECT
group_concat(
DISTINCT c.status_code SEPARATOR '||'
) AS statussum,
c.is_in_node,
c.apply_id,
group_concat(
DISTINCT c.status_name SEPARATOR '||'
) AS statusdes,
group_concat(
DISTINCT c.operator_name SEPARATOR '||'
) AS operatornames
FROM
node_record c
WHERE
c.is_in_node = 1
AND c.is_valid = 1
GROUP BY
c.apply_id) n ON apply.apply_id = n.apply_idWHERE
operation_time = "2016-11-1"AND before_status_name = "合同复核中"AND end_status_name = "合同复核完成"AND operation_log.node_code = "REVIEW"AND apply.is_ex_apply = '1'AND apply.borrowing_type = '1'AND operation_log.operator_name NOT LIKE "%测试%"GROUP BY
apply.org_name,
n.statusdes,
operation_log.apply_id,
operation_log.operator_name,
DATE(
operation_log.operation_time
),
contract.contract_number,
contract.actual_loan_time,
contract.loan_amount
看不懂你想表达什麼意思,用SQl语句?where 条件加上attr_id =45 and attr_id =51这样的条件不就ok了?
新建查询,然后写语句
use 数据库名
go
select 姓名,Max(分值) As 最高分 from 表名 group by 姓名;
这样就好了,不要想复杂了
写一个查询语句啊
select * from 表名 where dengji = 'A'
查询结果就是你想要的。。