我一直在从“收购”表中找到各个“业绩”季度的债券原始余额。它在每个季度都有效,但是当我尝试在 2010Q1 运行查询时,我收到了以下通知:
Msg 245, Level 16, State 1, Line 2
Conversion failed when converting the varchar value 'N' to data type int.
我的查询是:
SELECT ALL a.[LOAN IDENTIFIER]
,[CHANNEL]
,[SELLER NAME]
,[ORIGINAL INTEREST RATE]
,[ORIGINAL UNPAID PRINCIPAL BALANCE (UPB)]
,[ORIGINAL LOAN TERM]
,[ORIGINATION DATE]
,[FIRST PAYMENT DATE]
,[ORIGINAL LOAN-TO-VALUE (LTV)]
,[ORIGINAL COMBINED LOAN-TO-VALUE (CLTV)]
,[NUMBER OF BORROWERS]
,[ORIGINAL DEBT-TO-INCOME RATIO]
,[CREDIT SCORE]
,[FIRST-TIME HOME BUYER INDICATOR]
,[LOAN PURPOSE]
,[PROPERTY TYPE]
,[NUMBER OF UNITS]
,[OCCUPANCY STATUS]
,[PROPERTY STATE]
,[ZIP (3-DIGIT)]
,[MORTGAGE INSURANCE PERCENTAGE]
,[PRODUCT TYPE]
FROM dbo.Performance_2010Q1 a join dbo.TotalAcquisition b on a.[Loan Identifier] = b.[LOAN IDENTIFIER]
Where a.[Zero Balance Code] = 97 or a.[Zero Balance Code] = 03
零余额代码告诉债券如何违约,我根据每个债券的“贷款标识符”在两个表之间进行匹配
谢谢!:-D