Function pivot and Missing expression error

Select * from)
Select T.PAT_MRN_ID, T.ABBREVIATION, TBL_WORKLFOw CONCEPT_VALUE T
)
Pivot
(
Max (concept_value)
abbreviation (select short for TBL_WORKLFOW)
)

This request is to launch "missing expression"... error.

Can anyone help to understand the problem.

Hello

Sorry, it does not work.
You can only use a subquery in the pivot IN clause if you say ' PIVOT * XML *...» »
You must use dynamic SQL statements to get no XML output for all values, if you can't hardcode in the query.

Tags: Database

Similar Questions

  • SQL Loader Missing expression error.

    Hi guru

    I'm updating data from csv to database table. Here I am attaching my control file and log file... you can help resolve the following error message.

    Control file:
    LOAD DATA 
    INFILE 'C:\Users\bura.sami\Documents\MSBLive Oracle Objects.csv' 
    BADFILE 'C:\Users\bura.sami\Documents\MSBLive Oracle Objects.bad'
    DISCARDFILE 'C:\Users\bura.sami\Documents\MSBLive Oracle Objects.dsc'
    
    INTO TABLE MSBLIVE_OBJECTS
    INSERT
    FIELDS TERMINATED BY ","
    optionally enclosed by '"'
    trailing nullcols
      (
      INDEX_NAME CHAR "trim(Index)",
      TABLE_NAME CHAR "trim(Table)",
      VIEW_NAME  CHAR "trim(View)",
      TRIGGER_NAME  CHAR "trim(Trigger)",
      SEQUENCE_NAME  CHAR "trim(Sequence)",
      PROCEDURE_NAME  CHAR "trim(Procedure)",
    PACKAGE_NAME  CHAR "trim(Package)",
    PACKAGE_OBJECT  CHAR "trim(Package Body)", 
       FUNCTION_NAME  CHAR "trim(Function)"
    )
    
    {code}
    
    *Error log:*
    
    {code}
    
    SQL*Loader: Release 10.2.0.1.0 - Production on Wed Nov 24 14:31:05 2010
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Control File:   simple_load.ctl
    Data File:      C:\Users\bura.sami\Documents\MSBLive Oracle Objects.csv
      Bad File:     C:\Users\bura.sami\Documents\MSBLive Oracle Objects.bad
      Discard File: C:\Users\bura.sami\Documents\MSBLive Oracle Objects.dsc 
     (Allow all discards)
    
    Number to load: ALL
    Number to skip: 0
    Errors allowed: 50
    Bind array:     64 rows, maximum of 256000 bytes
    Continuation:    none specified
    Path used:      Conventional
    
    Table MSBLIVE_OBJECTS, loaded from every logical record.
    Insert option in effect for this table: INSERT
    TRAILING NULLCOLS option in effect
    
       Column Name                  Position   Len  Term Encl Datatype
    ------------------------------ ---------- ----- ---- ---- ---------------------
    INDEX_NAME                          FIRST     *   ,  O(") CHARACTER            
        SQL string for column : "trim(Index)"
    TABLE_NAME                           NEXT     *   ,  O(") CHARACTER            
        SQL string for column : "trim(Table)"
    VIEW_NAME                            NEXT     *   ,  O(") CHARACTER            
        SQL string for column : "trim(View)"
    TRIGGER_NAME                         NEXT     *   ,  O(") CHARACTER            
        SQL string for column : "trim(Trigger)"
    SEQUENCE_NAME                        NEXT     *   ,  O(") CHARACTER            
        SQL string for column : "trim(Sequence)"
    PROCEDURE_NAME                       NEXT     *   ,  O(") CHARACTER            
        SQL string for column : "trim(Procedure)"
    PACKAGE_NAME                         NEXT     *   ,  O(") CHARACTER            
        SQL string for column : "trim(Package)"
    PACKAGE_OBJECT                       NEXT     *   ,  O(") CHARACTER            
        SQL string for column : "trim(Package Body)"
    FUNCTION_NAME                        NEXT     *   ,  O(") CHARACTER            
        SQL string for column : "trim(Function)"
    
    Record 1: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 2: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 3: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 4: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 5: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 6: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 7: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 8: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 9: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 10: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 11: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 12: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 13: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 14: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 15: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 16: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 17: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 18: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 19: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 20: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 21: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 22: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 23: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 24: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 25: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 26: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 27: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 28: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 29: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 30: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 31: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 32: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 33: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 34: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 35: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 36: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 37: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 38: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 39: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 40: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 41: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 42: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 43: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 44: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 45: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 46: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 47: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 48: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 49: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 50: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    Record 51: Rejected - Error on table MSBLIVE_OBJECTS, column INDEX_NAME.
    ORA-00936: missing expression
    
    
    MAXIMUM ERROR COUNT EXCEEDED - Above statistics reflect partial run.
    
    Table MSBLIVE_OBJECTS:
      0 Rows successfully loaded.
      51 Rows not loaded due to data errors.
      0 Rows not loaded because all WHEN clauses were failed.
      0 Rows not loaded because all fields were null.
    
    
    Space allocated for bind array:                 148608 bytes(64 rows)
    Read   buffer bytes: 1048576
    
    Total logical records skipped:          0
    Total logical records read:            64
    Total logical records rejected:        51
    Total logical records discarded:        0
    
    Run began on Wed Nov 24 14:31:05 2010
    Run ended on Wed Nov 24 14:31:34 2010
    
    Elapsed time was:     00:00:29.71
    CPU time was:         00:00:00.03
    Thanks and greetings
    Saami

    Hello

    You can set your syntax for all areas (example here for only one field):

    INDEX_NAME CHAR "trim(:INDEX_NAME)",
    

    You can only refer to the names used as domain names.

    Herald tiomela
    http://htendam.WordPress.com

  • QOSMIO G40-114 and "PCI Express error"

    My G40-114 QOSMIOI worked perfectly until yesterday.

    I now have a black screen with the message "PCI Express error" at startup. Screen is frozen, can't do anything.
    What is the origin of this problem? (I searched the Web and looks like it has something to do with the motherboard...).

    Is that what I can do by myself?

    You can start your Qosmio laptop in SafeMode (F8 at startup)?

  • The missing Expression error.

    Hi friends.

    I have a table called ACCESS_FORECAST.

    The structure of the table is like this


    I am trying to ask this but absent expression error is coming. Can anyone tell where my application is false.



    Concerning

    User_Apex wrote:

    SELECT CFPART_NUMBER ITEM_NUMBER,sum(CFMONTH1+CFMONTH2+CFMONTH3+CFMONTH4+CFMONTH5+CFMONTH6) QUANTITY
    FROM ACCESS_FORECAST
    where day_number = select max(day_number) from ACCESS_FORECAST
    GROUP BY CFPART_NUMBER ;
    

    You will need to put brackets where condition:

    where day_number = (select max(day_number) from ACCESS_FORECAST)
    
  • Reduced functionality mode and get an error when you try to activate.

    I've been using that copy of vista for several years with no problems, and one day I went to connect and got 3, non-genuine screen option. I did not the hardware changes recently. When I select enter the activation code and enter my product key, I get an error 0xc004e003, which when I looked upward means that "the product key you have entered is correct, but you should try to enter again to activate windows vista again", however I have tried several times without success. the next option it gives me is an activation of the phone, but which means to go to the start menu and my version of 'reduced functionality I cannot do.

    Here is the copy of the MGADiag results;

    Diagnostic report (1.9.0027.0):
    -----------------------------------------
    Validation of Windows data-->
    Validation status: invalid license
    Validation code: 50
    Code of Validation caching online: 0xc004c4a8
    Windows product key: *-* - F4GJK - KG77H-B9HD2
    The Windows Product Key hash: iJAth4TbScMi8HdcPurlASXdEkw =
    Windows product ID: 89578-OEM-7332157-00204
    Windows product ID type: 2
    Windows license Type: OEM SLP
    The Windows OS version: 6.0.6000.2.00010300.0.0.003
    ID: {64883F4B-8A07-4B6F-9EED-EBD253308181} (3)
    Admin: Yes
    TestCab: 0x0
    LegitcheckControl ActiveX: Registered, 1.9.42.0
    Signed by: Microsoft
    Product name: Windows Vista (TM) Home Premium
    Architecture: 0x00000000
    Build lab: 6000.vista_gdr.100218 - 0019
    TTS error:
    Validation of diagnosis:
    Resolution state: n/a

    Given Vista WgaER-->
    ThreatID (s): n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002

    Windows XP Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    File: No.
    Version: N/a, hr = 0 x 80070002
    WgaTray.exe signed by: n/a, hr = 0 x 80070002
    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->
    Cached result: n/a, hr = 0 x 80070002
    Version: N/a, hr = 0 x 80070002
    OGAExec.exe signed by: n/a, hr = 0 x 80070002
    OGAAddin.dll signed by: n/a, hr = 0 x 80070002

    OGA data-->
    Office status: 109 n/a
    OGA Version: N/a, 0 x 80070002
    Signed by: n/a, hr = 0 x 80070002
    Office Diagnostics: 025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3

    Data browser-->
    Proxy settings: N/A
    User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Win32)
    Default browser: C:\Program may Explorer\iexplore.exe
    Download signed ActiveX controls: fast
    Download unsigned ActiveX controls: disabled
    Run ActiveX controls and plug-ins: allowed
    Initialize and script ActiveX controls not marked as safe: disabled
    Allow the Internet Explorer Webbrowser control scripts: disabled
    Active scripting: allowed
    Recognized ActiveX controls safe for scripting: allowed

    Analysis of file data-->

    Other data-->
    Office details: {64883F4B-8A07-4B6F-9EED-EBD253308181}1.9.0027.06.0.6000.2.00010300.0.0.003x 32*-*-*-*-B9HD289578-OEM-7332157-002042S-1-5-21-1157273820-2535089336-85971103the system manufacturer,System Product NamePhoenix Technologies, LTDASUS M2N-E ACPI BIOS Revision 020520060630000000.000000 + 000D3323507018400F604090409Eastern Standard Time(GMT-05:00)03109

    Content Spsys.log: 0 x 80070002

    License data-->
    The software licensing service version: 6.0.6000.16509
    Name: Windows Vista, HomePremium edition
    Description: operating system Windows - Vista, channel OEM_SLP
    Activation ID: bffdc375-bbd5-499d-8ef1-4f37b61c895f
    ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f
    Extended PID: 89578-00146-321-500204-02-1033-6000.0000-2852010
    Installation ID: 003966557290823151374274536350606961056713316843011623
    Processor certificate URL: http://go.microsoft.com/fwlink/?LinkId=57201
    Machine certificate URL: http://go.microsoft.com/fwlink/?LinkId=57203
    Use license URL: http://go.microsoft.com/fwlink/?LinkId=57205
    Product key certificate URL: http://go.microsoft.com/fwlink/?LinkId=57204
    Partial product key: B9HD2
    License status: unlicensed

    Windows Activation Technologies-->
    N/A

    --> HWID data
    Current HWID of Hash: NgAAAAEAAgABAAIAAgABAAAAAwABAAEAJJSWslRT7ESSAOR/zvMIRjJK8vRiG6bmpIqsVl49

    Activation 1.0 data OEM-->
    N/A

    Activation 2.0 data OEM-->
    BIOS valid for OA 2.0: Yes, but no SLIC table
    Windows marker version: N/A
    OEMID and OEMTableID consistent: n/a
    BIOS information:
    ACPI Table name OEMID value OEMTableID value
    APIC Nvidia AWRDACPI
    Nvidia AWRDACPI FACP
    MCFG Nvidia AWRDACPI

    http://www.TweakVista.com/articles/39153/recover_from_reduced_functionality_mode/

  • Missing expression error when cases is used as field

    I tried to write an expression that calculates how many days ago a request and return a value defined by the user if the calculation falls under the criteria in the case statement. The SQL view for the query I use is shown below:
    SELECT A.F_POSN_REQUEST_ID, A.F_REQ_ECP_STATUS, TO_CHAR(A.REQUEST_DTTM,'YYYY-MM-DD-HH24.MI.SS."000000"'), TO_CHAR(A.F_REQ_ST_DT,'YYYY-MM-DD-HH24.MI.SS."000000"'), TO_CHAR(A.F_REQ_ECP_ST_DT,'YYYY-MM-DD-HH24.MI.SS."000000"'), TO_CHAR(A.F_REQ_ECP_PROC_DT,'YYYY-MM-DD-HH24.MI.SS."000000"'), CASE WHEN(sysdate - TO_DATE(SUBSTR( TO_CHAR(A.F_REQ_ST_DT,'YYYY-MM-DD-HH24.MI.SS."000000"'),1,16),'YYYY-MM-DD-HH24.MI'))>60 THEN '>60' ELSE(CASE WHEN(sysdate - TO_DATE(SUBSTR( TO_CHAR(A.F_REQ_ST_DT,'YYYY-MM-DD-HH24.MI.SS."000000"'),1,16),'YYYY-MM-DD-HH24.MI')) >30 AND <=60 THEN '30 - 60' ELSE(CASE WHEN(sysdate - TO_DATE(SUBSTR( TO_CHAR(A.F_REQ_ST_DT,'YYYY-MM-DD-HH24.MI.SS."000000"'),1,16),'YYYY-MM-DD-HH24.MI'))>=15 AND <=30 THEN '15 - 30' ELSE(CASE WHEN(sysdate - TO_DATE(SUBSTR( TO_CHAR(A.F_REQ_ST_DT,'YYYY-MM-DD-HH24.MI.SS."000000"'),1,16),'YYYY-MM-DD-HH24.MI'))<15 THEN 'Less Than 15' ELSE NULL END)END)END)END)) 
      FROM PS_F_POSN_REQUEST A 
      WHERE A.F_REQ_ECP_STATUS IN ('I','O','P') 
      GROUP BY  A.F_POSN_REQUEST_ID,  A.F_REQ_ECP_STATUS,  TO_CHAR(A.REQUEST_DTTM,'YYYY-MM-DD-HH24.MI.SS."000000"'),  TO_CHAR(A.F_REQ_ST_DT,'YYYY-MM-DD-HH24.MI.SS."000000"'),  TO_CHAR(A.F_REQ_ECP_ST_DT,'YYYY-MM-DD-HH24.MI.SS."000000"'),  TO_CHAR(A.F_REQ_ECP_PROC_DT,'YYYY-MM-DD-HH24.MI.SS."000000"')
    When I try to execute the query I get Message = ORA-00936: lack of expression (50 380)

    Any suggestions you could provide to help me clarify this error would be greatly appreciated.

    Published by: 992737 on March 8, 2013 09:07

    Hi, Peter,.

    Peter Gjelstrup wrote:
    ... OR

    select something,
    case your_expression
           when > 60
    then '>60'
           when > 30
    then '>30'
           when > 10
    then '>10'
    .
    etc.
    end
    something_else
    

    It really works when try you it?

    A CASE of Simple Expression (where you have an expression just after the CASE keyword and before the first WHEN) only check for equality. To use the inequality operators (such as >) you must use an Expression looked for CASES , such as

    CASE
       WHEN  exp > 60  THEN ...
       WHEN  exp > 30  THEN ...
    

    Repeat the expression exp each time.

  • Insert the missing expression error

    I am trying to insert data into sql plus, and I get this error message. I am new to this and have no idea what I'm doing wrong. Could someone please!
    Here is the table that I am inserting:
    Name Null? Type
    ----------------------------------------- -------- ----------------------------
    MANUFACTURER_ID NOT NULL NUMBER
    M_NAME VARCHAR2 (30)
    STREET VARCHAR2 (30)
    CITY VARCHAR2 (30)
    VARCHAR2 (20) STATE
    COUNTRY VARCHAR2 (30)
    WEBSITE VARCHAR2 (50)
    E-MAIL VARCHAR2 (50)
    FAX VARCHAR2 (15)

    I insert these values:

    SQL > insert into manufacturer values (9185247, rollinsonlightsportaircraft, route2box186, bloomfield_in_47424, in, US, 'www.eurofox-use.com', '[email protected]', 8123840518);
    insert into the reference values of the manufacturer (9185247, rollinsonlightsportaircraft, route2box186, bloomfield_in_47424, in, US, 'www.eurofox-use.com', '[email protected]', 8123840518)
    *
    ERROR on line 1:
    ORA-00936: lack of expression

    I worked on it forever and I'm just not getting it. Help, please!

    Try this:

    Insert in the reference values of the manufacturer (9185247, 'rollinsonlightsportaircraft', 'route2box186', 'bloomfield_in_47424', 'In', 'US', 'www.eurofox-use.com', '[email protected]', 8123840518)

    you pass the string values in this INSERT without putting the strings in single quotes. This is why you are getting the error. Values for all of the VARCHAR2 columns should be placed in single quotes.

  • Listagg function gives ORA-00979: not a GROUP BY expression error

    Hello

    I have an environment that supports the Listagg function. Suite works perfectly:

    Select task_code, LISTAGG(ename||) e ('| role |') (',',') WITHIN GROUP (ORDER BY ename) as employees

    team

    where task_code = '01.07.05'

    Task_code group

    However, this is just a test request, the real is a little wider and I can't get the function works, I get ORA-00979: not a GROUP BY expression error.

    Here's my query (the column names are in Dutch, but that shouldn't really be a problem):

    SELECT distinct op_sod.sod_code, op_sod.sod_omschr_lang, op_ood.ood_code, op_ood.ood_omschr_lang, op_activiteit.act_code, op_activiteit.act_omschr_lang, op_taak.taak_code, op_taak.taak_omschr_lang, op_afdeling___master.afd_code, op_taak.belmo, op_taak_j.planning_la,

    LISTAGG (op_ploeg.wn_naam |) ' ('| op_ploeg.rol |') (',',') WITHIN GROUP (ORDER BY op_ploeg.wn_naam) as employees.

    "Write subtaak/mijlpaal toe."

    op_teamplanning.subtaak_mijlpaal as subtaak_of_mijlpaal,

    op_teamplanning.subtaak_omschr | -case when op_teamplanning.subtaak_mijlpaal = 'BELMO Mijlpaal' then ' (BRUNO mijlpaalnr: ' | nvl (op_teamplanning.nummer, 0) |) ')' other ' ' end

    as subtaak_mijlpaal_omschrijving, op_teamplanning.deadline as date limit, op_teamplanning.status as status,

    trim (both

    case when op_teamplanning.vlag1 = 'Geen' and op_teamplanning.vlag2 = 'Geen' and op_teamplanning.vlag3 = 'Geen' and op_teamplanning.vlag4 = 'Geen'

    and op_teamplanning.vlag5 = 'Geen' or op_teamplanning.vlag1 is null and op_teamplanning.vlag2 is null and op_teamplanning.vlag3 is null

    op_teamplanning.vlag5 is null and op_teamplanning.vlag4 is null then 'Geen '.

    Another pad (both case when op_teamplanning.vlag1 = 'Geen' then "else trim (both from op_teamplanning.vlag1) end) |

    trim (both case when op_teamplanning.vlag2 = 'Geen' then "another ',' | trim (both from op_teamplanning.vlag2) end) |

    trim (both case when op_teamplanning.vlag3 = 'Geen' then "another ',' | trim (both from op_teamplanning.vlag3) end) |

    trim (both case when op_teamplanning.vlag4 = 'Geen' then "another ',' | trim (both from op_teamplanning.vlag4) end) |

    trim (both case when op_teamplanning.vlag5 = 'Geen' then "another ',' | trim (both from op_teamplanning.vlag5) end) end) as Beleidsvlaggen,

    op_teamplanning.naam_verantw as quotation, op_teamplanning.subtaak_id as subtaak_id, nvl (op_teamplanning.nummer, 0) as Nummer, nvl (op_teamplanning.regelgevingsagenda, 'Nee') as

    Regelgeving, op_teamplan_subsubtaak.subsubtaak_submijlpaal as subsubtaak_submijlpaal, op_teamplan_subsubtaak.subsubtaak_id as subsubtaak_id, op_teamplan_subsubtaak.subsubtaak_omschr

    like subsubtaak_omschr, op_teamplan_subsubtaak.deadline, sub_deadline, op_teamplan_subsubtaak.status as sub_status, op_teamplan_subsubtaak.naam_verantw as naam_verantw

    Of...

    WHERE THE...

    Group of op_sod.sod_code, op_sod.sod_omschr_lang, op_ood.ood_code, op_ood.ood_omschr_lang, op_activiteit.act_code, op_activiteit.act_omschr_lang, op_taak.taak_code, op_taak.taak_omschr_lang, op_afdeling___master.afd_code, op_taak.belmo, op_taak_j.planning_la


    Can someone tell me the reason for this error?

    Thanks in advance!

    Kind regards

    NDG

    NDG123 wrote:

    I don't really understand your other question:

    Is below for example, a group of expression?

    op_teamplanning.subtaak_mijlpaal

    After some additional research:

    The group by mistake is not appear anymore when I delete all fields after the listagg field, that might be a clue to the solution.

    It is not difficult to understand. You can have other columns not aggregated in your projection on the side of those listed in the group by expression.

    The reason for ORA-01489 is that the resulting string will become long and exceeds 4000 bytes.

    You will find several solution in this forum.

    For example

    Re: Listagg function excdding 4000 characters

  • Subquery in the select clause and not "a group by expression" error.

    Hi all
    I hope someone out there can help me out with this one. I have a sql query that performs a subquery in the select case combined with an aggregate function and gives me a "not a group by expression.

    I created a simplified example
     SELECT COUNT(*)                     ,
      ai.invoice_num invoice_number      ,
      ai.description invoice_description ,
      (SELECT poh.po_header_id
           FROM po_headers poh ,
          po_distributions pod
          WHERE pod.po_distribution_id = aid.po_distribution_id
        AND pod.po_header_id           = poh.po_header_id
        ) po_number
         FROM ap_invoice_distributions aid ,
        ap_invoices ai
        WHERE ai.invoice_id = 1476932
      AND aid.project_id    = 8608   
      AND aid.task_id       = 462202  
      AND ai.invoice_id     = aid.invoice_id
     GROUP BY ai.invoice_num,
                    ai.description;
    I'm sure he expected me to add the po_number to the group by clause, but this does not work and gives the error "invalid identifier".

    Can someone suggest a way for a new concert the query so that I can add po_number to my education by clause.

    Kris

    You should try either:

    SELECT COUNT (*),
    AI.invoice_num invoice_number,
    have. Description invoice_description,
    (SELECT poh.po_header_id
    OF po_headers poh,.
    pod po_distributions
    WHERE pod.po_distribution_id = aid.po_distribution_id
    AND pod.po_header_id = poh.po_header_id
    ) po_number
    HELP ap_invoice_distributions.
    ap_invoices AI
    WHERE ai.invoice_id = 1476932
    AND aid.project_id = 8608
    AND aid.task_id = 462202
    AND ai.invoice_id = aid.invoice_id
    Ai.invoice_num GROUP,
    have. Description, aid.po_distribution_id;

    or

    SELECT COUNT (*),
    AI.invoice_num invoice_number,
    have. Description invoice_description,
    MAX ((SELECT poh.po_header_id
    OF po_headers poh,.
    pod po_distributions
    WHERE pod.po_distribution_id = aid.po_distribution_id
    AND pod.po_header_id = poh.po_header_id
    po_number))
    HELP ap_invoice_distributions.
    ap_invoices AI
    WHERE ai.invoice_id = 1476932
    AND aid.project_id = 8608
    AND aid.task_id = 462202
    AND ai.invoice_id = aid.invoice_id
    Ai.invoice_num GROUP,
    have. Description;

  • My outlook express won't let emails through. I am getting an authorization and then an error will appear.

    Outlook express won't come through

    My outlook express won't let emails through. I am getting an authorization and then an error will appear. Sometimes it will say: reception of messages, but none will come by.  A box appears and says that he put an end to the connection, maybe because of the connection to the server, the long period of inactivity or network connection. Also, I get a message on and which was completely removed several times on the file inbox and delete. I have no idea how to solve this problem or what I did to make it. I've never experienced this before.

    You probably have the widespread corruption of dbx files. Try in a new identity.

    File | Identities | Add the new identity. Create a new one and try it. If all goes well, you can import your messages and address book from the old identity and delete it.

    Note: Do not use the main word in the name of the new identity.

    In addition, follow these guidelines to help avoid this in the future.

    Do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend all a 300 MB max for less risk of corruption.

    Information on the maximum size of the .dbx files that are used by Outlook Express:
    http://support.Microsoft.com/?kbid=903095

    After you're done, followed by compacting your folders manually while working * off * and do it often.

    Click Outlook Express at the top of the the folder tree so no folders are open. Then: File | Work offline (or double-click on work online in the status bar). File | Folder | Compact all folders. Don't touch anything until the compacting is completed.

    Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the processors and causes a multitude of problems such as time-outs and account setting changes. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3

    And backup often.

    Outlook Express Quick Backup (OEQB Freeware)
    http://www.oehelp.com/OEBackup/default.aspx

  • Get random errors and missing fonts after July 2011 service pack installation.

    Original title: July 2011 service pack... it completely trashed my software... How can I fix... I can't do system restore yet because no words to do

    I get random errors and missing fonts in all directions... everything was going well until the package of July tried to install it, and then everything went haywire.

    Hi KarenBillette,

    1 do you have. which Service pack tried to install?

    2 Windows operating system you are using?

    Method 1:

    You can try to remove the update from Windows update and check.

    Remove an update

    If this is not possible, then you can try to boot in safe mode and check if you can do a system restore.

    Method 2:

    Step 1: Try to start in safe mode.

    Start your computer in safe mode

    Step 2:

    You can try to perform a system restore to a point of restoration before the update was installed.

    Note: When you perform the system restore to restore the computer to a previous state, programs and updates that you have installed are removed.

    To run the system restore, you can consult the following links:

    System restore

    System Restore: frequently asked questions

    Hope this information is useful.

  • Office Express Error Msg: SENT file is currently being used by Outlook or by another application AND don't GET COMPACT. Help!

    Hello!
     
     
    I have both Outlook 2003 and Outlook Express 2003 loaded on my computer
    Only, I use Outlook Express and have not used regularly Outlook in 5 years.
    I have no problems using Express, (both in the sending or receiving of emails).
    There is no "snap-emails" sent or received in Outlook regular and none in the Outbox.  The same with the Express.
     
    About every month, compresses files Outlook Express and in doing so, the folder sent items do not get compressed, it does not create a new file SentItems.bak and it gives me the error: has SENT the file is currently being used by Outlook or by another application. 
     
    All the time this problem started, I received a number of updates to Office 2003 from Microsoft (probably updates 20-25).  They have installed without incident and that's the only problem resulting, I had with one of the components of Office.
     
    Thanks again for your help.  I'm looking forward to this problem so that it works correctly.
     
    John Murphy

    The sent items folder may have a corruption.  Create a new folder and copy the text in the folder into the new folder.  Then close OE and delete the file sent items.dbx.  OE will create a new.  DBX files should not receive more than a few hundred megabytes or they get corrupted.

    A more effective solution: since you seem to have corruption, it may mean that there are more, if you can set up a new message store by clicking file | Identities.  Then you can add your accounts, use the file | Import | Messages to bring them from the old identity.  Which will remove all corruption.

    Whatever it is, it's a good time to save your messages in OE, because it tends to remove them in unexpected ways.  See www.oehelp.com/OETips.aspx#6 also, if resumes default Outlook, he likes to do when he starts to date, just see www.oehelp.com/oedef.aspx

    See if that helps.

    Steve

  • Add/Remove components error and DVD driver error: Windows cannot load the driver for this hardware device. The driver may be corrupted or missing. (Code 39)

    Original title: Add/Remove components error and DVD driver error

    Yesterday, I removed several components of windows to attempt to clean my cpu. After the reboot, I noticed that my DVD drive disappeared. I tried to update the driver but told me I have the most updated version, I uninstalled and reinstalled the drive, but I still get the same error. Under Driver Details, it shows that I have a lot of drivers for my Phillips DVD player. However, the status of the device is the following: Windows cannot load the driver for this hardware device. The driver may be corrupted or missing. (Code 39) Click Troubleshoot to start the troubleshooter for this device. I've done the troubleshooting, and the two options has not fixed the problem.

    Then I tried to add windows components that I removed, thinking maybe that was the problem. However, when I try to add them, I get an error message that says: 'Setup cannot copy the file zClientm.ex_' it shows the location of this file as being in windows/i386, and of course, the file is located in this folder. So when I go to browse to locate the file, I find and click on it to open it, but I keep getting the same error message that the file is not found and Setup cannot continue.

    I realize that this problem seems very rare and weird, but any help at all would be appreciated. Thank you.

    Hello
     
     
    Code 39: Windows cannot load the driver for this hardware device. The driver may be corrupted or missing. (Code 39)
    Explanation of error codes generated by the Device Manager in Windows XP Professional http://support.Microsoft.com/kb/310123
     
     
    Method 1.
    Microsoft Automated Troubleshooting Services scans your computer and detects that the root causes of common problems, then automatically solves the problems that he finds and offers additional resources if the problem is not resolved. Click run now in the article below.
    Your CD or DVD drive cannot read or write media
    http://support.Microsoft.com/GP/cd_dvd_drive_problems
     
     
    Method 2.
    Also, try the methods listed in the section below and check.
    Your CD or DVD drive is missing or is not recognized by Windows or other programs
    http://support.Microsoft.com/kb/982116
     
     
    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • I am trying to download items 9 to a new computer and get an error message that says: "the archive file Elements 9 is missing.

    I am trying to download items 9 to a new computer and get an error message that says: "the archive file Elements 9 is missing" how to fix this?

    as well, you need the 7z and the exe.  put them both in the same directory and double-click on the exe file.

    Available downloadable Setup files:

    Download and installation help links Adobe

    Help download and installation to Prodesigntools links can be found on the most linked pages.  They are essential; especially steps 1, 2 and 3.  If you click on a link that does not have these listed steps, open a second window by using the link to Lightroom 3 to see these "important Instructions".

    window using the Lightroom 3 link to see these "important Instructions".

  • Compile the creation of the error function, over and over again

    I don't see anything wrong with this function. Everything I run with SQL Developer I get a compile error, I try to fix that and get five more who have no sense. All "inappropriate" generic syntax errors

    There is something terribly wrong with my function? I have re-written so several times, I think that I did nothing, but tried to slip in with the DB knowing, which is not me to get anywhere.

    I shows the log of compiler errors, but as I said, he continues to change and add an error with any change to the function

    Any ideas? At this point, I think Developer SQL (for Mac) is just smoked. I often force quit
    CREATE OR REPLACE FUNCTION emp_status
         (emp_first IN VARCHAR2, 
         emp_last IN VARCHAR2,                        
         emp_num IN NUMBER,
         staff_id IN NUMBER
         staff_rank IN VARCHAR2)                     
         
    RETURN VARCHAR2 
    
    IS  
         emp_information VARCHAR2(80) := emp_first || emp_last || ' has a rank of ' || staff_rank);          
        
              
    BEGIN
    
    SELECT employees.e_first, employees.e_last, staff.e_id, staff.s_rank
    INTO emp_first, emp_last, staff_id, staff_rank
    FROM Employees, Staff
    WHERE employees.e_id = staff_id;
    
    RETURN emp_information; 
    END;
    tables
    -- Create tables 
    CREATE TABLE EMPLOYEES
    (e_id NUMBER(1),
    e_first VARCHAR2(20),
    e_last VARCHAR2(20));
    
    CREATE TABLE STAFF
    (s_id NUMBER(3),
    e_id  NUMBER(1),
    s_phone VARCHAR2(10),
    s_rank VARCHAR2(8));
    
    -- Insert into tables
    
    INSERT INTO EMPLOYEES VALUES
    (1, 'Holly', 'Foster');
    
    INSERT INTO EMPLOYEES VALUES
    (2, 'Robert', 'Combs');
    
    INSERT INTO EMPLOYEES VALUES
    (3, 'Harvy', 'Lambert');
    
    INSERT INTO EMPLOYEES VALUES
    (4, 'Sarah', 'Miller');
    
    
    INSERT INTO STAFF VALUES
    (001, 1, '9992221234', 'ADMIN');
    
    INSERT INTO STAFF VALUES
    (023, 2, '9992226789', 'SEC');
    
    INSERT INTO STAFF VALUES
    (006, 3, '9992223456', 'TECH');
    
    INSERT INTO STAFF VALUES
    (011, 4, '9992223535', 'HR');

    Your function does not much sense in my opinion.

    You have these variables to input emp_ * and staff_ * that you concatenate in an emp_information of VARCHAR2.

    Then you try to SELECT those variables based on the query in the function (which is not allowed by the way) entry.

    You probably want something like this I guess:

    CREATE OR REPLACE FUNCTION emp_status (staff_id IN NUMBER)
    RETURN VARCHAR2
    IS
            emp_information VARCHAR2(80);
    BEGIN
            SELECT employees.e_first || employees.e_last || ' has rank of ' || staff.s_rank
            INTO    emp_information
            FROM    Employees
            ,       Staff
            WHERE   STAFF.S_ID = staff_id
            AND     EMPLOYEES.E_ID = STAFF.E_ID; 
    
            RETURN emp_information;
    END;
    

    Your original code does not include a JOIN with the STAFF table I added.

    However, in reality you do not have a function at all. you could just do the following:

    CREATE VIEW EMP_INFORMATION_VW AS
            SELECT  staff.s_id
            ,       employees.e_first || employees.e_last || ' has rank of ' || staff.s_rank AS     emp_information
            FROM    Employees
            ,       Staff
            WHERE   EMPLOYEES.E_ID = STAFF.S_ID;  
    

    Then, you could do:

    SELECT EMP_INFORMATION FROM EMP_INFORMATION_VW WHERE S_ID = :STAFFID
    

    HTH!

Maybe you are looking for