A PL/SQL query among many does not work

I have a report with search filters and search fields are text fields. I have no problem until I have add in a select list to search by looking for these fields. Once I applied the filter(:P21_COUNTY) to the selection list, it displays the correct information but then all text fields ceases to display the correct information. It works differently if you use a list of selection vs other types of fields? Thank you, Deanna

There is a sample application on apex.oracle.com
Workspace: DEANNA2
Username:DDOVE@KHP. KS.GOV
Password: Dclipse03

Page 21

Login:[email protected]
Password: Dclipse03

Deanna:

This change was made by me. I pulled myself into another thing until I could test the change. Sorry about that.

CITY

Tags: Database

Similar Questions

  • Oracle Sql developer 2.1 does not work

    Hello
    Oracle Sql developer 2.1 does not work on my machine (Windows server 2003 pack 2 service) but works on xp and vista. On the other hand oracle datamodeller works very well.

    can someone help me?

    Thank you

    Who must have worked also. Do you all not basic ASCII characters in the path?

    K.

  • dynamic query for package does not work

    Dear members,

    I have problems with a package in the creation and analysis of a dynamic query in the WHERE clause. Here is an example of what I'm trying to do:

    PROCEDURE test_status_proc)
    wtd_cursor ON cur_type
    date_1 IN date
    date_2 IN DATE
    status in VARCHAR2,
    flag in VARCHAR2)

    IS

    status_sql VARCHAR2 (250): = NULL;
    flag_sql Varchar2 (100): = NULL;

    BEGIN


    Status of the IF = 'A' THEN
    lv_status_sql: = 'A ';
    lv_flag_sql: = 'Y ';
    END IF;
    Status of the 'I' = IF THEN
    lv_status_sql: = 'A ';
    lv_flag_sql: = 'n';
    END IF;

    Status of the 'R' = IF THEN
    lv_status_sql: = "R";
    lv_flag_sql: ='* ';
    END IF;

    Status of the IF = n THEN
    lv_status_sql: = 'n';
    lv_flag_sql: ='* ';
    END IF;

    IF status_code = 'IRN' THEN
    "lv_status_sql: = '('' N'','' R'');
    lv_status_sql: = lv_status_sql | ' OR (s.status = s.flag = "A" AND "N")';
    lv_usecalc_sql: ='* ';
    END IF;

    Status of the = IF'* ' THEN
    lv_status_sql: ='* ';
    lv_flag_sql: ='* ';
    END IF;

    OPEN FOR Test_cursor

    SELECT * from test_status s
    WHERE
    s.Daytime BETWEEN date_1 AND date_2
    S.status AND decode (lv_status_sql,'* ', s.status, lv_status_sql)
    S.flag AND decode (lv_flag_sql,'* ', s.flag, lv_flag_sql);

    The problem I have is especially with the condition 'IRN '. The suite WHERE the part of the clause looks like the following in the lv_status_sql, but the query returns all the values:

    -(', 'R') OR (s.status = 'A' AND s.flag =' only)

    Any help would be much appreciated.

    Kind regards

    dreporter wrote:

    Thanks for your reply and I completely understand your frustration. The problem is sometimes it is very difficult to describe all of the problem due to several reasons. Please take a look at my last post to see if that makes sense.

    If you really need SQL dynamic - true dynamic SQL which includes dealing with dynamic number of bind variables - then DBMS_SQL are an excellent interface to use.

    You can generate the dynamic SQL statement based on the question of whether the filter criteria is null (do not use) or not null (use as a predicate). For example

    if someParam10 is not null then
      // someParam10 needs to be used as a filter predicate
      dynamicSQL := dynamicSQL || ' and some_col_10 = :someParam10 ';
    end if;
    

    This statement can then be analyzed using the DBMS_SQL interface. The binding of values uses the same logic that was used to create predicates. For example

    if someParam10 is not null then
      // someParam10 is used and needs to be bound
      DBMS_SQL.Bind( myCursor, 'someParam10', someParam10 );
    end if;
    

    So, with this approach simplistic, you can easily create a dynamic SQL with variable predicates, dynamically bind these and run the slider.

    Bind variables are used in the dynamic SQL statements, as there are very few threats of SQL injection. And the basic principles observed for shareable SQL creation - the same set of parameters not null to filter, will result in the same SQL statement, which allows the cursor within the Pool shared for this SQL statement to be reused.

    So, technically, dynamic SQL is not a major problem (if used correctly). The major problem is that if really necessary to address the requirements of the business at hand.

    The problem I have with many comments here want to use dynamic SQL statements, is that it is used as one would use a file i/o interface.

    For file IO you want standard Open(), Read(), Write() and Close() calls. And you, the appellant, simply pass the name of the file and the data to write or to receive the data read.

    Similarly, these posters want to use SQL to open a table and read and write the data column - and do it by calling simply (and dynamically) by specifying the name of the table and column. Approaches to dynamic SQL based on one such concept is wrong. And shows that much of the ignorance of what a RDBMS is and how to use an RDBMS.

  • What is the problem with this query? exception does not work.

    DECLARE
    v_employee_id EMPLOYEES. EMPLOYEE_ID % TYPE;
    v_last_name EMPLOYEES. LAST_NAME % TYPE;
    v_salary EMPLOYEES. % SALARY TYPE.
    e_invalid_emp EXCEPTION;
    BEGIN
    SELECT last_name, salary v_employee_id, v_last_name, v_salary, employe_id
    EMPLOYEES where employee_id = & employee_id;

    IF SQL % NOTFOUND THEN
    RAISE e_invalid_emp;
    END IF;

    DBMS_OUTPUT. Put_line(v_employee_id||) e '|| v_last_name | » '|| v_salary);

    EXCEPTION
    WHEN e_invalid_emp THEN
    DBMS_OUTPUT. Put_line ("' employee not found...");
    END;
    /
  • Case change keyboard shortcut does not work in the PL/SQL Editor

    I use the keyboard shortcut CTRL - SHIFT-"quite a bit to change the case of the code. I'm in the latest version of EA and this shortcut does not work for me in the PL/SQL Editor, but still does not work in SQL Editor. You do not know if this is normal or not, but miss me it.

    Unset for the Code Editor and spreadsheet and together for other category - then it will run in a SQL worksheet and an editor of proceedings

    The PPE of the cpu, if necessary, take a jstack and start a new thread.

  • order by desc or ASC does not work with rownum

    SQL> desc offer
     Name                                      Null?    Type
     ----------------------------------------- -------- ----------------------------
     OFFER_ID                                  NOT NULL NUMBER(14)
     DOMAIN_ID                                          NUMBER(14)
     OFFERDATE                                          TIMESTAMP(0)
     CONTACTPERSON                                      VARCHAR2(36)
     EMAIL                                              VARCHAR2(50)
     TEL                                                VARCHAR2(23)
     CATEGORY                                           NUMBER(2)
     AMOUNT                                             NUMBER(5)
     STATUS                                             NUMBER(2)
    
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  select to_char(offerdate,'dd-Mon-yyyy'),
      2     offer_id,
      3     amount
      4  from
      5     offer
      6  where
      7     domain_id=1
      8     and amount is not null
      9* order by offerdate desc
    SQL> /
    
    TO_CHAR(OFF   OFFER_ID     AMOUNT
    ----------- ---------- ----------
    27-Apr-2010          4         55
    26-Apr-2010          5         45
    26-Apr-2010          3         50
    26-Apr-2010          2         45
    
    /*****These may be Ten thousand rows*****/
    When you add a'm rownum < 2 order by asc or desc in my query, then it does not work.
    SQL> ed
    Wrote file afiedt.buf
    
      1  select to_char(offerdate,'dd-Mon-yyyy'),
      2     offer_id,
      3     amount
      4  from
      5     offer
      6  where
      7     domain_id=1
      8     and amount is not null
      9  and
     10     rownum<2
     11* order by offerdate desc
    SQL> /
    
    TO_CHAR(OFF   OFFER_ID     AMOUNT
    ----------- ---------- ----------
    26-Apr-2010          5         45
    
    SQL> ed
    Wrote file afiedt.buf
    
      1  select to_char(offerdate,'dd-Mon-yyyy'),
      2     offer_id,
      3     amount
      4  from
      5     offer
      6  where
      7     domain_id=1
      8     and amount is not null
      9  and
     10     rownum<2
     11* order by offerdate asc
    SQL> /
    
    TO_CHAR(OFF   OFFER_ID     AMOUNT
    ----------- ---------- ----------
    26-Apr-2010          5         45
    I just want to display a disc of DB offerDate wise

    Thank you in anticipation

    Try this

    select to_char(offerdate,'dd-Mon-yyyy'),
           offer_id,
           amount
        from(
        select to_char(offerdate,'dd-Mon-yyyy'),
           offer_id,
           amount
        from
    
           offer
        where
           domain_id=1
           and amount is not null
    
           order by offerdate asc)
    where  rownum<2
    

    Published by: user12984479 on April 27, 2010 04:34

  • Why my XMLTable function does not work?

    Hello

    I'm reading my XML document using a function XMLTable, because a repetition of elements may occur. I wrote a SQL script to test this feature, but it does give me the desired output. This is my script. I use a shadow table PETER_XML to pass the value to the function XMLTable. I would have rather done it directly with a PL/SQL variable, but it does not work.

    CREATE TABLE PETER_XML (AVY XMLTYPE);

    Set serveroutput size 100000
    set echo on
    Set of feedback on

    declare

    cursor c_avy is
    SELECT XMLRESPONSE. DepartureStation' DEPARTURE,
    XMLRESPONSE. "" Flight "FLIGHTNR
    OF PETER_XML.
    XMLTABLE (XMLNameSpaces ('http://schemas.navitaire.com/WebServices' as "web", ))
                                  ' http://schemas.xmlsoap.org/SOAP/envelope/ "as"soapenv", "
                                  ' http://schemas.Navitaire.com/webservices/servicecontracts/BookingService ' as 'book',
                                  ' http://schemas.Navitaire.com/webservices/DataContracts/booking ' as "Book1",
                                  ' http://schemas.Microsoft.com/2003/10/Serialization/Arrays ' as "arr",
                                  ' http://schemas.Navitaire.com/webservices/DataContracts/common/enumerations ' as 'enum',
                                  ' http://schemas.Navitaire.com/webservices/servicecontracts/BookingService ' as 'ns0',
                                  ' ( http://schemas.Navitaire.com/webservices/DataContracts/Booking ' as 'ns1'),
    ' / / GetAvailabilityRequest/TripAvailabilityRequest/AvailabilityRequests/AvailabilityRequest.
    PETER_XML OF PASSAGE. AVY
    COLUMNS
    "DepartureStation' VARCHAR2 (3) path"DepartureStation. "
    'Flight' varchar2 (4) WAY 'flight '.
    ) XMLRESPONSE.

    "" "clob l_response: = ' < soapenv:Envelope xmlns:soapenv ="http://schemas.xmlsoap.org/soap/envelope/"xmlns:web ="http://schemas.navitaire.com/WebServices"xmlns:book ="http://schemas.navitaire.com/WebServices/ServiceContracts/BookingService"xmlns:book1 ="http://schemas.navitaire.com/WebServices/DataContracts/Booking"xmlns:arr ="http://schemas.microsoft.com/2003/10/Serialization/Arrays"xmlns:enum ="http://schemas.navitaire.com/WebServices/DataContracts/Common/Enumerations">" "
    < soapenv:Header >
    bnuOiHCVb3k < web: Signature > = | GX + eTRcZ5ABozAy8MosBFwagyUw7zrRXf1iprmw9Q4W17wt8SDpjYV2HwZRGIHYtE46UFBJw/aFyKVqjToEAfSTfh7cePm4r9JJwcIveDc75NuxnzoY14pKC + WLYDzE0MaALra4i/tI = < / web: Signature >
    < web: ContractVersion > 340 < / web: ContractVersion >
    < / soapenv:Header >
    < soapenv:Body >
    < ns0:GetAvailabilityRequest xmlns:ns0 = "http://schemas.navitaire.com/WebServices/ServiceContracts/BookingService" > ""
    < ns1:TripAvailabilityRequest xmlns:ns1 = "http://schemas.navitaire.com/WebServices/DataContracts/Booking" > ""
    < ns1:AvailabilityRequests >
    < ns1:AvailabilityRequest >
    < ns1:DepartureStation > AMS < / ns1:DepartureStation >
    < ns1:ArrivalStation > CTA < / ns1:ArrivalStation >
    < ns1:BeginDate > 2013-07-13 T 00: 00:00 < / ns1:BeginDate >
    < ns1:EndDate > 2013-07-13 T 00: 00:00 < / ns1:EndDate >
    < ns1:CarrierCode > HV < / ns1:CarrierCode >
    < ns1:FlightNumber > 547 < / ns1:FlightNumber >
    < ns1:FlightType > all < / ns1:FlightType >
    < ns1:PaxCount > 1 < / ns1:PaxCount >
    < ns1:Dow > by day < / ns1:Dow >
    < ns1:CurrencyCode > EUR < / ns1:CurrencyCode >
    < ns1:DisplayCurrencyCode > EUR < / ns1:DisplayCurrencyCode >
    <!-ns1:SourceOrganization > COO < / ns1:SourceOrganization->
    < ns1:MaximumConnectingFlights > 0 < / ns1:MaximumConnectingFlights >
    < ns1:AvailabilityFilter > by default < / ns1:AvailabilityFilter >
    < ns1:ProductClassCode > NG < / ns1:ProductClassCode >
    < ns1:SSRCollectionsMode > None < / ns1:SSRCollectionsMode >
    < ns1:InboundOutbound > so < / ns1:InboundOutbound >
    < ns1:NightsStay > 0 < / ns1:NightsStay >
    < ns1:IncludeAllotments > true < / ns1:IncludeAllotments >
    < ns1:FareTypes >
    < ns2:string xmlns:ns2 = "http://schemas.microsoft.com/2003/10/Serialization/Arrays" > T < / ns2:string>
    < / ns1:FareTypes >
    < ns1:PaxPriceTypes >
    < ns1:PaxPriceType >
    < ns1:PaxType > ADT < / ns1:PaxType >
    < / ns1:PaxPriceType >
    < / ns1:PaxPriceTypes >
    < ns1:JourneySortKeys >
    < ns2:JourneySortKey xmlns:ns2 = "http://schemas.navitaire.com/WebServices/DataContracts/Common/Enumerations" > EarliestDeparture < / ns2:JourneySortKey>
    < / ns1:JourneySortKeys >
    < ns1:IncludeTaxesAndFees > false < / ns1:IncludeTaxesAndFees >
    < ns1:FareRuleFilter > by default < / ns1:FareRuleFilter >
    < ns1:LoyaltyFilter > MonetaryOnly < / ns1:LoyaltyFilter >
    < ns1:TravelClassCodeList >
    < ns2:string xmlns:ns2 = "http://schemas.microsoft.com/2003/10/Serialization/Arrays" > Y < / ns2:string>
    < / ns1:TravelClassCodeList >
    < / ns1:AvailabilityRequest >
    < / ns1:AvailabilityRequests >
    < ns1:LoyaltyFilter > MonetaryOnly < / ns1:LoyaltyFilter >
    < / ns1:TripAvailabilityRequest >
    < / ns0:GetAvailabilityRequest >
    < / soapenv:Body >
    < / soapenv:Envelope > ';

    Start

    dbms_output.put_line ('Start');
    insert into peter_xml (avy) values (XMLTYPE (l_response));


    dbms_output.put_line ('Insert processed' | to_char (sql % rowcount) |) "lines.") ;

    for r_avy loop c_avy

    dbms_output.put_line ('Start' | r_avy.departure |) "Flightno. ' | r_avy.flightnr);

    end loop;

    end;
    /

    Rollback;

    The script works well, but the problem is that I don't get any kind of output the cursor of the loop for. When I speak to elements using "ns1:etc", I get an error, which suggests that the service is actually read the XML. Since there was no way out, I started to including all these XMLNameSpaces.

    Can someone let me know what Miss me?

    And if I can pass the value to a PL/SQL variable, it would save me the use of a fictitious table. That would be nice.

    Thanks in advance.

    Peter

    Hi Peter,.

    Since there was no way out, I started to including all these XMLNameSpaces.

    All these namespaces have a meaning, do not blindly, include them but if you do, use.

    The main manifestation of XQuery does not reference all the necessary namespaces.

    Here is a simplified version that gives the expected results.

    Please note that I only use namespaces I want to solve the XQuery:

    declare

    c_avy (p_xmlresponse in xmltype) cursor is

    Select x.DEPARTURE

    x.FLIGHTNR

    from xmltable)

    XmlNamespaces)

    "http://schemas.xmlsoap.org/soap/envelope/" as "SOAP."

    , 'http://schemas.navitaire.com/WebServices/ServiceContracts/BookingService' as 'ns0 '.

    , "http://schemas.navitaire.com/WebServices/DataContracts/Booking" as "ns1."

    )

    , ' /: soap envelope / soap: Body / ns0:GetAvailabilityRequest / ns1:TripAvailabilityRequest / ns1:AvailabilityRequests / ns1:AvailabilityRequest'

    passage p_xmlresponse

    columns

    Trajectory of DEPARTURE VARCHAR2 (3) 'ns1:DepartureStation '.

    , Path of varchar2 (4) FLIGHTNR 'ns1:FlightNumber '.

    ) x ;

    "" l_response clob: = "http://schemas.xmlsoap.org/soap/envelope/" xmlns:web ="http://schemas.navitaire.com/WebServices" xmlns:book = "http://schemas.navitaire.com/WebServices/ServiceContracts/BookingService" xmlns:book1 ="http://schemas.navitaire.com/WebServices/DataContracts/Booking" xmlns:arr = "http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:enum ="http://schemas.navitaire.com/WebServices/DataContracts/Common/Enumerations" > ""

    bnuOiHCVb3k = | GX + eTRcZ5ABozAy8MosBFwagyUw7zrRXf1iprmw9Q4W17wt8SDpjYV2HwZRGIHYtE46UFBJw/aFyKVqjToEAfSTfh7cePm4r9JJwcIveDc75NuxnzoY14pKC + WLYDzE0MaALra4i/tI =.

    340

    http://schemas.Navitaire.com/webservices/servicecontracts/BookingService">

    http://schemas.Navitaire.com/webservices/DataContracts/booking">

    AMS

    CTA

    2013-07-13 T 00: 00:00

    2013-07-13 T 00: 00:00

    HV

    547

    All the

    1

    Every day

    EUR

    EUR

    0

    By default

    NG

    None

    Both

    0

    true

    http://schemas.Microsoft.com/2003/10/Serialization/Arrays "> T"

    ADT

    http://schemas.Navitaire.com/webservices/DataContracts/common/enumerations "> EarliestDeparture"

    fake

    By default

    MonetaryOnly

    http://schemas.Microsoft.com/2003/10/Serialization/Arrays "> Y"

    MonetaryOnly

    ';

    Start

    for r_avy in c_avy (xmltype (l_response)) in a loop

    dbms_output.put_line ('Start' | r_avy.departure |) "Flightno. ' | r_avy.flightnr);

    end loop;

    end;

    /

    In fact, you don't need an intermediate table for this requirement. However, and according to your version of db, store the XML in a binary XMLType table can significantly improve performance.

    For makers in small, you probably won't see a difference between the two approaches, but just so you know in the case where you have to face in the future with big XMLs.

  • SQL query simple SQL Developer takes, the wizzard of XE does not work

    Hello everyone

    I wrote this simple query that developer SQL works well, but when I try to run a report based on this sql query, it tells me invalid sql statement. It's true, maybe it's not valid because this IF clause in there... but Developer SQL seems to be very tolerant or includes more...

    I wrote this is because obviously if there is no Boss, ie = 0 then I would get an error when it division by 0, so I put that 0 just for selecting the right


    If count (bosses) > 0
    Select company, zip code.
    sum (Boss/staff)
    assessment
    Group of company, zip code

    Thank you very much

    Alvaro

    Ok. This should work:

    Select company, zip code.
    -case when count (staff)! = 0 here end sum (Boss/staff)
    assessment
    Group of company, zip code

    If this does not work, could you please explain, how your table looks like?

  • I have a SSIS package that uses ODBC to connect to a progress database that does not work in SQL Agent

    I have a SSIS package that uses ODBC to connect to a Progress database.  It works fine in Visual Studio and it works very well in a batch file calling DTEXEC from the Windows Task Scheduler, but it does not work in the work of the SQL Agent.  It says that it cannot find the driver information.

    Hi Curt_DBA,

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums (SQL Server Integration Services).

    MSDN Forum (SQL Server Integration Services)

    http://social.msdn.Microsoft.com/forums/en-SG/sqlintegrationservices/threads

    I hope this helps.

  • Jdev - query Tester does not work

    Jdev Version: 11.1.1.7.1

    The query VO on my Jdev Tester does not work. More importantly on my your Expert mode, when I add a new column to SQL, the attributes do not automatically get added to the VO. Only clue I have is the bottom of the stack trace that is thrown when I click on "Query Builder" (other buttons as Test donot throw any error and no success message):

    java.lang.NullPointerException

    at oracle.javatools.db.jdbc.JdbcDDLDatabase.registerBuilders(JdbcDDLDatabase.java:453)

    to oracle.javatools.db.AbstractDatabase. < init > (AbstractDatabase.java:85)

    to oracle.javatools.db.ddl.DDLDatabase. < init > (DDLDatabase.java:50)

    to oracle.javatools.db.jdbc.JdbcDDLDatabase. < init > (JdbcDDLDatabase.java:74)

    at oracle.javatools.db.jdbc.JdbcDatabaseFactory.createDatabaseImpl(JdbcDatabaseFactory.java:35)

    at oracle.javatools.db.DatabaseFactory.createDatabaseImpl(DatabaseFactory.java:241)

    at oracle.javatools.db.DatabaseFactory.createStandaloneDatabase(DatabaseFactory.java:344)

    at oracle.javatools.db.DatabaseFactory.findOrCreateDatabase(DatabaseFactory.java:326)

    at oracle.jbo.dt.jdevx.ui.view.XVOQueryBuilder.createDatabase(XVOQueryBuilder.java:273)

    at oracle.jbo.dt.jdevx.ui.view.XVOQueryBuilder.invokeQueryBuilder(XVOQueryBuilder.java:56)

    at oracle.jbo.dt.jdevx.ui.JdxMenuManager.invokeQueryBuilder(JdxMenuManager.java:1615)

    at oracle.jbo.dt.ui.view.VOClausePanel.queryBuilderAction(VOClausePanel.java:2440)

    at oracle.jbo.dt.ui.view.VOClausePanel.actionPerformed(VOClausePanel.java:1390)

    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)

    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

    at java.awt.Component.processMouseEvent(Component.java:6289)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

    at java.awt.Component.processEvent(Component.java:6054)

    at java.awt.Container.processEvent(Container.java:2041)

    at java.awt.Component.dispatchEventImpl(Component.java:4652)

    at java.awt.Container.dispatchEventImpl(Container.java:2099)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)

    at java.awt.Container.dispatchEventImpl(Container.java:2085)

    at java.awt.Window.dispatchEventImpl(Window.java:2478)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)

    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)

    in java.awt.EventQueue$ 1.run(EventQueue.java:603)

    in java.awt.EventQueue$ 1.run(EventQueue.java:601)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)

    in java.awt.EventQueue$ 2.run(EventQueue.java:617)

    in java.awt.EventQueue$ 2.run(EventQueue.java:615)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)

    in java.awt.Dialog$ 1.run(Dialog.java:1046)

    in java.awt.Dialog$ 3.run(Dialog.java:1098)

    at java.security.AccessController.doPrivileged (Native Method)

    at java.awt.Dialog.show(Dialog.java:1096)

    at java.awt.Component.show(Component.java:1585)

    at java.awt.Component.setVisible(Component.java:1537)

    at java.awt.Window.setVisible(Window.java:842)

    at java.awt.Dialog.setVisible(Dialog.java:986)

    at oracle.jbo.ui.main.JboDialog.setVisible(JboDialog.java:130)

    to oracle.jbo.ui.wizard.JboWizard$ MddWizardDialog.setVisible (JboWizard.java:2558)

    at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:395)

    at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:356)

    at oracle.jbo.ui.main.JboDialog.showDialog(JboDialog.java:108)

    to oracle.jbo.ui.wizard.JboWizard$ MddWizardDialog.showDialog (JboWizard.java:2494)

    at oracle.jbo.ui.wizard.JboWizard.createMddWizard(JboWizard.java:550)

    at oracle.jbo.ui.wizard.JboWizard.setVisible(JboWizard.java:353)

    at oracle.jbo.ui.wizard.JboWizard.showDialog(JboWizard.java:331)

    at oracle.jbo.dt.jdevx.ui.editors.view.VoeSqlPage.showEditSqlDialog(VoeSqlPage.java:625)

    at oracle.jbo.dt.jdevx.ui.editors.view.VoeSqlPage.invokeEditSqlDialog(VoeSqlPage.java:592)

    at oracle.jbo.dt.jdevx.ui.editors.view.VoeSqlPage.performAction(VoeSqlPage.java:935)

    at oracle.jbo.dt.ui.main.controls.DtcAction.actionPerformed(DtcAction.java:47)

    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)

    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)

    at java.awt.Component.processMouseEvent(Component.java:6289)

    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

    at java.awt.Component.processEvent(Component.java:6054)

    at java.awt.Container.processEvent(Container.java:2041)

    at java.awt.Component.dispatchEventImpl(Component.java:4652)

    at java.awt.Container.dispatchEventImpl(Container.java:2099)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)

    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)

    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)

    at java.awt.Container.dispatchEventImpl(Container.java:2085)

    at java.awt.Window.dispatchEventImpl(Window.java:2478)

    at java.awt.Component.dispatchEvent(Component.java:4482)

    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)

    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)

    in java.awt.EventQueue$ 1.run(EventQueue.java:603)

    in java.awt.EventQueue$ 1.run(EventQueue.java:601)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)

    in java.awt.EventQueue$ 2.run(EventQueue.java:617)

    in java.awt.EventQueue$ 2.run(EventQueue.java:615)

    at java.security.AccessController.doPrivileged (Native Method)

    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)

    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)

    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)

    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)

    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)

    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)

    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    Any idea on what could be the problem?

    The question seems to be to the JDBC data source that we define in the configuration Module of the Application screen. We have a JNDI to data source, and somehow at design time, the your do not work with it. Currently, I change that to a local data source, the tester of VO, requeteur all work fine.

  • Why this SQL does not work?

    The following code does not work when I try to delete rows from a table of test. The test table has no unique or primary key on it and is defined as test (identification number). Can you explain to me why it doesn't work?


    delete from test a where a.rowid in (select b.rowid from test b where b.id = a.id and b.rowid != a.rowid);




    When I run the subquery (selection) with replacement of the actual values of a.rowid and the table queried a.id (IE.select b.rid from test2 b where b.id = 1 and b.rid != 'XXX'

    ), the subquery returns exactly as expected (that is to say, it gives the rowid is different from that which went from subquery). And as although I know the internal subquery must return the result for each row of the table in the outside circle delete statement, and only after that should execute the delete statement. For example, for the first row of the table in the external suppression, the delete statement must send the ID of the first row in the internal subquery and then wait the result which should return. And then runs the delete statement, in which case the subquery must return the rowid is different from that which went from subquery (ie.

    b.rowid != a.rowid

    ). Am I wrong? What is the error in this statement.


    P.S. The sql is also not working if we replace remove it with the update or select

    in this case, the subquery must return the rowid is different from that which went from subquery (IE.

    b.rowid != a.rowid

    ). Am I wrong? What is the error in this statement.

    You are right that this subquery should return other than past rowid thr. But you used the IN clause as well as below:

    where a.rowid in

    What States remove the line if rowid returned by the subquery contains the identifier for the row whose ID was passed. As the inner query is to return another rowid, therefore, no row is deleted.

    To remove duplicate lines, try the query (Replace tablename/columns with your) below:

    DELETE FROM emp A

    WHERE A.ROWID > ALL (SELECT B.ROWID

    PEM'S B

    WHERE A.empno = B.empno);

  • Query with a subquery should return a value but does not work

    When I run this SQL, it does not return value:

    SELECT vfn.cat
    OF vfn, valid_fishery vf vps_fishery_ner
    WHERE vfn.plan = vf.plan
    AND vfn.cat = vf.cat
    AND vf.permit_year = 2010
    AND vf.moratorium_fishery 't ='
    AND vfn.vp_num = 211652
    AND vfn.ap_year = 2010
    AND vfn.plan = 'MUL '.
    AND vfn.date_issued = (SELECT MAX (date_issued)
    OF vps_fishery_ner
    WHERE vp_num = 211652
    AND ap_year = 2010);

    To test, I remove the subquery and run it separately:
    SELECT MAX (date_issued)
    OF vps_fishery_ner
    WHERE vp_num = 211652
    AND ap_year = 2010;

    Returns 2 April 10

    Then I paste the date into the original query (using her TRUNCATES the function, of course, since I'm only part DDMMYY hardcode the date):

    SELECT vfn.cat
    OF vfn, valid_fishery vf vps_fishery_ner
    WHERE vfn.plan = vf.plan
    AND vfn.cat = vf.cat
    AND vf.permit_year = 2010
    AND vf.moratorium_fishery 't ='
    AND vfn.vp_num = 211652
    AND vfn.ap_year = 2010
    AND vfn.plan = 'MUL '.
    AND TRUNC (date_issued) = TO_DATE('02-APR-10');

    And returns the required value, "A".

    So why the complete query with a subquery does not work, if the value returned by the subquery is valid and works when you just pasted in there?
    Thank you.

    Hello

    Maybe you should include this in the subquery as well?

    AND vfn.plan = 'MUL'
    
  • Correlation query does not work

    create the table cust_age_sal (cust_id integer, integer whole age of sal);

    create the table new_cust_age_sal (cust_id integer, integer whole age of sal);

    insert into cust_age_sal values (1,10,100);

    insert into cust_age_sal values (2,20,200);

    insert into cust_age_sal values (3,30,300);

    insert into cust_age_sal values (4,40,400);

    commit;

    insert into new_cust_age_sal values (2,21,201);

    insert into new_cust_age_sal values (3,31,301);

    commit;


    Question

    I want to update cust_age_sal using the customer_id which are present in the new_cust_age_sal;

    I use queries, query1 and query2. Query1 is working and I get results and I want to know what is the problem with query2 and why it does not work

    Query1:

    UPDATE cust_age_sal u

    SET (age, sal) =

    (

    SELECT age, sal

    OF new_cust_age_sal

    WHERE cust_id = u.cust_id

    )

    where u.cust_id in (select cust_id from new_cust_age_sal)

    ---

    query2:

    UPDATE cust_age_sal

    SET (age, sal) =

    (

    SELECT age, sal

    OF new_cust_age_sal

    WHERE cust_id = u.cust_id

    )

    Hello

    2742751 wrote:

    It is except o/p I'm looking

    O/p: except

    I think you want to say "whereas", not "excluded".

    CUST_ID AGE SAL

    ---------------------- ---------------------- ----------------------

    1                      10                     100

    2                      21                     201

    3                      31                     301

    4                      40                     400

    But when I run under query that is show below output even if I use the join on the target table condition. Why is it show empty for CUST_ID = 1 and 4

    UPDATE cust_age_sal u

    SET (age, sal) =

    (

    SELECT age, sal

    OF new_cust_age_sal

    WHERE cust_id = u.cust_id

    )

    CUST_ID AGE SAL

    ---------------------- ---------------------- ----------------------

    1

    2                      21                     201

    3                      31                     301

    4

    A UPDATE instructions without WHERE clause will update with each row in the table.

    In the case of cust_id = 1, what will that do?  Well, what makes the following query?

    SELECT age, sal

    OF new_cust_age_sal

    WHERE cust_id = 1;

    ?  It produces no line.  When you use a subquery in a SET of an UPDATE statement clause (as you do) and the subquery returns no rows, then updated the columns with a NULL value.

    If you don't want to update all rows, but want lines updates which fulfil certain conditions (for example, have a corresponding row in new_cust_age_sal), and then use a WHERE clause in the UPDATE statement, as you did in your first UPDATE statement.

    Instead of an UPDATE statement, you can also use a MERGE statement, like this:

    MERGE INTO dst cust_age_sal

    With the HELP of new_cust_age_sal CBC

    WE (dst.cust_id = src.cust_id)

    WHEN MATCHED THEN UPDATE

    SET dst.age = src.age

    dst.sal = src.sal,

    ;

    In this way, you don't need to repeat what is essentially the same subquery in the GAME and WHERE clauses.

  • reset_image_prefix. SQL does not work

    Hello

    My DB has two instances with two different versions of the top charge. One is the version 4.1.1 (works well) and I decided to upgrade the other 4.1.1 to 4.2. I created a new location in the httpd.conf file entry in my case of OSH to point to the new instance 4.2 referencing a new Alias image on the server. When I installed APEX 4.2 I showed the images the New Alias directory setting "i42' but it does not work. Applications always refer to is

    I ran the script reset_image_prefix.sql with /i42/ as an input parameter, but the applications are always reference/i /.

    There was a similar discussion in October 2012 and Patrick Wolf wrote on bug # 14785456.

    But the BUG seems to be fixed?

    After executeing the script Iget:

    SQL > select text from dba_source where owner = 'APEX_040200' and lower (name) = "wwv_flow_image_prefix";

    TEXT

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    package wwv_flow_image_prefix

    is

    constant g_image_prefix VARCHAR2 (255): = ' / i42 / ";

    end wwv_flow_image_prefix;

    4 selected lines.

    Is there a solution?

    Kind regards

    Carola

    Hi Carola,

    What exact version of APEX 4.2 do you use? Are you using the latest 4.2.2? Because it includes the hotfix that you referenced. After installation of this version or the patch installed, it will automatically erase all the prefixes image-level asks if they are identical to the current instance image prefix. So in your case, you should set the prefix image back to / i /, install the hotfix and then reset_image_prefix again to set the parameter instance/i42.

    Joel has some useful information on this blog (YABAOAE) yet another Blog about Oracle Application Express: prefix of Image Exchange in Oracle Application Express 4.2.2

    Some background info on reset_image_prefix.sql. Who has never changed the image prefix used in applications, only the prefix of image for our application Builder.

    Concerning

    Patrick

    Member of the APEX development team

    My Blog: http://www.inside-oracle-apex.com

    APEX Plug-Ins: http://apex.oracle.com/plugins

    Twitter: http://www.twitter.com/patrickwolf

    Post edited by: PatrickWolf

  • Query does not work on my iPad (was: media query question)

    I am a site for mobile/tablet/Office of coding and while my office and the iphone respond to the CSS, my ipad does not work. The changes that I do take the tablet in dreamweaver, but when they go live the ipad does not. Of course, my media query must be incorrect, but I can't understand the question. Any help is very appreciated.

    http://gbetza.mydomain.com/WebService2/test/KathrynFee/2014/profile.html

    Thank you.

    Yes.  It is inevitable because smart phones are getting bigger while tablets are smaller & more.  He's always going to be some crossover.   Think of it this way, when a Tablet is behaving as a mobile device, he takes over the mobile network.  When the shelf behaves more like a desktop computer, you need the layout of office.

    Similarly, a great smartphone in landscape mode is likely to resemble the layout of your tablet.

    See the FluidGrid example below:

    http://ALT-Web.com/FluidGrid/Fluid2.html

    Office = 4-col layout

    Tablet = 2-col layout

    Mobile = 1-col layout

    For purposes of illustration, I added a thick border of gold at the disposal of the Tablet only.

    / * Tablet Layout: 481px to 768px. Inherits the styles of: Mobile layout. */

    @media only screen and (min-width: 481px) and (max-width: 768px) {}

    .gridContainer {width: 92%; border: 16px solid gold}

    }

    Nancy O.

Maybe you are looking for

  • I don't want the old pages to showup on new tab open how do stop this?

    On the new version when a new tab is opened the last 9 open tabs see page, I don't want this, how can I prevent this from happening. That's why I stopped using MS explore.

  • Copy of Yosemite

    I need to go from Pro Tools to logic and for reasons that would be too long to explain here, Tai-e I really need a copy of Yosemite. I can't go to El Capitan right now - again to reason simply too long and boring to explain - I just need Yosemite. It

  • Hundreds of surveys BBM blackBerry smartphones add requests unsolicited per day!

    I started to receive applications BBM of people I don't know in July, and at one point, it was up to 500 per day. I deleted the BBM on my phone but I still get requests, they'll just in my Messages folder now. They come in red, and some of them say B

  • Impdp not connect to the database without error returns

    Kind regards.Please ask your usual support, motivated, that I am facing a strange problem.I recently did an expdp of different actions, the database on which the export is carried out version 10.2.0.4 Now, I'm doing impdp on a database whose version

  • Default configuration of an attribute in a FLEX values

    HelloI created a flex surnames CMSFuelData_C and possessed a yes/no attribute that has attribute editor radio button, as required.While I was creating the start menu, I was not able to set the default value.Could someone tell where I am mistaken or s