0
我有兩個表看起來像這樣:的Oracle 11g SQL行列
LOAN_APP_QST (profile on lending) and
QST_PART (it set up all the fields of loan application).
查詢:
SELECT LOAN_APP_QST.REQ_ID,
LOAN_APP_QST.QST_PART_ID,
LOAN_APP_QST.LAQ_VALUE,
QST_PART.QP_NUM,
QST_PART.QP_NAME
FROM SP_MTS.LOAN_APP_QST LOAN_APP_QST
INNER JOIN
SP_MTS.QST_PART QST_PART
ON (LOAN_APP_QST.QST_PART_ID = QST_PART.QST_PART_ID)
WHERE LOAN_APP_QST.REQ_ID = 23000;
查詢結果:
REQ_ID QST_PART_ID LAQ_VALUE QP_NUM QP_NAME
23000 -1 IVANOV surname FirstName
23000 -2 IVAN name LastName
23000 -3 V. pname Patronymic
我希望像輸出這個:
REQ_ID surname name pname
23000 IVANOV IVAN V.
我正在使用Oracle DB 11.它如何實現?
非常感謝您!這正是我需要:) – 2013-03-05 13:19:44
@ 4uck不客氣,高興地幫忙! – Taryn 2013-03-05 13:43:06