Code works correctly with sql developer but not in shapes

Hi, formulas [32 bit] Version 6.0.8.11.3 (Production)

INSERT INTO DEFICIENCIES 

SELECT I.ITEM_ID , S.ITEM_ENG_NAME , S.ITEM_ARABIC_NAME 
FROM ITEM_DETAIL I , STOCK S 
WHERE I.ITEM_ID = S.ITEM_ID 
AND I.ITEM_ID NOT IN ( SELECT ITEM_ID FROM DEFICIENCIES )
GROUP BY I.ITEM_ID , S.ITEM_ENG_NAME , S.ITEM_ARABIC_NAME 
HAVING MAX(EXPIRY_DATE) <= TRUNC(SYSDATE)
OR SUM(QUANTITY) = 0 
UNION
SELECT E.ITEM_ID , S.ITEM_ENG_NAME , S.ITEM_ARABIC_NAME 
FROM EXPIRED E , STOCK S 
WHERE E.ITEM_ID = S.ITEM_ID 
AND E.ITEM_ID NOT IN ( SELECT ITEM_ID FROM DEFICIENCIES )
ORDER BY ITEM_ENG_NAME ;

When I used it in oracle forms, I have faced

error 103 at line 15 column 2
encountered the symbol "order" when expecting one of the following: 
;return RETURNING_ adn or group havign intersect minus start union where connect 
the symbol "group was inserted before "order" to continue

?

forms not authorized such use for «insert into...» Select... Of...  ORDER BY' with order by.

but this use can be used in a database procedure.

write your code in a database procedure.  your code will run.

Tags: Oracle Development

Similar Questions

  • commands of MySQL with Sql developer does not

    I use sqldeveloper 3.1.07 and trying some selects a mysql 5.1 database.

    SELECT SYSDATE(); works fine, but if I try to

    Use mysql;
    Select in the mysql database;
    -> and user table there is a mistake cause no database is selected.

    How to use sqldeveloper correctly for this task.
    How/where can I run the command mysql with the sqldeveloper?

    Any help is appreciated.

    Hey Cracker Jack,

    Analyzers of SQL Developer the text in a worksheet SQL to identify each statement and its type.
    Current SQL Developer has only one Oracle SQL, SQL * Plus, PL/SQL Analyzer.
    This means that the spreadsheet recognizes that SQL which is similar to Oracle SQL (SELECT, INSERT, UPDATE, DELETE,...).

    No connection to MySQL or other databases Oracle, the spreadsheet should work fine with standard SQL (as your selection), but when the command executes a particular MySQL (or not Oracle), the worksheet does not know how to interpret it.

    You can explicitly provide the information to the SQL needs worksheet using a hint.
    http://dermotoneill.blogspot.com/2010/11/workheet-hints.html

    MySQL example:
    / * sqldev:query * / show databases;
    / * sqldev:stmt * / use dermot;
    Select database();
    / * sqldev:stmt * / use information_schema;
    Select database();

    Kind regards
    Dermot.
    SQL development team.

  • Able to connect to SQL Developer but not a toad - ORA-12154: TNS

    My workplace uses TOAD as standard SQL tool to run against Oracle, although I prefer test and use SQL developer.

    When you try to connect to a database in TOAD I get the following error

    ORA-12154: TNS: could not resolve service name

    I'm using the TNSNAMES file. ORA and I am able to connect through SQL Developer, no problem.

    Also in the same file, I'm able to connect to the other TNS names, but all just not this one it seems.

    I find it very strange, because it seems that for this name TNS one, I specifically can not connect through TOAD

    I can connect to any other AMT via TOAD, and I can connect through SQL developer

    I also tried a TNSPING and his returning in OK for the server and the connection seem just.

    I am trying to connect to an Oracle 10 g with TOAD version 8.0.0.47 Server

    Any ideas appreciated!

    I'm doing this from memory, but...

    Oracle 10g database with TOAD version 8.0.0.47
    

    I believe that your version of toad is too low for this version of Oracle. You should be able to confirm with QUEST software.

    Best regards

    mseberg

    I found the page "which versions of Oracle of Toad for Oracle support?

    https://support.quest.com/search/SolutionDetail.aspx?ID=SOL21018

    What version of Oracle 10 is the question?

    https://support.quest.com/search/SolutionDetail.aspx?ID=SOL63225&category=solutions&SKB=1

    Published by: mseberg on July 22, 2011 15:47

    My rule with Toad's (once you get past the version number), if you cannot connect using SQL, Toad will never work.

    Published by: mseberg on July 22, 2011 15:55

  • Can we keep OPEN? Œuvres query in SQL Developer, but not Oracle APEX

    Hi Sirini,

    Just my thoughts - but if one of them is closed, I think it should be a {: identifier of the thread = 2496751} where it becomes the evasive. This one {: identifier of the thread = 2496754} (APEX!) must be the one that remains open. You do not?

    My 2 cents,
    Howard

    .. where it becomes the elusive...

    What skin? Posters he determined that he needed a semicolon at the end of the statement and that he had forgotten the INTO clause. The two are beginner errors. OP has closed the thread as answered and disappeared "Google stop" to learn more about creating queries SQL in PL/SQL. This seems resolved - at least until that back of her Googlequest with another question.

  • RT code works since the LabVIEW environment, but not when I create and deploy

    I think there are a lot of reasons why this can happen, but I can't seem to pin one.

    I have a classic controls program that runs on a cRIO. We recently decided to change the communication of a ProfiBus comsoft on Ethernet/IP card. (Industrial Protocol for Allen Renaud automata). For various reasons, we put the fuse in communication in the control loop.

    Now when I run the LabVIEW now, it works fine. I can see data going to and coming from the controller. I can sniff packets and they look good. I get about 30 milliseconds on the loop, which is long, but since I am running in the IDE, I think is not bad. (In other words, I get data in and out every 30 milliseconds).

    When I compile and set the binary on the cRIO, it breaks. I can still sniff packets, but what I'm getting now, is that all traffic to the controller of read requests. My write requests are missing. In addition to reading queries are poorly trained. Rather than ask 43 items in a table, they ask 1.

    A test that I tried was to disable the read request. For the binary file, I don't see any traffic. For the IDE, I see write queries.

    I use LV 2009 SP1. I have the version of NOR-Labs of the Ethernet/IP driver. (We have a request for a quote, but do not have the official driver.) In the meantime, faster I get this done, the happier everyone will be ;-)

    Any suggestions?

    Attention to the nodes of property which is usually my problem when it happens.  Some who say they work in RT do not work in compiled RT

  • Code works in the timeline panel, but not in the class

    Hello, I have the following code which works in the timeline, but if I change it to the class I get this error.

    I will be very happy if someone can help me solve this problem.

    Error here:

    TypeError: Error #2007: Parameter child must be non-null.
              at flash.display::DisplayObjectContainer/addChild()
              at Function/Main/private:completeMenuLoad/goContent()
    

    Code scenario here:

    import flash.display.*;
    import com.greensock.*;
    import com.greensock.easing.*;
    import flash.net.URLRequest;
    import flash.net.URLLoader;
    
    
    var signUpUrl:URLRequest = new URLRequest("../swf/signUp.swf");
    var logInUrl:URLRequest = new URLRequest("../swf/logIn.swf");
    
    
    var content1Loader:Loader = new Loader();
    var content2Loader:Loader = new Loader();
    
    
    content1Loader.load(signUpUrl);
    content2Loader.load(logInUrl);
    
    
    var buttonA:Array = [signUp_btn, logIn_btn];
    
    var prevOnStageLoader:Loader;
    
    for(var i:int=0;i<buttonA.length;i++){
    buttonA[i].addEventListener(MouseEvent.CLICK, goContent);
    }
    function goContent(e:MouseEvent):void
    {
    if(prevOnStageLoader){
    TweenLite.to(prevOnStageLoader,1,{x:stage.stageWidth});
    }
    prevOnStageLoader=Loader(this["content"+(1+buttonA.indexOf(e.currentTarget))+"Loader"]);
          addChild(prevOnStageLoader);
          prevOnStageLoader.x = -1250;
          TweenLite.to(prevOnStageLoader, 1, {x:0, ease:Elastic.easeInOut});
    }
    

    Code of the class here:

    package 
    {
    
    
              import flash.display.*;
              import flash.net.*;
              import flash.events.*;
              import com.greensock.*;
              import com.greensock.easing.*;
    
    
    
              public class Main2 extends MovieClip
              {
                        private var signUpUrl:URLRequest = new URLRequest("../swf/signUp.swf");
                        private var logInUrl:URLRequest = new URLRequest("../swf/logIn.swf");
                        private var content1Loader:Loader = new Loader();
                        private var content2Loader:Loader = new Loader();
    
    
                        public function Main2()
                        {
                                  content1Loader.load(signUpUrl);
                                  content2Loader.load(logInUrl);
    
    
                                  var buttonA:Array = [signUp_btn,logIn_btn];
                                  var prevOnStageLoader:Loader;
    
    
                                  for (var i:int=0; i<buttonA.length; i++)
                                  {
                                            buttonA[i].addEventListener(MouseEvent.CLICK, goContent);
                                  }
                                  function goContent(e:MouseEvent):void
                                  {
                                         if (prevOnStageLoader)
                                         {
                                                   TweenLite.to(prevOnStageLoader,1,{x:stage.stageWidth});
                                         }
                                         prevOnStageLoader = Loader(this["content" + (1 + buttonA.indexOf(e.currentTarget)) + "Loader"]);
                                         addChild(prevOnStageLoader);
                                         prevOnStageLoader.x = -1250;
                                         TweenLite.to(prevOnStageLoader, 1, {x:0, ease:Elastic.easeInOut});
                                  }
                        }
                }
    }
    
    

    OK, so the problem is SOLVED. I don't know where the problem was because I solved as so much ' try & test - try & test...» ', but

    I think that the problem was a table that should look like this:

    in the Main() public class

    private var buttonA:Array = new Array();

    in constructor

    Button = [signUp, login];

    and the full code here:

    package

    {

    import flash.display. *;

    flash.net import. *;

    import flash.events. *;

    import com.greensock;

    com.greensock.easing import. *;

    SerializableAttribute public class extends MovieClip Main2

    {

    private var container: charger;

    private var content1Loader:Loader = new Loader();

    private var content2Loader:Loader = new Loader();

    private var signUpUrl:URLRequest = new URLRequest("..) ("/ swf/signUp.swf");

    private var logInUrl:URLRequest = new URLRequest("..) ("/ swf/logIn.swf");

    private var buttonA:Array = new Array();

    constructor function

    public void Main2()

    {

    content1Loader.load (signUpUrl);

    content2Loader.load (logInUrl);

    Button = [signUp, login];

    for (var i: int = 0; i

    {

    buttonA [i] .addEventListener (MouseEvent.CLICK, goContent);

    }

    }

    private void goContent(e:MouseEvent):void

    {

    If (container)

    {

    TweenLite.to (container, 0.8, {x: 1250, ease:Cubic.easeInOut});})

    }

    container Loader = (this ["happy" + (1 + buttonA.indexOf (e.currentTarget)) + "Loader"]);

    addChild (container);

    Container.x =-1250;

    TweenLite.to (container, 0.6, {x: 0, ease:Quart.easeInOut});})

    }

    }

    }

  • InKeySetFilter not working correctly with the filter that is not IndexAwareFilter

    I found that InKeySetFilter works correctly with filter that does not implement IndexAwareFilter.

    for example:
    cache contains the Integer objects

    cache.keySet (new InKeySetFilter (new ClassFilter (Integer.class), cache.keySet ())) //returns all elements

    cache.keySet (new InKeySetFilter (new ClassFilter (String.class), cache.keySet ())) //also returns all the items

    InKeySetFilter works the same way, not only with ClassFilter, but with a filter that is not IndexAware. It looks like a bug.

    PS using coherence 3.5.3

    Hi Serge,

    Yes, there seems to be a bug, if m_filter isn't an IndexAwareFilter, applyIndex returns null instead of return m_filter.

    With the help of the following subclass should solve this problem:

    import java.util.Map;
    import java.util.Set;
    
    import com.tangosol.util.Filter;
    import com.tangosol.util.filter.InKeySetFilter;
    import com.tangosol.util.filter.IndexAwareFilter;
    
    public class FixedInKeySetFilter extends InKeySetFilter {
    
       public FixedInKeySetFilter() {
       }
    
       public FixedInKeySetFilter(Filter filter, Set setKeys) {
          super(filter, setKeys);
       }
    
       public Filter applyIndex(Map mapIndexes, Set setKeys) {
          Filter filter = getFilter();
          Filter res = super.applyIndex(mapIndexes, setKeys);
          return setKeys.isEmpty() ? null : filter instanceof IndexAwareFilter ? res : filter;
       }
    }
    

    Best regards

    Robert

  • Today after the update of cloud five programs, all work correctly, however, Lightroom opens, but only develops, gives a message: Please reactivate your membership to enable the module.

    Today after the update of cloud five programs, all work correctly, however, Lightroom opens, but only develops, gives a message: Please reactivate your membership to enable the module.

    What and how do I do to solve this problem? Thanks in advance!

    Hello Julian

    If you still encounter this problem, please try the following troubleshooting steps.

    Solution 1: Sign out of Lightroom 5.5 and then connect back with your Adobe ID

    Solution 2:

    Set the permission to the folder SLStore & SLCache:

    NOTE: Do this twice, once each for the SLCache and SLStore files.

    Mac:

    • Use the Finder to navigate to/Library/Application Support / Adobe / SLStore or/Library/Application Support / Adobe / SLStore.
    • Control-click on the folder and choose read information.
    • Expand the section sharing & permissions.
    • Click on the padlock icon in the lower corner on the right. Enter your administrator user name and password when you are prompted, and then click OK.
    • Set permissions:

    System: read/write

    Admin: read/write

    Everyone: read/write

    • Click the gear icon and select apply to closed. Close the dialog box for information.

    Win 7 / 8 to win:

    SLStore: ProgramData\Adobe\SLStore
    SLCache:

    Win 32 bit: program files Files\Adobe\SLCache\

    Win 64 bit: Program Files (x 86) \Common Files\Adobe\SLCache\

    • In the file Explorer, right click on the SLCache or SLStore folder, and then select Properties.
    • Click the Security tab and set the permissions:

    Administrators: Full control

    Power users: all except extraordinary and a total control

    System: Full control

    Users: Read and extraordinary

    • Click on advanced and, if requested, accept the (UAC) user account control elevation prompt.
    • Click on the owner tab, select administrators and click on modify.
    • Select Replace owner of subcontainers and objects. Click on apply and then click OK.
    • Click the permissions tab, and then click on change permissions.
    • Select Replace all permissions of child object with permissions inheritable of this object. Click OK, click Yes.
    • Click OK, and then click OK in the Windows Security dialog box. Click OK to close the advanced security settings dialog box.

    Suggestion 2: Rename the SLCache folder and relaunch Lightroom 5.5

    We have followed this issue of Lightroom. Please let me know what solution has solved your problem.

    If these solutions do not solve the problem for you, let know us.

    Thank you

    Scott

  • my SQL Developer does not work properly! Help

    Hello!!

    My problem here is not like I can't live or work, but it's REALLY annoying, see my SQL Developer does not take any different key of letters and the space bar, I mean, if I use the Enter key, does not alter the line, if I use the return key back isn't clear if I use F5/F9 does not execute the msec! and if the keys don't work!

    any ideas why this is happening? and if yes how do fix this problem?

    There is a well known bug but still not solved, causing this type of behavior, if you are a developer SQL 1.5.X you can work around the problem by loading the accelerators by default:

    Tools-> accelerators-> load Preset-> by default

    If you're on 2.1.X preset may be responsible for

    Tools-> preferences->-> others-> load keyboard accelerators

    2.1 this problem has not been reported so far, so if you are in 1.5.X you can consider upgrading.

  • DVD burn with iDVD works on new DVD players, but not on older versions of the DVD player. Any suggestions?

    VDs that I burn with iDVD works on new DVD players, but not on older versions of the DVD player. Any suggestions?

    I'm using an iMac with OS X El Capitan 10:11.1 and iDVD 7.1.2.

    You use DVD + R disks?  Those who are not compatible with DVD players before 1997.  The DVD-R is compatible with all DVD players.

  • Train with webutil works with the browser, but not with webstart JNLP 12 c

    Hello

    I set up forms and reports suite 12 c according to the instructions and I'm testing my forms updated since version 10 g.

    In some forms, I use webutil.

    I can run forms without webutil with the browser or java web start (everything works fine).

    I have problems with the forms use webutil tha, they work very well with the browser, but not with java web start.

    When I run forms with webutil and webstart I see all white and the "crash" application: I must leave because other forms without webutil also do not work.

    Here is my config in formsweb.cfg:

    [Appws] <-start java web

    form = nomeform

    Archive = frmall.jar, frmicons.jar

    WebUtilArchive = jacob.jar, frmwebutil.jar

    WebUtilTrustInternal = true

    WebUtilLogging = off

    WebUtilLoggingDetail = normal

    WebUtilErrorMode = alert

    WebUtilDispatchMonitorInterval = 5

    WebUtilTrustInternal = true

    WebUtilMaxTransferSize = 16384

    baseHTML = webutilbase.htm

    baseHTMLjpi = webutiljpi.htm

    basejnlp = webutil.jnlp

    WebStart = on

    [appnows] <-no java web start

    shape = mercurio

    separateFrame = true

    Archive = frmall.jar, frmicons.jar

    WebUtilArchive = jacob.jar, frmwebutil.jar

    WebUtilTrustInternal = true

    WebUtilLogging = off

    WebUtilLoggingDetail = normal

    WebUtilErrorMode = alert

    WebUtilDispatchMonitorInterval = 5

    WebUtilTrustInternal = true

    WebUtilMaxTransferSize = 16384

    baseHTML = webutilbase.htm

    baseHTMLjpi = webutiljpi.htm

    basejnlp = webutil.jnlp

    What could be the problem?

    Gianpaolo

    Remove Appws:

    Archive = frmall.jar, frmicons.jar

    WebUtilArchive = jacob.jar, frmwebutil.jar

    baseHTML = webutilbase.htm

    baseHTMLjpi = webutiljpi.htm

    Add frmicons.jar and jacob.jar to $ORACLE_HOME/forms/java/extensions.jnlp.

    and try again.

    Concerning

  • Why the HDR toning work with some pictures, but not for others?  I have CS6.

    I have Photoshop CS6 and when I go to HDR toning, it is only highlighted for work with some photos, but not others, why?  Thank you.

    HDR toning does not work with CMYK images. Change the RGB color mode, and then you will be able to use HDR toning. It also works with the color to grayscale mode.

  • Connection problem with SQL Developer 3.0.0.4

    I have a strange problem with SQL Developer (SD) 3.0.0.4. So that the implementation of a new connection I have in double entries listed for some of the databases listed in my TNSNAMES.ora file. When I try to connect to one of the databases has entered duplicated, I get the following Oracle error:
    ORA-01034: Oracle not available ORA-27101: Kingdom does not exist SVR4 shared memory error: 2: no files or directory
    however, if I try to connect to the same database using SQL * more or TOAD, it works perfectly and TOAD has no duplicates.

    At first, I thought maybe that SD has been reading multiple copies of the TNSNAMES.ora so I checked and removed all the duplicate files and set the variable of environment TNS_ADMIN to point to that and the single instance of the TNSNAMES.ora file. Yet once, SQLPlus and TOAD to work fine, but SD is always showing entries twice and always have reported the above error when I try to connect to a database with a duplicate entry. I should mention, I'm able to connect to the database that have only a single entry listed use SD.

    If I understand correctly, SD uses JDBC as underlying connection mechanism. Based on this "agreement" I thought that maybe I had a file corrupted in the Java Cache, so I cleared the cache, but I always get errors.

    As mentioned, I use SQL Developer 3.0.0.4 with Java 1.6.0_11 (included in the download). In addition, I have installed JRE 1.6.0_24 and I am running Windows XP SP3. Any ideas or suggestions are greatly appreciated.

    Craig...

    Hi Craig,.

    Or, if I have misunderstood completely the scenario you describe, here's a post on the forum about duplicate entries appear in the drop-down list Alias network when the connection Type is TNS:

    Developer SQL 2.1.0.63 TNS name in characters of the connection

    This solution involves clean a bad TNSNAMES. ORA file with double score entries to test the death of SID.

    -Gary

  • How to connect container with SQL developer

    Hi all

    This is probably a trivial question-, but I'm not able to find the answer. I use sqlplus most of the time, so I am not familiar with SQL developer.

    I have 12 c and container named ORACONTAINER, in this container, I HR schema.

    When I do connect via sqlplus ("sqlplus hr/hr@ORACONTAINER') - it works well, and"sqlplus HR/HR"will not work - and that's ok.

    With SQL developer I can connect as sys, but when I try h/h it gives me name of username/password invalid - because I do not know where to specify the user HR container.

    Thank you

    Darko

    Try to give ORACONTAINER service name in sql developer.

  • Problem with SQL Developer to capture

    Hi guys,.

    I am facing a problem for the last 4 days with SQL Developer. I use to migrate sql database to oracle SQL Developer. It worked well before and I had migrated some tables as well. But all of a sudden a few days before I had a mistake, I was unable to capture the objects. While I am trying to capture the sql database or the tables the progress dialog box is displayed as usual, but he suddenly gets hit and the green light turns red which is in the upper left corner. Said at that time, the progress message that appears at the bottom of the box +' stored jdbc:jtds:sqlserver: / / < hostname >: < port > / < the database name > ' +. But if I use another oracle server, then I can capture objects.

    Because of this error, I'm not able to go forward. I tried to solve this problem in many ways. But nothing helps! Please help me solve this problem, as it's an emergency.

    Thanks in advance.

    RAM.

    Published by: Ram Dhilip on March 22, 2010 08:16

    Published by: Ram Dhilip on March 22, 2010 08:16

    Published by: Ram Dhilip on March 22, 2010 08:19

    Published by: Ram Dhilip on March 22, 2010 08:34

    You can use the method of capture in offline mode:
    Click on tools-> Migration-> third party database offline Capture-> Capture database creation scripts
    Now select the output directory of these scripts and the source database. Also, make sure that you have selected the Batch mode. Once this is done, copy all scripts on a computer with an installed SQL Server client or perform the export on the SQL Server computer directly.
    Run the script and you'll get 2 directories with a couple of DAT files created. ALL switch to SQL Developer machine and load them into the SQL Developer
    Click on tools-> Migration-> third party database offline Capture-> Capture Script output load of database

Maybe you are looking for

  • MacBook pro 15 "heating problem

    My MacBook Pro that I bought in early 2015, has recently started abnormally warm under normal workload. I started facing this problem last month. Is what I run Firefox, watching videos on YouTube. Within a few minutes, the fan starts and the bottom h

  • Mail problem - there is no 'other' option to allow me to add an e-mail letter from BT to my apple mail

    I try to get my BT mail via my icon of mail from apple on the desktop, but there is no option 'other' to allow me to do this - why? Unless I have a Facebook, Yahoo, Google, etc related mail account there is no possibility to do same not the symbol mo

  • structure of flat sequence for benchmarking

    Hello Maybe this is very obvious, but I don't completely understand something with the sequence flat structures-FSS (I never use this structure by the way and I don't you not why they use it in this example). There's a doc OR online explaining some m

  • deactiveren lightroom programma op oud moederbord

    Op mijn nieuwe iMac werd een nieuw moederbord geplaatst visiting een defect. Het is due traveller om lightroom daarop you want. Op mijn iMac puts het nieuwe moederbord kan ik natuurlijk niet activeren omdat mijn maar voor een serienummer lightroom co

  • CC of Lightroom missing after the installation of the CC

    I have a new camera to buid and must do an update on the Lightroom (Version 5.7.1) that I can read the new photos. Also I build the new CC package. If I can update the PS and the bridge, but not the Lightroom. Is still the old version in the CC. I mi