I am trying to cast a field to numeric(38,0) to be able to join on. The field I am joining on is defined as
TX_ID NUMBER(38)
I tried using number(38) in the cast with the same error. Do I need to format the number somehow?
Select tdl.tx_id,
post_date,
invoice_number,
amount
From clarity.clarity_tdl_tran tdl
inner join
(
SELECT
ROWID,
INVOICE_ID,
INVOICE_NUM,
EOB_ICN,
TRANSACTION_LIST,
cast(nvl(TRANSACTION_LIST,0) as numeric(38,0)) as tx_id
FROM CLARITY.INV_CLM_LN_ADDL Tbl
) inv
On inv.tx_id = tdl.tx_id
where tdl.detail_type = 50
and tdl.post_date >= to_date('09/01/2005','MM/DD/YYYY')
and rownum < 20
TX_ID NUMBER(38)
I tried using number(38) in the cast with the same error. Do I need to format the number somehow?
Select tdl.tx_id,
post_date,
invoice_number,
amount
From clarity.clarity_tdl_tran tdl
inner join
(
SELECT
ROWID,
INVOICE_ID,
INVOICE_NUM,
EOB_ICN,
TRANSACTION_LIST,
cast(nvl(TRANSACTION_LIST,0) as numeric(38,0)) as tx_id
FROM CLARITY.INV_CLM_LN_ADDL Tbl
) inv
On inv.tx_id = tdl.tx_id
where tdl.detail_type = 50
and tdl.post_date >= to_date('09/01/2005','MM/DD/YYYY')
and rownum < 20