Actually the query doesn’t get to the input stage. it errors out as it’s executes. here is the query i am trying to run:
SET VERFIY OFF;
SELECT
ORG_ACCT_NM AS “customer”
, atl.acct_typ_desc AS “customer_type”
, ORG_ST_CD AS “state”
, INITCAP(ORG_CTY_ADDR) AS “city”
, INITCAP(TRIM(uoc.frst_nm)) || ’ ’ || INITCAP(TRIM(uoc.lst_nm)) AS “user_name”
, uoc.email
, CASE WHEN SUBSTR(TRIM(uoc.usr_titl),1,1) = LOWER(SUBSTR(TRIM(uoc.usr_titl),1,1))
THEN INITCAP(uoc.usr_titl)
ELSE NVL(uoc.usr_titl,’ ')
END AS “title”
, kntc_add_dt AS “Register Date”
, to_char(kntc_lst_lgn_dt,‘MM/DD/YYYY’) AS “Last Login Date”
FROM CMCADM.USR_ORG_CUST_V1 uoc
INNER JOIN CMCADM.CMC_ORG cmo ON uoc.cmc_org_id = cmo.cmc_org_id
LEFT OUTER JOIN CMCADM.CDF_ORG cdo ON cmo.cid = cdo.cid
INNER JOIN CMCADM.ACCT_TYP_LKP atl ON NVL(cdo.acct_typ_cd,cmo.acct_typ_cd) = atl.acct_typ_cd
WHERE
TRUNC(kntc_lst_lgn_dt) BETWEEN ‘&& Start_Dt_in_dd_mon_yy_format’ AND ‘&& End_Dt_in_dd_mon_yy_format’
ORDER BY org_acct_nm, atl.acct_typ_desc, org_cty_addr;
as far as how i am connecting, it looks like i am using oracle client to connect. the current home it Orahome10201
Doc3.docx (51.8 KB)