I have a problem with this query in Oracle SQL.
Errore alla riga del comando:18 Colonna:42
Report errori:
Errore SQL: ORA-00918: column ambiguously defined
00918. 00000 - "column ambiguously defined"
*Cause:
*Action:
This is the query, but i don't see the column ambiguously defined:
MERGE INTO T_HPSM_CM_UBIS H USING
(SELECT A.itam_relevant_appl_code as ret,
b.service_id,
b.it_service,
b.itam_user_id,
b.itam_last_name,
b.itam_first_name,
b.itrm_user_id,
b.itam_first_name,
b.itam_last_name
FROM
(SELECT f.itam_relevant_appl_code
FROM T_HPSM_CM_UBIS f
GROUP BY f.itam_relevant_appl_code
) A,
t_cp_list_itam b
WHERE A.itam_relevant_appl_code = b.hvb_appl_code
) s ON (H.itam_relevant_appl_code = s.ret)
WHEN MATCHED THEN
UPDATE SET H.service_id = s.service_id, H.it_service = s.it_service;
b.itam_last_name
andb.itam_first_name
selected twice with the same name? – San