这是我的Qyery
Select FinancialId,
ApplicationId,
UPPER (InterestSubsidyFinancialDetail.BankName) as BankName,
InterestSubsidyFinancialDetail.BankId,
BankMaster.BankName as Bank
From InterestSubsidyFinancialDetail
left join BankMaster On BankMaster.BankId = InterestSubsidyFinancialDetail.BankId
这个查询给了我这样的结果:
FinancialId ApplicationId BankName BankId Bank
1 1 HARSH BANK -1 NULL
7 3 1 Allahabad Bank
8 3 JFGJFGJ -1 NULL
但我需要将列“BankName”和“Bank”合并为:
FinancialId ApplicationId BankName BankId
1 1 HARSH BANK -1
7 3 Allahabad Bank 1
8 3 JFGJFGJ -1
这有可能得到我需要的结果吗?如果是请帮助我谢谢