hello all,
I have this functioning SQL code:
Column #4, I am just trying to replace all the values in the column with "D". I'm struggling to do it correctly, so any help would be greatly appreciated.
I have this functioning SQL code:
SQL:
SELECT LOANMAST.BANK, LOANMAST.BRANCH,
LOANMAST.LOAN_NBR, USERF.USER13A, LOANMAST.POSTDATE,
LOANMAST.LOAN_AMT, LOANMAST.SHORT_NAME
--USER13A must say "D" in all rows
FROM LOANMAST LOANMAST
LEFT OUTER JOIN BORRLIST BORRLIST ON
(BORRLIST.BANK = LOANMAST.BANK)
AND (BORRLIST.BRANCH = LOANMAST.BRANCH)
AND (BORRLIST.LOAN_NBR = LOANMAST.LOAN_NBR)
LEFT OUTER JOIN BORROWER BORROWER ON
(BORROWER.XUNIQUE = BORRLIST.BORROWER)
LEFT OUTER JOIN PARTLOAN PARTLOAN ON
(PARTLOAN.BANK = LOANMAST.BANK)
AND (PARTLOAN.BRANCH = LOANMAST.BRANCH)
AND (PARTLOAN.LOAN_NBR = LOANMAST.LOAN_NBR)
LEFT OUTER JOIN USERF USERF ON
(USERF.BANK = BORRLIST.BANK)
AND (USERF.BRANCH = BORRLIST.BRANCH)
AND (USERF.LOAN_NBR = BORRLIST.LOAN_NBR)
LEFT OUTER JOIN DELINQ DELINQ ON
(DELINQ.BANK = USERF.BANK)
AND (DELINQ.BRANCH = USERF.BRANCH)
AND (DELINQ.LOAN_NBR = USERF.LOAN_NBR)
LEFT OUTER JOIN BROKER BROKER ON
(BROKER.XUNIQUE = BORRLIST.XUNIQUE)
WHERE ( BORRLIST.XTYPE = 1 )
AND ( LOANMAST.BANK = 136 )
AND ( LOANMAST.BPRIN_BAL = 0)
AND ( LOANMAST.POSTDATE < curDate() )
ORDER BY LOANMAST.POSTDATE DESC
Column #4, I am just trying to replace all the values in the column with "D". I'm struggling to do it correctly, so any help would be greatly appreciated.