strange behavior on the procedure

Hello

Today, in my class I came across a very mysterious behavior of Oracle DB without logical explanation. If anyone knows what this could mean that it would be useful.


Some cases of training:

SELECT name
Employees
WHERE id_employee IN (SELECT id_employee
Of employees_seminars
natural join seminars
WHERE seminar_name = 'PHP');

-> This works, lists employees who participated in PHP seminar

same case with NOT IN:

SELECT name
Employees
WHERE id_employee NOT IN (SELECT id_employee
Of employees_seminars
natural join seminars
WHERE seminar_name = 'PHP');

-> This works, employees of lists who NOT attended the PHP seminar

And now comes the interesting - even put in the procedure with cursor + loop + fetch dbms_output (not paste complete SQL here, but would be also possible if necessary) and execution of the procedure, only the variant with NOT IN worked, the other (with only IN) shows nothing!

Any ideas what could be wrong with that?

I don't need to work, I was wondering as even the professor asked himself with me, so I decided try to check if this is a bug or what is magic.

Thanks a lot if anyone would be interested in solving this mystery :-)

(we use version 10.2.0.1.0 XE)

Filip

Hello

905502 wrote:
And now comes the interesting - even put in the procedure with cursor + loop + fetch dbms_output (not paste complete SQL here, but would be also possible if necessary) and execution of the procedure, only the variant with NOT IN worked, the other (with only IN) shows nothing!

In your last post, you posted a procedure of NOT IN. Why, after the procedure which worked and not one that you don't understand?

Any ideas what could be wrong with that?

Yes:

CREATE TABLE "STUDENT2"."SKOLENI"
( "ID_SKOLENI" NUMBER(*,0),
"NAZEV" CHAR(25 BYTE), ...

I suspect that the problem is the CHAR data type.
Here's everything you need to know about the datayype TANK: do not use it. Use rather VARCHAR2.

There are rules on how tanks are compared to the VARCHAR2s, and there is probably a subtle difference between what you do one place (where you get them expected results) and somewhere else (where you have not), such as the use of a literal in one place and a variable in another. Such a difference would not matter with a VARCHAR2, but it might with a TANK.
You can search comparison rules in the manual of the SQL language if you really want to, but it is simpler, just to avoid the completely CHAR data type.

Tags: Database

Similar Questions

  • I get a strange behavior of the bar tabs and the address bar in Firefox 29,0 for Mac.

    I just installed Firefox 29,0 for Mac.
    I have a strange behavior of the bar tabs and the address bar with this new version.
    Instead of the address bar, I get two rows of symbols. And it is impossible to write anything in the address bar.
    (I add a screenshot, but I can't find a way to do it).

    Firefox has an RSS icon in the palette of the toolbar that you can drag a toolbar (but not on the location bar container).

    • Firefox menu button > Options/Preferences > toolbars
    • View > toolbars > customize
  • Strange behavior of the browser blocks SQLDEV DM

    Hello

    I feel some strange behaviors in the browser of Datamodeler.

    After the opening of my model

    I have doubleclick in the window of the browser to fetch a few properties of the index:

    Drawings and models > MyModel > relational models > my RelModel > models > Oracle Database 10g > Tables

    So far, everything that happens.

    -I can select the tables and

    -doubleclicking shows the properties of the table.

    -I can scroll vertically

    -Select other tables

    -open and close the subtree of this physical tables

    Now, as soon as I click on any 'more' in the physical tables (for example, the index node or node of the plate) the browser "tri-de gel".

    The tree is distorted, scrolling seems erratic and it is impossible to select. Most of the time the main menu is also distorted.

    If I make the browser window, most of the time I'm able to hit the "file > save" from the menu. The model seems to be registered properly.

    No damage seems to have been done to the template on the reopening

    I'm on Windows 8 pro with the 64-bit version of datamodeler version 4.1.2.895 (from datamodeler - x 64 - 4.1.2 - 895.zip)

    Any ideas anyone?

    any response greatly appreciated.

    concerning

    Wouter

    Hi Wouter,

    I'm sorry, this is a bug and we are preparing a new version with this bug fixed.

    If I make the browser window, most of the time I'm able to hit the "file > save.

    Close the Data Modeler (X - close button in the upper right corner) and it will ask to save the drawing it is changed.

    Philippe

  • Strange behavior of the rectangle tool

    I drew a rectangle with the rectangle tool and got a form than of a conical label around the rectangle. Never seen that before and I could not duplicate once I opened the application again. This seems a strange behavior of the app, or is there something that I don't know this tool? Please tell me this is something lacking in my knowledge base. It drives me crazy

    Monika, yes it was. He worked with the forward Warp effect. Thank you for your response. Mental health is back thank you for your kindness

  • Strange behavior with the PSD in Photoshop

    I am currently working with a two-page ID CS5.5 document. This is a CMYK document with CMYK images and grayscale.

    Strange behavior is the following: I have a gray levels (tiff) image that is repeated on the page 1 and page 2. This image looks completely different from page 1 to page 2. I have triple checked everything (opactiy, effects, etc.) and then I started to remove items from page 2 one by one.

    As I deleted a psd file all of a sudden all the images in grayscale on page 2 changed his appearance to match page 1. The PSD in question is also in CMYK with a transparent background. What the frack happens?

    I'm more concerned to know if it makes a difference when it goes to print, or if it's just weird screen in InDesign.

    Anyone who has heard of this or know why this happens - would like to hear from you.

    Thank you!

    I think it's simply because of full transparency on the page. Should not affect the production of gray images... but check in Acrobat.

    Mike

  • Strange behavior with the function «Help in command line»

    So I do a little playing with the opening of the files compiled help (.chm) with the command-line help feature, and I saw a strange behavior when trying to index multi-level access keywords. According to the documentation, if you set the 'Key' operation, you can enter a value for ' string to search for "to access this section. The more precise help that:

    If this string contains a keyword index, the string must match the key of the index as it appears in the help index file. To access a topic with a multilevel index keyword, enter the keyword of the top-level index, a colon and the keyword of the second level index. Do not separate the elements with spaces. For example, a chain of error codes: GPIB jumps about a subject with a keyword of top-level index of error codes and a second level keyword index of GPIB.

    All right, seems simple enough. Except that when I tried, I couldn't work, even with the example provided. I tried the following simple test:

    Opens the help file, but it opens to this page, not to the page ' error codes: GPIB "non-descript. I saw this in 8.2 and 8.6. Anyone have any success with access to a multi-level keyword?

    Note - side

    Curiously, the Index for the help lvconcepts.chm file looks like this:

    In other words, the input index text is just "GPIB", but the text that appears in the keyword field is "codes error, GPIB. I'm curious to know how this was accomplished. I decompiled the lvconcepts.chm file and watched the .hhk file, and it is not immediately obvious to me. (By the way, if you try to use "error codes, GPIB" it does not either).

    Hello

    Please contact National Instruments!
    It is a very strange behavior.  I tested out and seen the exact
    same results you are experiencing.  This was reported to R & D (AUTO ID # 130246) for further investigations.
    From what I can tell the a possible workaround solution that we have documented
    in the post of root Canal.  I can't continue to look into this in order
    to see if there is no other workaround solution or a reason why it is
    run in this way.  Thanks much for the feedback!  If
    you have any other questions on this subject please post them here.
    Have a great day!

  • Strange behavior of the CAM Table SG300-28

    We have two switches SG300-38, both set to update to the latest firmware (1.1.2.0) and the two experience a strange problem in the MAC address Table. It seems that switches cannot learn the mac address, or forget too quickly learned in MACs.

    The switches have a very basic, just configuration of VLAN, but the problem is constant in all the VLANS. Whenever we start a file transfer, we can see (and we have confirmed with packet capture) traffic is flooded among all other ports.

    To test it, we added a few MACs static, and the traffic to these Mac works correctly.

    Please, can I do to stop this behavior? It seems that we have gone back to the time of the Hub!

    Natalio,

    This firmware fixed some issues with the MAC address tables. Factory reset switch and reconfigure and test it. I've seen a few problems when upgrading to the latest 1.1.2.0 fabless switches - 10% of cases have to factory reset reset.

    Jasbryan

  • Strange behavior of the ADF in IE

    Dear Guru,

    We have an application developed using Jdeveloper - 11.1.2.3 and deployed to production WLS - 10.3.5, when running applications through internet Explorer became 'with the exception of compatibility"then we added under settings in the application (as suggested in many blogs) Web.XML and deployed the same,

    < context-param >

    oracle.adf.view.rich.HIDE_UNSUPPORTED_BROWSER_ALERTS < param-name > < / param-name >

    IECompatibilityModes < param-value > < / param-value >

    < / context-param >

    Now not to launch except for compatibility but demand was showing strange behavior as

    (1) after that expiry of the IE user page should clear the cache to re-login to the application, that is not the case in chrome and mozilla.

    (2) little components or records show not yet what is normal in chrome and mozilla.

    Please help me out.

    Best regards,

    Hello

    Please specify the version of Internet Explorer. Remove the entry mask not supported.

    To set this feature, use the following:

    1. for 11.1.1.6.0, 11.1.2.0.0, 1. 11.1.2.2.0 and 11.1.2.3.0, download and apply the hotfix 14400317 in your JDeveloper/ADF environment.

    2. for all the above mentioned versions, add the context-param for version detection of agents activated using the version of Trident on the version of the browser in the Web.XML in your ViewController project:


    org.apache.myfaces.trinidad.Agent #OVERRIDE_IE_COMPATIBILITY_MODE
    true

    I also tried this and his work in my environment of webcenter for IE 8 and 9.

    Reference:something about the Fusion Middleware: work around IE (IE8/9) Compatibility Mode in ADF/WebCenter App

    Thank you
    Amey

  • [MAF - AMPA] Strange behavior of the MAF with REST service

    Hi MAF Experts.

    I just noticed that there is a strange behavior in my application of the MAF. The first loading of the page, amx:page does not make its contents (of REST). However if I kill the app and relaunch the app, content appears.

    Pattern:

    1. Start of the CRG App
    2. Opening of session
    3. Dashboard (the content is rendered)
    4. Go to any other aspect (lets say a list of products)
    5. Open product list (content do not get returned)
    6. Kill the MAF application
    7. Start of the CRG App
    8. Dashboard (the content is rendered)
    9. Go to the product list
    10. List of products (content gets rendered)

    I put a few breakpoints on EntityCRUDService and RestPersistenceManager.

    So far it return the list of entities and display the correct data (from watches in debug mode)

    Last thing I noticed is the red color below. She defined the EntityList with the new value of REST (This displays a correct value).

    TaskExecutor.getInstance (.execute (isDoRemoteReadInBackground ())

    , () -> {

    Auto Sync all actions pending first, pass false for inBackground because

    We want to process actions pending before the reading distance

    getDataSynchManager (.synchronize (false));

    The list of entities < E > = executeRemoteFindAll();

    If (entities! = null)

    {

    When an error occurs (for example server is not available, the method returns the value zero)

    setEntityList (entities);

    }

    });

    Any suggestion?

    All the rest service are configured with AutoQuery = true in the persistence - mapping.xml

    See you soon,.

    Hendry

    Hendry,

    Thanks your testcase, I was able to understand the problem.

    It turns out that MAF 2.1 has problems dealing with the advanced way in which AMPA running background tasks with the help of a thread in all of features.

    We have slightly modified the implementation in AMPA to use one thread per function and now the update issue is resolved. I sent you a link to new construction.

    We will publish the new generation soon on GitHub so that others can benefit in the same solution.

    Steven Davelaar,

    Oracle Mobile A-team.

  • Strange behavior of the network

    Hello. I am testing now ESXi 6.0 and I have a very strange behavior of network on Windows Server 2012 R2 and Windows Pro 8.1.

    I have the following virtual machines:

    1. Windows Server 2012 R2 domain controller;
    2. Additional server with no services on Windows Server R2 2012;
    3. Some PC on Windows Pro 8.1;
    4. Linux Debian Server 7;

    The problem is sometimes VMs Windows network connection loss.

    When I connect to the console Windows 8.1 I see icon disconnected network which changes whenever I'm online. Windows Server does not display this icon, so I can't say anything whatsoever thereon.

    After I investigate this problem, I changed network cards set by disabling the option to sleep. Also I changed eating patterns by disabling all the options of sleep.

    Now. VMs of Windows 8.1 seems to work very well, additional server seems to work fine too. VM Linux works well from the beginning. But DC VM is still periodically lose network and re-login, only when I turn off and turn the adapter by hand.

    I have no idea what to check out more. I also checked logs on DC VM and vmware.log on ESXi host and don't have not find anything this network disconnects or Power Manager.

    OK, this may be. There is no available e1000e with the stand-alone installation.

    Have a trie with the vmxnet3 map

  • Strange behavior with the paths of the image

    All, morning

    I have a strange behavior going on with my image paths and I was wondering if someone might be able to identify what they think happens?

    On the relative paths of my model (.. / Images/example.jpg) work very well.

    However, on the pages of the child the same relative paths do not display images and so I had to remove the '... /' to get to work (ending up with Images/example.jpg).

    This is obviously not desirable that I'm going to manually tweak the child pages where the content of the combo box was copied directly from the model that works very well.

    Any ideas what might be up?

    Thanks in advance

    You have not yet entered the main directive of models, which is that only changes to the unchangeable in the model regions will be applied to the child pages.  If this were not true, then we could never put unique content on a child page!

    So - the diagram is as follows:

    1 create a template and save it.

    2. the model of a page child spawn.  The child page will be a 'identical' model copy.

    3. Add a unique content to the page of the child.  The child page is now more a copy of 'identical' of the model.

    4 change something in the part NOT MODIFIABLE from the model and save it - all child pages receive the change.

    5 change something in the EDITABLE model part and save it - no child pages do not receive the change.

    6 spawn a NEW page of the model, and it's still a copy of 'identical' AGAIN CHANGED model.

    See how it works?

  • Strange behavior of the Animation

    Hello guys.

    I'm fading in the textArea 3 and 3 labels State 'default' to 'addRecommend' and fade out the text box and labels seeOther State to addREcommend. The defautl-> addRecommend works very well. However, addRecommend-> seeOther

    show "a text box" (which is not included in State seeOther) and kill my "add to database button" (which is in a State of seeOther).

    If I delete detailText and details of my transition melted, everything will work, but I need to have my detailText and fade out too much in detail. If I do not explain my question, please copy my code and paste it into your flex. I spent 5 hours to debug it but no luck. I have really really grateful if someone could help me.

    < fx:Script >

    <! [CDATA]

    protected function add_clickHandler(event:MouseEvent):void

    {

    currentState = "addRecommend";

    / / addRecommendMove.play ();

    }

    protected function seeOther_clickHandler(event:MouseEvent):void

    {

    currentState = "seeOther."

    }

    ]]>

    < / fx:Script >

    < s: states >

    < name s: State = "default" / >

    < s: State name = "addRecommend" / >

    < s: State name = "seeOther" / >

    < / s: states >

    < s:transitions >

    < s:Transition toState = "addRecommend" >

    < s:Sequence >

    < s:Parallel >

    < s:Move target = "{add}" / >

    < s:Resize target = "{add}" / >

    < s:Move target = "{seeOthers}" / >

    < / s:Parallel >

    < s:Parallel >

    < s:AddAction target = "{[yourname, username, recommendCityLabel, recommendCity, detailText, detail]}" / >

    <!-if delete detailText and detail, the transition fade will be fine... but I need them to fade our and bland in...-->

    < s: bland target = "{[yourname, username, recommendCityLabel, recommendCity, detailText, detail]}" / >

    <!-if delete detailText and detail, the transition fade will be fine... but I need them to fade our and bland in...-->

    < / s:Parallel >

    < / s:Sequence >

    < / s:Transition >

    < s:Transition toState = "seeOther" >

    < s:Sequence >

    < s:Parallel >

    < s: bland target = "{[yourname, username, recommendCityLabel, recommendCity, detailText, detail]}" / >

    <!-if delete detailText and detail, the transition fade will be fine... but I need them to fade our and bland in...-->

    < / s:Parallel >

    < s:Parallel >

    < s:Move target = "{add}" / >

    < s:Move target = "{seeOthers}" / >

    < / s:Parallel >

    < / s:Sequence >

    < / s:Transition >

    < / s:transitions >

    < s:Label color = "#000000".

    x="10"

    y="60"

    ID = "YourName".

    fontSize = "13".

    fontFamily = 'arial '.

    text = "Your name" includeIn = "addRecommend" / >

    < s:TextInput x = "10" y = "75" width = "50%" paddingLeft = "10" id = "userName" includeIn = "addRecommend" / >

    < s:Label color = "#000000".

    y="110"

    x="10"

    fontSize = "13".

    fontFamily = 'arial '.

    ID = "recommendCityLabel".

    text = "Recommended City" includeIn = "addRecommend" / >

    < s:TextInput x = "10" y = "125" id = "recommendCity" width = "85%" includeIn = "addRecommend" / >

    < s:Label color = "#000000" x = "10" y = "155".

    fontSize = "13".

    ID = "detailText" <!-if I add this label to my transition melted, the strange behavior->

    text = "you can add details!

    fontFamily = 'arial '.

    includeIn = "addRecommend" / >

    < s:TextArea = "180".

    x = "10".

    paddingLeft = "10".

    ID = "detail" <! - if I add this textArea for my transition melted, the strange behavior too - >

    Width = "90%" height = "160" includeIn = "addRecommend" / >

    < s:Button id = 'Add '.

    x="10"

    y="60"

    y.addRecommend = "350"

    width = "210".

    width.addRecommend = "150"

    height = "35".

    fontWeight = "bold".

    fontSize = "12".

    fontFamily = 'arial '.

    toolTip = "recommend your favorite places.

    label = "add your recommendation."

    label.addRecommend = "Add to database"

    Click = "add_clickHandler (Event)" "

    />

    < s:Button id = "seeOthers".

    y="105"

    x="10"

    y.addRecommend = "400"

    width = "220".

    height = "35".

    fontWeight = "bold".

    fontSize = "12".

    fontFamily = 'arial '.

    toolTip = "see recommendation of others.

    label = "see other recommendations.

    Click = "seeOther_clickHandler (event)" / >

    Hello

    I had a look at these, I think that the provision itself was a bit wonky, I enclose the code in a link like this forum tends to eat code that doesn't help when you're trying to look at the code.

    You have the basics of work, but to avoid confusion in the States and the code, I suggest you try to group your objects to display relevant to the effects of transition, it is easier to control and maintain.
    On a side note use you designview in the ide to see how States will look, this tool will be of great help while you learn, ignore anyone who tells you not to use designview, it is a page layout tool and works well for these types of tasks.
    David.
  • Strange behavior of the WHILE loop

    Dear experts LabVIEW

    I would ask you to give me an explanation of the behavior of the very simple VI as an attachment. This VI contains a WHILE loop with three parameters, input and STEP. The table of RESULTS shows the calculated values. Considering the input parameters OF = 0 TO = 1 LEVEL = 0.1, then the RESULTS table contains the values 0, 0.1, 0.2,..., 0.9, 1. Considering the input settings ON = 1, TO = 2, STEP = 0.1, then RESULT table contains values 1, 1.1, 1.2,..., 1.8, 1.9. The question is, why the number 2 is missing?  (I also tried to use different types of data, but without success). Thanks for your thoughts.

    Juraj

    Because you compare floating point numbers.

    For example, 0.1 cannot be represented in exactly in binary, cela repetitive additions probably will not end in an exact integer later.

    Since the three entries, you can calculate the number of values exactly and use a loop FOR. Do not use the convoluted code...

    Why not just use ramp model?

  • Strange behavior of the run LabVIEW VI 2013 LabVIEW 7.1

    I'm trying to extract some data hardcoded from old code LabVIEW 7.1 and decided to write a small program in 2013 of LabVIEW. The program opens a reference to a VI 7.1, search enums and call it with reference to all combinations of enums.

    Actually quite simple, but I've noticed that something is without work, as expected. The old screws have this enum called mode (0 = Manual, 1 = Auto), who is not connected to any connector and has a value default 1 = Auto.

    In LabVIEW 7.1, everything works as expected, but when I load this 2013 LabVIEW VI and execute it, without saving the file, it executes the case of 'Manual' rather than 'Auto '. I used a probe to check the value of mode in LabVIEW 2013 and the value is 1 = Auto, but he spends with the value 0 = manual box.

    This is just a simplified version of the screw, but the behavior is absolutely the same. The VI (LabVIEW 7.1) is attached. Try to load in 2013 of LabVIEW and run it. I don't have 2014 on my PC.

    Screenshot of running in 7.1 and 2013

    Any ideas? This happens because of the strange settings on my installation of LabVIEW 2013? Can you reproduce this?

    If you have a process already for execution programmatically these VI, what happens if you add to that and make something like a Vale put on the controls programmatically prior to execution of the VI.

  • Strange behavior of the PNG with transparent background

    Hi all

    I am facing a strange problem on a request of my friends that I'm upgrading. The application is written in CVI2009SP1 and is already running on the customer's site. I am now adding several new features and made some changes in the application file UIR and all of a sudden all the images I have show a black background instead of transparency.

    The strange thing is that I see the images correctly in the editor of the UIR, the black background being shown only at runtime, no matter if debug or release.

    It is an example of wat I see:

    I tried to reload the image in control after checking transparency but the situation has not changed. The problem is that the images in. The other images, PNG format in. Format ICO show properly.

    I see this behavior in my office on both two machines wirth 2009SP1 for 2012SP1 development and execution. The same phenomenon occurs on the client PC runtime 2010SP1 and no IDE installed. If I run the original application with the UIR unmodified, transparency is properly managed. I'm not operated by program images, which are only decorative elements on the user interface.

    What can happen?


Maybe you are looking for