database - SQL Command error ORA-00933 when deal with three tables -


Text after "

CRS_T_RES_VOUCHER where IS_OFFLINE_BOOKING is true (all vouchers received from the system) Date - CRS_T_RES_REGISTRATION. UPDATED_DATE ) & gt; Offline canceled threshold

Offline canceled threshold can be taken from the CRS_T_HTL_PARAMETER table. PARAM_KEY - IBE_OFFLINE_CANCELLATION_THRESHOLD CRS_ T_RES_VOUCHER v, CRS_T_RES_REGISTRATION regi, CRS_T_HTL_PARAMETER Para WHERE v.is_offline_booking = '1' and choose from TRUNC (SYSDATE) v.VOUCHER_NUMBER - TRUNC (v.updated_date) & gt; Para.param_value Where do I encounter Ora-00933: SQL command does not end correctly

Post -text "itemprop =" text ">

I found it needed to deal with nested query

  CRS_T_RES_VOUCHER V, CRS_T_RES_REGISTRATION regi, selection from paras to vc. Vouc, where CRS_T_HTL_PARAMETER v.is_offline_booking = '1' and TRUNC (SYSDATE) - TRUNC (v.updated_date) & gt; (Select TRUNC (para.param_value) from the CRS_T_HTL_PARAMETER paragraph where para.param_key = 'IBE_OFFLINE_CANCELLATION_THRESHOLD')    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -