1、select a.合同编号,a.贷款金额 from 贷款信息表 a where a.客户编号 = '123456'2、select * from **表 where 客户编号 in(select 客户编号 from 贷款信息表 group by 客户编号 h**ing count(1) >=2)3、update 贷款信息表 set 贷款利率 = 贷款利率*0.1 from **表 a where 贷款信息表.客户编号 = a.客户编号 and a.客户类型 = 'a' --“客户类型”应该作为“**表”的一个字段4、select * from 贷款信息表 where 客户编号 in(select 客户编号 from 还款明细表 where 还款期次 = '201210' and 还款金额 <= 0)5、select a.*,b.* from 贷款信息表 a inner join 还款明细表 b on a.合同编号 = b.合同编号 where year(合同生效日期) = 2012 --假设“合同生效日期”为日期型字段 20210311