Create the View Finder C++ Start camera only
I had a flashlight with waterfalls and it works, but now I need to convert the app to use only C/C++ with 0 waterfalls.
First step is to create a camera and start the viewfinder. Can someone point me in the direction of some docs or the sample code to do this?
Found this
https://github.com/BlackBerry/core-native-community-samples/tree/master/NativeCamera
Tags: BlackBerry Developers
Similar Questions
-
Create the view and by using the function that returns a type oracle
Following is possible?
A function returns an ORACLE object Type, and I want to use this feature, in my opinion, it is possible to access each field of the type once the function is executed and make a column in the view?
Now, I want to use the function according to me - if the underlying query of the view follows-create or replace TYPE SOME_INFO AS OBJECT ( CHARGE FLOAT, SOME_DATE DATE, SOME_VAL VARCHAR(50) ); CREATE OR REPLACE FUNCTION CALCULATE_INFO ( p_chargeId NUMBER) RETURN SOME_INFO AS v_some_info SOME_INFO := new SOME_INFO(0, null, null); BEGIN -- function body populates the v_some_info return v_some_info; END calculate_info;
How to recover someInfo.CHARGE, someInfo.some_date, someInfo.some_val? I can put them as columns in the view?select c.*, calculate_info(c.charge_id) as someInfo from some_charge;
If you use only functions that return a single value in a view?
Thank you
Mustapha
Published by: Tina Giri on April 16, 2009 05:47How to recover someInfo.CHARGE, someInfo.some_date, someInfo.some_val?
SQL> create or replace type some_info as object (charge float, some_date date, some_val varchar (50)); / Type created. SQL> create or replace function calculate_info (p_chargeid number) return some_info as v_some_info some_info := new some_info (0, null, null); begin -- function body populates the v_some_info return v_some_info; end calculate_info; / Function created. SQL> select your_view.someinfo.charge, your_view.someinfo.some_date, your_view.someinfo.some_val from (select c.*, calculate_info (c.empno) as someinfo from emp c) your_view where rownum <= 3 SOMEINFO.CHARGE SOMEINFO SOMEINFO.SOME_VAL --------------- -------- -------------------------------------------------- 0 0 0 3 rows selected.
-
Error message of nonsense trying to create the view
Hello all,.
Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production on Windows 2008R2
I get an error when trying to create a view. The error makes no sense in that didn't evoke any attempt to change a user name or password in the error in production.
I can run the complete select statement very well, I retrieve the results.
If I comment out the line shown as being in error, the problem moves to the line before the tour. 4 lines before the line specified by the error message are similar. The error occurs on the last of the 5 similar lines of code.
If I move all 5 lines above in the code the error moves accordingly.
Function validate_number (near where the error is identified) under certain conditions, it will issue an immediate "alter session set nls_numeric_characters =" execution., "';"
The number of the column identified in the error message is 2 spaces before the validate_number function call.
Here is the syntax for creating the view, the error message is at the bottom.
Figures on the far left indicate the line number. I put 2 blank lines before and after the line of code identified by the error message.
The error points to the 2-seater before the VALIDATE_NUMBER function call on line 350. just before the code sql == > validate_number(Spend_Qty,'')), 0) < ==
Thanks for your time,
Bob
Error in the command line: 350 column: 112CREATE OR REPLACE VIEW REPORT_STAGING_V AS - SELECT - SPEND_STAGING.INPUT_FILE_ID, - SPEND_STAGING.SPEND_ID, - SPEND_STAGING.SPEND_DOC_NUM, - SPEND_STAGING.SPEND_DOC_ITM_NUM, - SPEND_STAGING.SPEND_DOC_YR_NUM, - SPEND_STAGING.ACCT_PYBL_INV_DOC_NUM, - SPEND_STAGING.ACCT_PYBL_INV_FSCL_YR_NUM, - SPEND_STAGING.COMPANY_CODE, - SPEND_STAGING.ACCT_PYBL_INV_LN_ITM_NUM, - SPEND_STAGING.SPEND_DOC_TYPE_CD, - SPEND_STAGING.SPEND_MTHD_TXT, - NVL(SPEND_STAGING.SRC_SYS_CD, '<BLANK>') SRS_SYS_CD, - SPEND_STAGING.SPEND_SAVING_DT, - SPEND_STAGING.SPEND_SAVING_FSCL_WK_NUM, - SPEND_STAGING.SPEND_SAVING_FSCL_MTH_NUM, - SPEND_STAGING.SPEND_SAVING_FSCL_QTR_NUM, - SPEND_STAGING.SPEND_SAVING_FSCL_YR_NUM, - SPEND_STAGING.MTRL_GRP_CD, - SPEND_STAGING.MTRL_GRP_DESC_TXT, - SPEND_STAGING.MTRL_GRP_LVL_1_TXT, - SPEND_STAGING.MTRL_GRP_LVL_2_TXT, - SPEND_STAGING.MTRL_GRP_LVL_3_TXT, - SPEND_STAGING.MTRL_GRP_LVL_4_TXT, - SPEND_STAGING.MTRL_GRP_LVL_5_TXT, - SPEND_STAGING.MTRL_GRP_LVL_6_TXT, - SPEND_STAGING.MTRL_GRP_LVL_7_TXT, - SPEND_STAGING.MTRL_GRP_LVL_8_TXT, - SPEND_STAGING.GL_ACCT_NUM, - SPEND_STAGING.GL_ACCT_DESC, - SPEND_STAGING.COST_CENTR_CD, - SPEND_STAGING.PRFT_CENTR_CD, - SPEND_STAGING.FUNCNL_AREA_CD, - SPEND_STAGING.PURCH_GRP_CD, - SPEND_STAGING.PURCH_GRP_NAM, - SPEND_STAGING.PURCH_ORG_CD, - SPEND_STAGING.PURCH_ORG_NAM, - SPEND_STAGING.REGION_CODE, - SPEND_STAGING.VNDR_ACCT_ROOT_NUM, - SPEND_STAGING.VNDR_CORP_NAM, - SPEND_STAGING.VNDR_CORP_TICKER_SYMBL_CD, - SPEND_STAGING.BUYPOINT_VNDR_ACCT_NUM, - SPEND_STAGING.BUYPOINT_VNDR_FIRST_NAM, - SPEND_STAGING.PAYPOINT_VNDR_ACCT_NUM, - SPEND_STAGING.PAYPOINT_VNDR_FIRST_NAM, - SPEND_STAGING.SPEND_PYMNT_TERM_CD, - SPEND_STAGING.SPEND_PYMNT_TERM_DESC, - SPEND_STAGING.SPEND_PYMNT_BSLN_DT, -50 SPEND_STAGING.SPEND_PYMNT_CLRNG_DT, - SPEND_STAGING.CONTRACTUAL_PYMNT_TERM_DY_CNT, - SPEND_STAGING.VNDR_MTRL_NUM, - SPEND_STAGING.MTRL_ID_1280, - SPEND_STAGING.MTRL_DESC, - SPEND_STAGING.BAT_NUM, - SPEND_STAGING.SPCL_STOCK_IND, - SPEND_STAGING.INVTY_MVMNT_TYPE_CD, - SPEND_STAGING.GOODS_RCPNT_NAM, - SPEND_STAGING.MFG_PART_NUM, - SPEND_STAGING.PLANT_CD, - SPEND_STAGING.PLANT_DESC, - SPEND_STAGING.STORAGE_LOC_CD, - SPEND_STAGING.STORAGE_LOC_DESC, - SPEND_STAGING.UNLOADING_PT_DESC, - SPEND_STAGING.PO_NUM, - SPEND_STAGING.PO_LN_ITM_NUM, - SPEND_STAGING.PO_LN_ITM_LAST_CHNG_DT, - SPEND_STAGING.PO_DOC_DT, - SPEND_STAGING.PO_TYPE_CD, - SPEND_STAGING.PO_TYPE_DESC, - SPEND_STAGING.PO_UOM_CD, - SPEND_STAGING.PO_PYMNT_TERM_CD, - SPEND_STAGING.ASGND_ACCT_CTGRY_TYPE_CD, - SPEND_STAGING.PO_SHORT_TXT, - SPEND_STAGING.GR_MTRL_DOC_TXT, - SPEND_STAGING.ACCT_PYBL_INV_ITM_TXT, - SPEND_STAGING.PO_RCPT_INV_HST_DOC_POST_DT, - SPEND_STAGING.APPRTN_NUM, - SPEND_STAGING.REQTN_TRK_NUM, - SPEND_STAGING.REQTN_LN_NUM, - SPEND_STAGING.REQTN_LN_ITM_NUM, - SPEND_STAGING.REQTN_PERSN_ACCT_ID, - SPEND_STAGING.NTWRK_NUM, - SPEND_STAGING.NTWRK_CTGRY_CD, - SPEND_STAGING.PROJ_NAM, - SPEND_STAGING.WBS_ELMNT_NAM, - SPEND_STAGING.CPTL_PO_IND, - LU_GAC_STAGING.TIER_SUPPLIER, - CASE - WHEN SPEND_STAGING.PRCRMNT_RPTNG_LVL_3_TXT = 'GAC' - AND LU_GAC_STAGING.PO_SHORT_TXT = SPEND_STAGING.PO_SHORT_TXT - AND SPEND_STAGING.SRC_SPLR_NAM IS NULL - THEN LU_GAC_STAGING.TIER_SUPPLIER - ELSE SRC_SPLR_NAM - END SRC_SPLR_NAM, - SPEND_STAGING.TAX_CD, - SPEND_STAGING.TAX_CD_DESC, - SPEND_STAGING.TAX_JURISDICTION_TXT, - SPEND_STAGING.MTRL_DOC_PRCS_UOM_QTY, -100 SPEND_STAGING.MTRL_DOC_UNIT_OF_ENTRY_QTY, - SPEND_STAGING.PO_LN_ITM_QTY, - SPEND_STAGING.PO_LN_ITM_NET_PRC_UNIT_QTY, - SPEND_STAGING.PO_LN_ITM_NET_PRC_USD_AMT, - SPEND_STAGING.PO_LN_ITM_NET_PRC_DC_AMT, - SPEND_STAGING.PO_LN_ITM_NET_PRC_BDGT_USD_AMT, - SPEND_STAGING.PO_LN_ITM_TOT_USD_AMT, - SPEND_STAGING.SPEND_USD_AMT, - SPEND_STAGING.SPEND_DOC_CURNCY_AMT, - SPEND_STAGING.SPEND_LOCAL_CURNCY_AMT, - SPEND_STAGING.SPEND_BDGT_USD_AMT, - SPEND_STAGING.SPEND_QTY, - SPEND_STAGING.SPEND_QTY_UOM_CD, - SPEND_STAGING.SPEND_UNIT_OF_ENTRY_QTY, - SPEND_STAGING.SPEND_UNIT_OF_ENTRY_UOM_CD, - SPEND_STAGING.SPEND_DC_FX_MTH_CNVRSN_FCT_VAL, - SPEND_STAGING.SPEND_DC_FX_BDG_CNVRSN_FCT_VAL, - SPEND_STAGING.CMPNY_LOCAL_CURNCY_CD, - SPEND_STAGING.DOC_CURNCY_CD, - SPEND_STAGING.TRANSTN_TYPE_CD, - SPEND_STAGING.ACCT_ASGNMT_SEQ_NUM, - SPEND_STAGING.GLPCA_LN_ITM_REC_NUM, - SPEND_STAGING.PCA_REF_DOC_NUM, - SPEND_STAGING.CO_DOC_NUM, - SPEND_STAGING.CO_FSCL_YR_NUM, - SPEND_STAGING.CO_LN_ITM_NUM, - SPEND_STAGING.VNDR_REF_DOC_NUM, - SPEND_STAGING.SAVING_MTHD_TXT, - SPEND_STAGING.SAVING_CMNT_TXT, - SPEND_STAGING.SAVING_COND_NUM, - SPEND_STAGING.SAVING_COND_ITM_NUM, - SPEND_STAGING.SAVING_COND_TYPE_CD, - SPEND_STAGING.SAVING_COND_TYPE_DESC, - SPEND_STAGING.SAVING_COND_CURNCY_CD, - SPEND_STAGING.SAVING_COND_PRC_UNIT_UOM_CD, - SPEND_STAGING.SAVING_COND_PRC_UNIT_QTY, - SPEND_STAGING.SAVING_COND_RTE_USD_AMT, - SPEND_STAGING.SAVING_COND_CURNCY_CNVRSN_VAL, - SPEND_STAGING.SAVING_COND_CURNCY_BDGT_CNVRSN, - SPEND_STAGING.PO_TRANSTN_COND_DC_AMT, - SPEND_STAGING.PO_TRANSTN_COND_USD_AMT, - SPEND_STAGING.SAVING_RTE_PER_USD_AMT, - SPEND_STAGING.SAVING_PER_USD_AMT, - SPEND_STAGING.SAVING_PER_BDGT_USD_AMT, - SPEND_STAGING.AVOIDANCE_USD_AMT, - SPEND_STAGING.AVOIDANCE_BDGT_USD_AMT, - SPEND_STAGING.SAVING_USD_AMT, - SPEND_STAGING.SAVING_BDGT_USD_AMT, - SPEND_STAGING.NO_FX_SAVING_USD_AMT, - SPEND_STAGING.NO_FX_AVOIDANCE_USD_AMT, -150 SPEND_STAGING.TOT_REDUCTN_USD_AMT, - SPEND_STAGING.TOT_REDUCTN_BDGT_USD_AMT, - SPEND_STAGING.TOT_NO_FX_REDUCTN_USD_AMT, - SPEND_STAGING.PAYMENTNET_TRANSTN_NUM, - SPEND_STAGING.PAYMENTNET_TRANSTN_LN_ITM_NUM, - SPEND_STAGING.ROW_CRTE_GMT_DTTM, - SPEND_STAGING.ROW_MODIFY_GMT_DTTM, - SPEND_STAGING.ROW_CRTE_MST_DTTM, - SPEND_STAGING.ROW_MODIFY_MST_DTTM, - SPEND_STAGING.PRCRMNT_DIRECTOR_NAM, - SPEND_STAGING.PRCRMNT_PLANT_DSGNTN, - SPEND_STAGING.PRCRMNT_RPTNG_LVL_1_TXT, - SPEND_STAGING.PRCRMNT_RPTNG_LVL_2_TXT, - SPEND_STAGING.PRCRMNT_RPTNG_LVL_3_TXT, - SPEND_STAGING.SPEND_CAT_ID, - SPEND_STAGING.SPEND_RULE_ID, - SPEND_STAGING.TRANSACTION_DATE, - SPEND_STAGING.SPEND_AMOUNT, - SPEND_STAGING.ITEM_DESCRIPTION, - SPEND_STAGING.SUPPLIER_ID, - CASE - WHEN SPEND_STAGING.SOURCE ='SPEND' - THEN 'Spend and Savings' - WHEN SPEND_STAGING.SOURCE ='TRAVEL' - THEN 'Travel' - ELSE NULL - END SOURCE, - SPEND_STAGING.SUPPLIER_NUMBER, - SPEND_STAGING.TRAVEL_PERSNO, - SPEND_STAGING.TRIP, - SPEND_STAGING.TRAVEL_DOC, - SPEND_STAGING.TRAVEL_EXPTY, - SPEND_STAGING.TRAVEL_EXP_TYPE_DESC, - SPEND_STAGING.TRAVLE_CREDIT_CARD_TRAN_DESC TRAVEL_CREDIT_CARD_TRAN_DESC, - SPEND_STAGING.COUNTRY_CODE, - SPEND_STAGING.TRAVEL_INFO, - SPEND_STAGING.TRAVEL_ID, - SPEND_STAGING.TRAVEL_DOCUMENT_NUMBER, - SPEND_STAGING.TRAVEL_LAST_NAME_FIRST_NAME, - SPEND_STAGING.TRAVEL_TRIP_REASON, - SPEND_STAGING.TRAVEL_TRIP_STATUS, - SPEND_STAGING.TRAVEL_RATE, - SPEND_STAGING.FINANCE_ORG, - SPEND_STAGING.ASSOCIATED_MG_CODE, - SPEND_STAGING.COUNTRY_DESC, - SPEND_STAGING.TRAVEL_ID_DESC_BANKCARD, - SPEND_STAGING.COMPANY_CODE_DESC, - SPEND_STAGING.COST_CENTER_DESC, - 'Q'||TO_CHAR(SPEND_STAGING.TRANSACTION_DATE,'Q') QUARTERNAME, - TO_CHAR(SPEND_STAGING.TRANSACTION_DATE,'YYYY') YEARNAME, -200 CASE - WHEN SPEND_STAGING.SRC_SYS_CD = 'P-CARD' - THEN SS2.CLEANSED_PARENT_NAME - ELSE SS1.CLEANSED_PARENT_NAME - END CLEANSED_PARENT_NAME, - CASE - WHEN SPEND_STAGING.SRC_SYS_CD = 'P-CARD' - THEN SS2.cleansed_name_1 - ELSE SS1.cleansed_name_1 - END CLEANSED_NAME1, - CASE - WHEN SPEND_STAGING.MTRL_ID_1280 IS NULL - AND SPEND_STAGING.VNDR_MTRL_NUM IS NOT NULL - THEN SPEND_STAGING.VNDR_MTRL_NUM - WHEN SPEND_STAGING.MTRL_ID_1280 IS NULL - AND SPEND_STAGING.VNDR_MTRL_NUM IS NULL - AND SPEND_STAGING.MFG_PART_NUM IS NOT NULL - THEN SPEND_STAGING.MFG_PART_NUM - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZAR' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280||'-MIX' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZAR' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-MIX' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZSA' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ASMBLY' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZSA' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ASMBLY' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZST' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-TEST' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZST' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-TEST' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZBI' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL -250 THEN SPEND_STAGING.MTRL_ID_1280 - ||'-BURN-IN' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZBI' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-BURN-IN' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZRJ' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-REJECT' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZRJ' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-REJECT' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZPR' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-PROBE' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZPR' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-PROBE' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZEF' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ENG' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZEF' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ENG' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZEM' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ENG' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZEM' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ENG' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZEU' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL -300 THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ENGWFR' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZEU' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ENGWFR' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZSF' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-WFR' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZSF' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-WFR' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZEF' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ENG' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.PO_TYPE_CD = 'ZEF' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-ENG' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EFM' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-POTypeCode' - WHEN SPEND_STAGING.MTRL_GRP_LVL_4_TXT = 'EWM' - AND SPEND_STAGING.MTRL_ID_1280 IS NOT NULL - THEN SPEND_STAGING.MTRL_ID_1280 - ||'-POTypeCode' - ELSE SPEND_STAGING.MTRL_ID_1280 - END ReportingPartNum, - LU_PCARD_STAGING.COST_CENTR_CD PCARD_COST_CENTR_CD, - LU_PCARD_STAGING.CTY_NAM PCARD_CTY_NAM, - LU_PCARD_STAGING.DISABLE_LINE PCARD_DISABLE_LINE, - LU_PCARD_STAGING.DISABLED_OWNED_BIZ_FLG PCARD_DISABLED_OWNED_BIZ_FLG, - LU_PCARD_STAGING.DIVERSITY_VNDR_FLG PCARD_DIVERSITY_VNDR_FLG, - LU_PCARD_STAGING.FIELD PCARD_FIELD, - LU_PCARD_STAGING.GL_ACCT_NUM PCARD_GL_ACCT_NUM, - LU_PCARD_STAGING.HUB_ZONE_SMALL_BIZ_CONCERN_FLG PCARD_HUB_ZONE, - LU_PCARD_STAGING.MINORITY_OWNED_BIZ_FLG PCARD_MINORITY_OWNED_BIZ_FLG, - NVL(validate_number(Po_Ln_Itm_Net_Prc_Usd_Amt,'')/DECODE(validate_number(Po_Ln_Itm_Net_Prc_Unit_Qty,''),0,1,validate_number(Po_Ln_Itm_Net_Prc_Unit_Qty,'')),0) po_unit_price_per_1_usd, - NVL(validate_number(Po_Ln_Itm_Net_Prc_Dc_Amt,'') /DECODE(validate_number(Po_Ln_Itm_Net_Prc_Unit_Qty,''),0,1,validate_number(Po_Ln_Itm_Net_Prc_Unit_Qty,'')),0) po_unit_price_per_1_doc_cur, - NVL(validate_number(Spend_Bdgt_Usd_Amt,'') /DECODE(validate_number(Spend_Qty,''),0,1, validate_number(Spend_Qty,'')),0) spend_up_per_1_usd_budgt_rate, - NVL(validate_number(Spend_Usd_Amt,'') /DECODE(validate_number(Spend_Qty,''),0,1, validate_number(Spend_Qty,'')),0) spend_up_per_1_usd_mon_rate, -350 NVL(validate_number(Spend_Doc_Curncy_Amt,'') /DECODE(validate_number(Spend_Qty,''),0,1, validate_number(Spend_Qty,'')),0) Spend_UP_per_1_Doc_Curr, - - TO_CHAR(TRANSACTION_DATE,'MM-YYYY') MONTH_YEAR, - LU_PCARD_STAGING.MTRL_GRP_CD PCARD_MTRL_GRP_CD, - LU_PCARD_STAGING.PAYMENTNET_TRANSTN_LN_ITM_NUM PCARD_PAY_TRANSTN_LN_ITM_NUM, - LU_PCARD_STAGING.PAYMENTNET_TRANSTN_NUM PCARD_PAY_TRANSTN_NUM, - LU_PCARD_STAGING.PAYMENTNET_TRANSTN_POST_DT PCARD_PAY_TRANSTN_POST_DT, - LU_PCARD_STAGING.PCARD_INV_AMT PCARD_INV_AMT, - LU_PCARD_STAGING.PCARD_INV_CURNCY_CD PCARD_INV_CURNCY_CD, - LU_PCARD_STAGING.PCARD_INV_DT PCARD_INV_DT, - LU_PCARD_STAGING.PCARD_INV_LN_ITM_AMT PCARD_INV_LN_ITM_AMT, - LU_PCARD_STAGING.PCARD_INV_LN_ITM_TAX_AMT PCARD_INV_LN_ITM_TAX_AMT, - LU_PCARD_STAGING.PCARD_INV_LN_ITM_TAX_CD PCARD_INV_LN_ITM_TAX_CD, - LU_PCARD_STAGING.PCARD_INV_REF_NUM PCARD_INV_REF_NUM, - LU_PCARD_STAGING.PCARD_INV_TAX_AMT PCARD_INV_TAX_AMT, - LU_PCARD_STAGING.PCARD_MERCHANT_NAM PCARD_MERCHANT_NAM, - LU_PCARD_STAGING.PCARD_OWNR_ID PCARD_OWNR_ID, - LU_PCARD_STAGING.PCARD_SHORT_TXT PCARD_SHORT_TXT, - LU_PCARD_STAGING.PCARD_SRC_FILE_NAM PCARD_SRC_FILE_NAM, - LU_PCARD_STAGING.PLANT_CD PCARD_PLANT_CD, - LU_PCARD_STAGING.PURCH_GRP_CD PCARD_PURCH_GRP_CD, - LU_PCARD_STAGING.RCPNT_ID PCARD_RCPNT_ID, - LU_PCARD_STAGING.REQTN_CRTE_BY_ID PCARD_REQTN_CRTE_BY_ID, - LU_PCARD_STAGING.REQTN_LN_ITM_NUM PCARD_REQTN_LN_ITM_NUM, - LU_PCARD_STAGING.REQTN_NUM PCARD_REQTN_NUM, - LU_PCARD_STAGING.SERV_DISABLE_VETERAN_BIZ_FLG PCARD_SERV_DIS_VET_BIZ_FLG, - LU_PCARD_STAGING.STATE_CD PCARD_STATE_CD, - LU_PCARD_STAGING.STATE_CD, - LU_PCARD_STAGING.VETERAN_OWNED_BIZ_FLG PCARD_VETERAN_OWNED_BIZ_FLG, - LU_PCARD_STAGING.VNDR_ACCT_NUM PCARD_VNDR_ACCT_NUM, - LU_PCARD_STAGING.WOMAN_OWNED_BIZ_FLG PCARD_WOMAN_OWNED_BIZ_FLG2, - DENSE_RANK() OVER (ORDER BY NVL(TO_CHAR(TRANSACTION_DATE, 'YYYYMM'),'190010') DESC) AS DATE_RANK, - LU_PRICE_BY_UNIT_STAGING.MTRL_GRP PBU_MTRL_GRP, - LU_PRICE_BY_UNIT_STAGING.MTRL_GRP_DES PBU_MTRL_GRP_DES, - LU_PRICE_BY_UNIT_STAGING.MTRL_ID PBU_MTRL_ID, - LU_PRICE_BY_UNIT_STAGING.PLANT PBU_PLANT, - LU_PRICE_BY_UNIT_STAGING.PLANT_DESC PBU_PLANT_DESC, - LU_PRICE_BY_UNIT_STAGING.SUPPLIER PBU_SUPPLIER, - LU_PRICE_BY_UNIT_STAGING.DESCRIPTION PBU_DESCRIPTION, - LU_PRICE_BY_UNIT_STAGING.UOM PBU_UOM, - LU_PRICE_BY_UNIT_STAGING.CONTENT_VOLUME PBU_CONTENT_VOLUME, - LU_PRICE_BY_UNIT_STAGING.UOM_CONTENT_VOLUME PBU_UOM_CONTENT_VOLUME, - LU_PRICE_BY_UNIT_STAGING.CONTENT_WEIGHT PBU_CONTENT_WEIGHT, - LU_PRICE_BY_UNIT_STAGING.UOM_CONTENT_WT PBU_UOM_CONTENT_WT, - LU_PRICE_BY_UNIT_STAGING.PRICE__PACKAGE PBU_PRICE__PACKAGE, - LU_PRICE_BY_UNIT_STAGING.PRICE_PER_UOM_WT PBU_PRICE_PER_UOM_WT, - LU_PRICE_BY_UNIT_STAGING.PRICE_PER_UOM_VOL PBU_PRICE_PER_UOM_VOL, - LU_PRICE_BY_UNIT_STAGING.COMMON_NAME PBU_COMMON_NAME, - LU_GAC_UOM_REFERENCE_STAGING.LU_GAC_UOM_REFERENCE_ID, - LU_GAC_UOM_REFERENCE_STAGING.FSL_PART_NUMBER, - LU_GAC_UOM_REFERENCE_STAGING.SUPPLIER LU_GAC_SUPPLIER, -400 LU_GAC_UOM_REFERENCE_STAGING.DESCRIPTION LU_GAC_DESCRIPTION, - LU_GAC_UOM_REFERENCE_STAGING.GAC_MAT_SUBGROUP LU_GAC_MAT_SUBGROUP , - LU_GAC_UOM_REFERENCE_STAGING.ACTUAL_FILL LU_GAC_ACTUAL_FILL, - LU_GAC_UOM_REFERENCE_STAGING.COMMON__UOM LU_GAC_COMMON_UOM, - LU_GAC_UOM_REFERENCE_STAGING.PACKAGE LU_GAC_PACKAGE - FROM - SPEND_STAGING, - SUPPLIER_STAGING SS1, - SUPPLIER_STAGING SS2, - LU_GAC_STAGING, - lu_card_code_staging, - LU_PCARD_STAGING, - LU_PRICE_BY_UNIT_STAGING, - LU_GAC_UOM_REFERENCE_STAGING - WHERE SS1.SUPPLIER_ID(+) = SPEND_STAGING.SUPPLIER_ID - AND SS2.PCARD_INV_REF_NUM(+) = SPEND_STAGING.PCARD_INV_REF_NUM - AND SS2.PAYMENTNET_TRANSTN_NUM(+) = SPEND_STAGING.PAYMENTNET_TRANSTN_NUM - AND SS2.PAYMENTNET_TRANSTN_LN_ITM_NUM(+) = - SPEND_STAGING.PAYMENTNET_TRANSTN_LN_ITM_NUM - AND lu_card_code_staging.card_code(+) = spend_staging.travel_id - AND lu_gac_staging.po_short_txt(+) = spend_staging.po_short_txt - AND LU_PCARD_STAGING.PCARD_INV_REF_NUM(+) = SPEND_STAGING.PCARD_INV_REF_NUM - AND LU_PCARD_STAGING.PAYMENTNET_TRANSTN_NUM(+) = - SPEND_STAGING.PAYMENTNET_TRANSTN_NUM - AND LU_PCARD_STAGING.PAYMENTNET_TRANSTN_LN_ITM_NUM(+) = - SPEND_STAGING.PAYMENTNET_TRANSTN_LN_ITM_NUM - AND LU_PRICE_BY_UNIT_STAGING.MTRL_ID(+) = SPEND_STAGING.MTRL_ID_1280 - AND LU_PRICE_BY_UNIT_STAGING.PLANT(+) = SPEND_STAGING.PLANT_CD - AND lu_gac_uom_REFERENCE_STAGING.fsl_part_number(+) = -431 SPEND_STAGING.MTRL_ID_1280;
Error report:
SQL error: ORA-01031: insufficient privileges
01031 00000 - "insufficient privileges".
* Cause: An attempt was made to change the user name or password
without the privilege appropriate. This error also occurs if
trying to install a database without the need for employment
access privileges.
When Trusted Oracle is configure in DBMS MAC, this error may occur
If the user has been granted the privilege necessary for a higher label
that the connection is active.
* Action: Ask the database to perform the operation or grant administrator
the required privileges.
For users Trusted Oracle get this error, well that granted the
the privilege that is suitable for the top label, ask the database
administrator to grant the privilege to the appropriate label.
Published by: Snyds on May 24, 2012 07:46The text associated with the error number is certainly misleading.
It simply means that you have not had the privilege to do something.
Is validate_number in the same pattern when you create the view? If not, what
privileges that you have about this feature and how is it given? -
How to create the view in OBIEE
I have "table 1" with columns, Attr1, Attr2, action 1, measure 2.I need to create the view in the table repository Attr1, Measure1 and new attribute with values like a flag 3 'Y' in it. ". What will be the SQL code of the new view. Please provide the exact syntax for the view.
Thanks in advanceHi Hsekar,
You are right, it is called a SELECT type.
Regarding your second question I don't know what you mean. You are using an SQL Select statement in this area. The Alias of the columns must match the columns will place you in the RPD exactly. But in this process, you create a physical view DB object, so there is not need to name it. You just create the select statement that you would use to create a view and OBIEE refers to the statement.
If you have found the correct answer please give points!
Best regards
-Joe
-
Help to create the view - error: ORA-00955: name is already used by an existing object
Hello
I am trying to create the following view but sqlplus displays a message and point of view has not been created. I use 11g Express.
SQL > create view (client, f_pedido, total) orders as
2 (
3 select usr, date, sum (rising) as important
4 of
5 (
6 select lineas_any.usuario as usr, lineas_any.fecha_pedido as date, lineas_any.cantidad * as rising referencia.precio
7 of lineas_any
inner join 8
referencia 9
10 on lineas_any.referencia = referencia.codbarras
11 )
Group 12 by usr, date
13)
14 order by date asc, usr;
of lineas_any
*
ERROR on line 7:
ORA-00955: name is already used by an existing object
There are also descriptions of the two tables involved:
SQL > describe lineas_any
Name Null? Type
------------------------------------------------------ -----------------
USER NOT NULL VARCHAR2 (60)
FECHA_PEDIDO NOT NULL DATE
REFERENCIA NOT NULL VARCHAR2 (15)
AMOUNT NUMBER (2)
SQL > describe referencia
Name Null? Type
------------------------------------------------------ -----------------
CODBARRAS NOT NULL VARCHAR2 (15)
PRODUCT NOT NULL VARCHAR2 (50)
FORMATO NOT NULL VARCHAR2 (20)
SILTING NOT NULL VARCHAR2 (15)
PRECIO NOT NULL NUMBER (7.2)
STOCK NUMBER (5) NOT NULL
MIN_STOCK NOT NULL NUMBER (5)
MAX_STOCK NOT NULL NUMBER (5)
Please, could someone help me in this matter?
Thanks in advance.
Kind regards
It means that it is already an object named peridos. Question:
Select object_type from user_objects where object_name = 'PERIDOS;
to find out what type of object it is. Any chance you try to change the existing definition of peridos view? If so, use
CREATE or REPLACE view orders (customer, f_pedido, total) as...
SY.
-
Syntax to create the view with 2 inline tables
Hello
If I run this SQL, I can compile a view without error:
CREATE OR REPLACE FORCE VIEW APPS.XX_TEST ( period_name , ytd ) AS with tbl_data AS ( SELECT '1314-03:OCT' period_name, -100 YTD FROM DUAL UNION ALL SELECT '1314-03:OCT' period_name, -1250 YTD FROM DUAL UNION ALL SELECT '1314-03:OCT' period_name, 10922 YTD FROM DUAL UNION ALL SELECT '1314-02:SEP' period_name, -100 YTD FROM DUAL UNION ALL SELECT '1314-01:AUG' period_name, 0 YTD FROM DUAL UNION ALL SELECT '1314-00:OBL' period_name, 0 YTD FROM DUAL UNION ALL SELECT '1213-14:CBL' period_name, -350 YTD FROM DUAL UNION ALL SELECT '1213-13:ADJ' period_name, -350 YTD FROM DUAL UNION ALL SELECT '1213-12:JUL' period_name, -100 YTD FROM DUAL ) SELECT period_name , ytd FROM tbl_data;
I need to create a view that includes the 2 tables inline (sorry if this is the incorrect terminology), using this SQL:
CREATE OR REPLACE FORCE VIEW APPS.XX_TEST2 ( period_name , ytd ) AS with tbl_data AS ( SELECT '1314-03:OCT' period_name, -100 YTD FROM DUAL UNION ALL SELECT '1314-03:OCT' period_name, -1250 YTD FROM DUAL UNION ALL SELECT '1314-03:OCT' period_name, 10922 YTD FROM DUAL UNION ALL SELECT '1314-02:SEP' period_name, -100 YTD FROM DUAL UNION ALL SELECT '1314-01:AUG' period_name, 0 YTD FROM DUAL UNION ALL SELECT '1314-00:OBL' period_name, 0 YTD FROM DUAL UNION ALL SELECT '1213-14:CBL' period_name, -350 YTD FROM DUAL UNION ALL SELECT '1213-13:ADJ' period_name, -350 YTD FROM DUAL UNION ALL SELECT '1213-12:JUL' period_name, -100 YTD FROM DUAL ), got_analytics AS ( SELECT period_name, ytd, ROW_NUMBER () OVER (ORDER BY period_name) AS a_num, ROW_NUMBER () OVER (ORDER BY period_name DESC) AS d_num, FIRST_VALUE (ytd) OVER (ORDER BY period_name) - FIRST_VALUE (ytd) OVER (ORDER BY period_name DESC) AS dif FROM tbl_data ) SELECT * FROM got_analytics;
I get this message:
ORA-24344: success with compilation error
There are no other errors but to provide additional information. I am using TOAD.
I was wondering if it is not possible to create a view in this way, or if I'm missing something?
I had a peek here:
ORA-24344: success with Compilation error
I'm using TOAD, trying to SHOW the ERRORS immediately after the code above only returned 'No Errors'.
I also looked here:
ORA-24344: success with compilation error
Ran the same code SQL/Plus, but "Show Errors" or "see the err" also returned "No. Errors."
Any advice would be much appreciated.
Thank you very much.
Hello
Try this
CREATE OR REPLACE FORCE VIEW APPS.XX_TEST2 ( period_name , ytd , a_num -- because you select * you need all rows , d_num , dif ) AS ...
concerning
Kay -
How to create the View object with several editable entity objects
I want the two entities in the view object to support the creation of new lines, but when I give create insert that it allows to insert only on the parent and not the child. I found this link
http://docs.Oracle.com/CD/E21043_01/Web.1111/b31974/bcadvvo.htm#CEGCAJCI which replaces the outgoing class. but I would like to do declarative. Is there another way to do it?
I use Jdeveloper 11g 2 version.
Thanks in advance,
RakeshHello
There is a checkbox in the tab "Updatable" entity objects, mark it checked and look in your vo
Then, you can create the ViewObject also editable attribute
Make sure that the Association is here.Rognard
-
Create the view with the dynamic from clause
Hi all
you might have some ideas to help me out of my problem I just "created myself" ;-)
I have an unknown quantity and not constant of the tables using the same structure of the table and I have a main table
that contains all the names of these table types. Now, I want to create a unique view that contains all the columns in each table
and an extra column name containing the name of the corresponding table.
I found a solution for this but only if I knew that all the table names while creating my view.
Here is what I currently have:
master_table:
TABLENAME ID
1 table_01
2 table_02
table_01:
ID NAME
1 eins
zwei 2
drei 3
table_02:
ID NAME
1 a
2 two
3 three
I think 'tab1tab2' on these 2 table looks like this:
ID NAME TABLENAME
1 table_01 eins
2 zwei table_01
3 drei table_01
1 a table_02
2 two table_02
3 three table_02
I have reached this point of view with:
CREATE OR REPLACE VIEW TAB1TAB2 ('ID', 'NAME', 'TABLENAME')
AS
SELECT id, name, 'table_01' AS table_01 FROM tablename
UNION
SELECT id, name, 'table_02' AS tablename FROM table_02;
Is it possible to create as many select statements and union that I entered (tablenames) into my master_table to achieve the same results as my opinion hard?
Thank you very much in advance for your help
Best regards
Majocreate or replace view v_alltables
Select * from v_all;These two statement contradict each other in some way, Don't they?
path ID number name 'id', varchar2 (20) 'name' of the path) x;
the column names are case sensitive - try
id number path 'ID' , name varchar2(20) path 'NAME' ) x;
assuming that the names of the columns are named like that.
-
Create the view using SQL DEVELOPER
I'm new to this forum :)
11 GR 2, WIN2008 R2
SQL Developer Version 3.2.09
I am creating the data below view (view existing)
Table: Dovmarker
I try to describe the table and my goal :),MARKERBOREHOLE UWI MARKERSURFACE Z WELLXXX 65372643AAAA Cw -982,985619574516 WELLXXX 65372643AAAA Cn -1891,47401803955 WELLXXX 65372643AAAA J -674,989528816517 WELLXXX 65372643AAAA K3 20,00165000429 WELLXXX 65372643AAAA Tr 125,000317308153 WELLXXX 65372643AAAA K1 -658,989731894024 WELLXXX 65372643AAAA Q 149,999999999549 WELLYYY 56618334AAAA Jkm -715,071442105268 WELLYYY 56618334AAAA K3 36,9013966413975 WELLYYY 56618334AAAA J2 -976,056079257549 WELLYYY 56618334AAAA Tr 106,900507694299
each line describes wells, uwi(uniqe identifier), z (deppth), high (surface marker)
I try to merge all lines with the same MARKERBOREHOLE/UWI and MARKERSURFACE contact coresponding Z (ascending) as MARKERSURFACE = Z.
If it is posibble to reduce the number of decimals to 2.
My idea to solve the problem:
example: ' | ' is the delimiter
or better (not enough knowledge ;))WELLXXX Q=149,999999999549 | Tr=125,000317308153 | K3=20,00165000429 | K1=-658,989731894024 | J =-674,989528816517 | Cw=-982,985619574516 | Cn=-1891,47401803955 WELLYYY Tr=106,900507694299 | K3=36,9013966413975 | Jkm=-715,071442105268 | J2=-976,056079257549
Number of markersurface is different for each wellWELLXXX Q=149,999999999549 Tr=125,000317308153 K3=20,00165000429 K1=-658,989731894024 J =-674,989528816517 Cw=-982,985619574516 Cn=-1891,47401803955 WELLYYY Tr=106,900507694299 K3=36,9013966413975 Jkm=-715,071442105268 J2=-976,056079257549
I try to do it by the listagg function, but I have failled
result:select markerborehole, listagg(z, ' | ') within group (order by z) as new1 from dovmarker group by markerborehole;
When I tried to create new view in sql developer I occurred error;WELLZZZ -2575,95869465411 | -1891,47401803955 | -982,985619574516 | -674,989528816517 | -658,989731894024 | WELLRRR -2376,96975480605 | -2376,96975480605 | -2308,97180590009 | -2308,97180590009 | -2206,47428534641 | -2206,47428534641 | -2163,97522524171
Can you help me with this?Error(s) parsing SQL: unexpected token near *!* in the following: select markerborehole, listagg(z, ' | ') within *!*group (order by z) as new1 unexpected token near *!* in the following: select markerborehole, listagg(z, ' | ') within group *!*(order by z) as new1 missing expression near *!* in the following: select markerborehole, listagg(z, ' | ') within group (*!*order by z) as new1
Concerning
Jaroslaw961148 wrote:
I missed xWell Yes, my apologies, I has not changed all that.
It's a simple way to format the Z value to 2 decimal places?
Yes. It depends on if you want to use rounded, floor, ceiling, truncate or if you like a string always have 2 decimal places etc.
Make your choice and customize according to your needs...SQL> ed Wrote file afiedt.buf 1 with t as (select 'WELLXXX' as MARKERBOREHOLE, '65372643AAAA' as UWI, 'Cw' as MARKERSURFACE, -982.985619574516 as Z from dual union all 2 select 'WELLXXX', '65372643AAAA', 'Cn', -1891.47401803955 from dual union all 3 select 'WELLXXX', '65372643AAAA', 'J', -674.989528816517 from dual union all 4 select 'WELLXXX', '65372643AAAA', 'K3', 20.00165000429 from dual union all 5 select 'WELLXXX', '65372643AAAA', 'Tr', 125.000317308153 from dual union all 6 select 'WELLXXX', '65372643AAAA', 'K1', -658.989731894024 from dual union all 7 select 'WELLXXX', '65372643AAAA', 'Q', 149.999999999549 from dual union all 8 select 'WELLYYY', '56618334AAAA', 'Jkm', -715.071442105268 from dual union all 9 select 'WELLYYY', '56618334AAAA', 'K3', 36.9013966413975 from dual union all 10 select 'WELLYYY', '56618334AAAA', 'J2', -976.056079257549 from dual union all 11 select 'WELLYYY', '56618334AAAA', 'Tr', 106.900507694299 from dual) 12 -- 13 -- END OF TEST DATA - IGNORE ABOVE WITH CLAUSE 14 -- 15 select z 16 ,round(z,2) as round_z_2 17 ,floor(z*100)/100 as floor_z_2 18 ,ceil(z*100)/100 as ceil_z_2 19 ,trunc(z,2) as trunc_z_2 20 ,to_char(round(z,2),'fm9990.00') as string_z_2 21* from t SQL> / Z ROUND_Z_2 FLOOR_Z_2 CEIL_Z_2 TRUNC_Z_2 STRING_Z ------------------- ---------- ---------- ---------- ---------- -------- -982.9856195745160 -982.99 -982.99 -982.98 -982.98 -982.99 -1891.4740180395500 -1891.47 -1891.48 -1891.47 -1891.47 -1891.47 -674.9895288165170 -674.99 -674.99 -674.98 -674.98 -674.99 20.0016500042900 20 20 20.01 20 20.00 125.0003173081530 125 125 125.01 125 125.00 -658.9897318940240 -658.99 -658.99 -658.98 -658.98 -658.99 149.9999999995490 150 149.99 150 149.99 150.00 -715.0714421052680 -715.07 -715.08 -715.07 -715.07 -715.07 36.9013966413975 36.9 36.9 36.91 36.9 36.90 -976.0560792575490 -976.06 -976.06 -976.05 -976.05 -976.06 106.9005076942990 106.9 106.9 106.91 106.9 106.90 11 rows selected.
with above code I try to create a new view in SQL Developer, but I have error:
Error(s) parsing SQL: Unexpected token near *!* in the following: select markerborehole, listagg(z,chr(10)) within *!*group(order by rn) as z Unexpected token near *!* in the following: select markerborehole, listagg(z,chr(10)) within group*!*(order by rn) as z Missing expression near *!* in the following: select markerborehole, listagg(z,chr(10)) within group(*!*order by rn) as z
What are all the {noformat}! * * {noformat} in the code? Delete them.
Edit: or maybe your version of SQL Developer is not up-to-date and does not know the new LISTAGG function in 11g?
Published by: BluShadow on 26-Sep-2012 09:41
-
Create the view with the Unique ID column
I need to create a view.
The view is created using unions on 4 tables.
The problem is that I need to create a unique id column in the view that I use in an Oracle Apex application and need to drill down to each line.
Any help appreciated
GusYou cannot use oracle sequences directly in the query that is connected with other queries using Union or INTERSECT or less cluses.
Other cases where you cannot use a sequence are:
-In a WHERE clause
-In a GROUP BY or ORDER BY clause
-In a SEPARATE clause
-Along with a UNION or INTERSECT or LESS
-In a subqueryIn order to better you will love
Select seqname.nextval, col1, col2
Of
(
Union
..
..
)as mentioned in one of the previous answer by the other members of the community...
Alternatively, you can use rownum speed of sequence to a unique number as below examle:
Select rownum, col1, col2
Of
(
Union
..
..
)Kind regards
Lifexisxnotxsoxbeautiful... -
Help on creating the view to the oracle10g@redhat4 platform
Hello
I tried to create a view for a table that is specified at the client level Oracle10g that I previously installed on a platform of linux redhat4.
If anyone can guide me how to do this.
It is to show some nsuffisante privillage
So how do I solve this problemMore details needed...
For the syntax.
Create View view-name as Select...
EG-
CREATE VIEW view_emp
AS
SELECT EmpID FROM emp; -
create the view of several tables of days
Hello
I'll have existing oracle db with the daily stat data, tables strangely named data_mon, data_tue, data_wed... For my batch that I intend to use the view with multiple day data, let say for the last 5 days.
Do not know how better to implement my sql with these suffixes _mon statement to make it more or less dynamic.
I create also ever seen from several tables, then, probably, that I can do something that will add daily updated data and remove data from 5 days?
You will appreciate comments on the details and the whole concept. I have prev sql server experience.
Thank you
Tuser12943718 wrote:
Hello
I'll have existing oracle db with the daily stat data, tables strangely named data_mon, data_tue, data_wed... For my batch that I intend to use the view with multiple day data, let say for the last 5 days.
Do not know how better to implement my sql with these suffixes _mon statement to make it more or less dynamic.
I create also ever seen from several tables, then, probably, that I can do something that will add daily updated data and remove data from 5 days?You will appreciate comments on the details and the whole concept. I have prev sql server experience.
Thank you
TChange the data model if you have 1 table for a day.
You have just a DATA table and a column to indicate the day of the application.
Then you don't need a view, do not need anything dynamic, do not need to break your head against a wall for a simple query... etc.
-
Create the view with the CLOB of TABLE data type with the LONG data type
Please need support to create the table view
Source table: (itemid varchar2, longrec)
need to create the table view Source
(itemid varchar2, CLOBrec)A BUSINESS object must have a storage in the database, so you can't have a CLOB column in a view by pointing to a not lob data column.
Max
[My Italian blog Oracle | http://oracleitalia.wordpress.com/2010/01/17/supporto-di-xml-schema-in-oracle-xmldb/] -
Cannot create the logical drive on Windows 7, only dynamic
I have a Lenovo X 230, Windows 7 Professional 64 - bit Thinkpad. I have an another just like her, only a year older. The new machine doesn't let me set up a logical drive. The choice of unique menu in the computer/disk management applet is for dynamic disks. Is it a 'new '? I have added logical drives to hundreds of PCs in the past, including the last years X220T, with the 'same' hardware/software. Technical support Lenovo says its "out of reach" and ways of Microsoft it is a seller to deliver. I can still send the machine back for a refund or Exchange, but I get the feeling that I can have the same problem/question again. The hard drive is a SSD drive (as it was the last years). Knowledge or ideas on this subject? Thank you.
If your drive already has 4 "Primary" partitions it is the reason why you cannot create any logical pilot.
I think that using "Disk Managment", you will see at least a small partition 'System', 'Windows', a "recovery" partition and the 4th could be a 'Diagnostic' or another partition (hidden service partition).
User Guide: http://www.lenovo.com/shop/americas/content/user_guides/X230_ug_en.pdf
J W Stuart: http://www.pagestart.com
-
Customization of the KM to create the view on the target
Hi all.
I need to work with DBLinks in my project. But I do not have the rights to create something in my sources. So, I took the LKM Oracle (Oracle DBLINK), duplicate and began to change.
All orders executed on the source, I changed to run it on the target (scheme of work). I created an option called DBLINK_NAME to receive my DBLINK.
The code is the following:
create or replace view < %=odiRef.getObjectNameDefaultPSchema ("L", "", "W") % > < % = odiRef.getInfo ("COLL_NAME") % >
(
< % = odiRef.getColList ("", "[CX_COL_NAME]", "\n\tclick", "", "") % >
)
in select < % = odiRef.getPop("DISTINCT_ROWS") % >
< % = odiRef.getColList ("", "[PHRASE]", "\n\tclick", "", "") % >
from < % = odiRef.getSrcTablesList () % > < % = odiRef.getOption("DBLINK_NAME") % >
where (1 = 1)
< % = odiRef.getFilter () % >
< % = odiRef.getJrnFilter () % >
< % = odiRef.getJoin () % >
< % = odiRef.getGrpBy () % >
< % = odiRef.getHaving () % >
But the OdiRef.GetFrom () returns the following result set:
OWNER. DATASTORE_ALIAS DATA STORE
And when it runs the command, I got the following code:
SYSFID. TABLE_CARDS T1@DBLINK_DEV
And I need to return the owner.datastore without the alias:
SYSFID. TABLE_CARDS@DBLINK_DEV
Also, I need for my @DBLINK_NAME for each table that is used as a source of concatenate.
I need help on this, urgent.
Kind regards.
Luiz Araujo (aka Buchu_VP)For the alias, use:
SELECT '< %="odiRef.getSrcTablesList" ("",="" "[schéma].="" [="" res_name]"\+odiref.getoption="" ("dblink_name")="" \="" +="" « [pop_tab_alias] »,="" «, », » »)="" %="" >="" '="">
Cezar Santos
http://odiexperts.com
Maybe you are looking for
-
Apple Watch to a bluetooth speaker matching
How to pair you an Apple Watch to a Bluetooth speaker?
-
Hello I'm using Labview 8.5 to work. As you may already know, versions 8.6 prior have a 3D sensor mapping feature, which can help a lot with the development of a project. However, I need to explain how it works in order to have authorized a purchase
-
Is short boot fail reason (error 1000-0146) Office of glitter and high cpu?
Dell inspiron 6000. Windows xp professional sp 3. Three weeks ago, my computer started loud beep on startup and sparkle of the desktop icons. The touchpad has stopped working for a while, but most of the time which is fixed. I installed malwarebytes'
-
Get an error message when you try to download templates in Word 2007__
Word 2007
-
I use license-free music in my Captivate 8 e-learning module. My question is: should I do a music folder to import this file is-, or audio from it enough to import into Captivate 8 library? In other words, 8 Captivate will look for the external audio