two delicate SQLs with NULL in the list

Hi all

Select "true" double where (1,2) not in ((2,3),(2,null)); -A line
Select 'Yes' to the double where (1, null) not of ((1,2), (2,3)); -line 0

Could someone tell me why it is, please?

As far as I know, the first SQL will result in
(1,2). = (2,3) AND (1,2). = (2, null)

NULL being invovled, the management is evaluated to NULL (I guess), then no line should be returned.
I am completely confused by the difference between these two SQLs.

Best regards
Leon

As far as I know, the first SQL will result in

The two sql will be 'translated' the same thing. It will be visible when you are working with variables:

SQL> explain plan for select 'true' from dual where (:a,:b) not in ((:c,:d),(:e,:f))
/
Explain complete.

SQL> select * from table(dbms_xplan.display())
/
PLAN_TABLE_OUTPUT
--------------------------------------------------------------------------------
Plan hash value: 4034615273                                                     

-----------------------------------------------------------------
| Id  | Operation        | Name | Rows  | Cost (%CPU)| Time     |
-----------------------------------------------------------------
|   0 | SELECT STATEMENT |      |     1 |     2   (0)| 00:00:01 |
|*  1 |  FILTER          |      |       |            |          |
|   2 |   FAST DUAL      |      |     1 |     2   (0)| 00:00:01 |
-----------------------------------------------------------------               

Predicate Information (identified by operation id):
---------------------------------------------------                             

   1 - filter((:B<>:F OR :A<>:E) AND (:B<>:D OR :A<>:C))                        

14 rows selected.

See the predicate information, and learn your values from above to see how the filter evaluates.

Published by: MichaelS on November 8, 2010 22:04

made visible 'inequalities'

Tags: Database

Similar Questions

  • Open with options: I want to add a new application to the list right click on file-&gt; open with and rearrange the list so my search app is first. I know that I can use open with-&gt; other and select any application, but it takes too much time since I u

    I want to add a new application to the list right click on file-> open with

    and also reorder the list so my search app is first / top of the list.

    I know that I can use open with-> other and select any application, but it takes too long I should use my intended application in this way several times a day.

    Basically, I'm looking for a configurable way configure open with, something more to send to Windows.

    Thank you very much for all the advice offered.

    The operating system, not you, not control that open with the menu command.

  • dynamically fill area with words from the list

    Hi all

    I want to fill the entire area with words flash animation.

    the film begins in white, but as time past the visible area fills with words in a list of pre-written.
    Ideally, the height and the width of the words is random in a beach I determine.

    I wouldn't mind being pointed to a tutorial that shows how to fill an area of rectangles of size randomly, that might help.

    Finally, I want to be able to control the speed of the area being filled with an input (mouse or external sensor) device, but let's first!

    use flash 8.

    Thank you
    Aya.

    You can check this. He fills a space with words and keep filling the empty space. I ' ts free you can take the Ridge inside.

    http://www.Levitated.NET/daily/levEmotionFractal.html

  • Setting the text of a field with values from the list

    Hello

    I created a list with three properties and three values. I also three fields when the user types in
    simple text characters in the fields (fieldA, fieldB and fieldC), a button and a field empty that I created.

    In the list, I put = the text in each field property values. When I click on my button, I want to display
    ONLY the values of each property in the same field (for example: "Geils"). I can display a value of a property,
    but I need to display all the values of three properties. For example, if text fieldA =, text of fieldB = B and fieldC text = C.
    then when I hit the button, I would like to than "Geils' to read 'ABC '.
    Here's the jargon I've attached to my button (see the commented lines in the script for more info)

    global partNumber
    partNumber = [#prop1: the text of the field 'fieldA', #prop2: the text of the field "fieldB", #prop3: "fieldC" text]

    -the following line works to the value of #prop1 in "Geils".
    put getaProp (partNumber, #prop1) in the text of the "Geils" field

    -When I try the jargon to the next line, I get "[#prop1: 'A', #prop2: 'B', #prop3: 'B']" in the "Geils".
    Put the PartNumber in "Geils".

    I don't want the properties, only the values of all three in the field "Geils".
    I'm simplifying the explanation for ease of understanding. The application and the user input is to generate
    a reference number of a standard product offering that has several options for Assembly of products.
    Is this possible? I'm not that great at lingo and any help would be appreciated.

    Thank you very much
    Chris kotlinski ([email protected])

    Put PartNumber [#prop1] & [#prop2] PartNumber or PartNumber [#prop3] in
    Member "Geils".

  • BlackBerry Smartphones can with line within the list of Contacts (most of the time)

    Hello.

    My wife and I have all two storm with Verizon phones and I synced our contacts on two phones using Google Sync all contacts appear to be normal and functional.

    On her phone, when I'm inside the contact list and try to call a person from there, the phone screen opens but nothing happens.

    All of these steps produce this problem:

    -by selecting an entry in the contacts list and pressing the green button

    -opening of the contact first, by selecting a number (e.g. Mobile) and then pressing the green button

    -opening of the contact, select a number (e.g. Mobile) and using the menu button and "call Mobile".

    The only way it works is if I first enter the phone screen and choose the Contacts there - then it works.

    No idea what this can be?

    We talked to someone from Verizon, and they said that we had to hold the green button or the menu entry "Call Mobile" (etc.) for a period of time - never heard of this before and it didn't work ONCE - while remaining in the store...

    On my phone, everything works as you would expect, but I ran an update as soon as I got on the phone, so maybe that's why it works for me.

    On the other hand, this update wiped out all the information on my phone, and I had to download and configure everything again and install all the extra stuff from scratch, that's why I didn't run an update on the phone my wife again.

    Thus, a question is: if I create a backup with the Desktop Manager and then run an upgrade of the blackberry software, can I restore all settings and other programs downloaded with this backup?

    Thank you!

    No.... I'm on VZW and their current production OS (. 75) and numbering by any of the ways describe you works very well. Something is wrong with her camera... What is proposed is a refill of OS in an attempt to clear up the problem.

    But first... I have to ask, did you do a battery pop reboot? We know that these devices suffer from memory leaks and other, testify to the weird behaviors. With power ON, remove the hood back and remove the battery. Wait a minute, then replace the battery and cover. Power on and wait patiently through the long reboot - about 5 minutes. See if things return to functioning.

    Just a thought...

  • detection cameras two PB GigE with MAX on the same pc

    I installed on the same GigE camera for two PCs, each device has its own interface card (IP), but only a camera in dtected with max.
    cam0 sometimes and sometimes cam1. I have to wear each camera fixed an IP address, but still only the camera is detected.
     
    My question is how to do the configuration to appear the two camera at the same time with max.
    I use the version of MAX 5.3
    NEITHER IMAQDX 4.0
    You think even match for your help.

    Are you running Windows XP? If, therefore, due to limitations in the underlying OS stack, you will need to place the cameras in different subnets or to fill the two devices together in one virtual device (preferably) NIC.

    Eric

  • Box When sql with clob in the criteria

    I have the following select statement with a 'case when' which has a clob field in the criteria.
    I get an ORA-00932 inconsistent types of data: expected - got CLOB error.
    CASE WHEN FROM_FIELD = 'REOPEN'
    THEN
    (SELECT MIN(MODIFIED_DATE)
    FROM RECORDS
    WHERE MODIFIED_VALUE = 'CLOSE')
    ELSE CLOSED_DATE
    END
    [/CODE]
    
    There is a lot more to the SQL above, but it is basically what I am looking for.
    Looking for help with how to run this with the CLOB field (Modified_Value) in the criteria.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

    A strange with clob column is

    SELECT MIN(MODIFIED_DATE)
    FROM RECORDS
    WHERE MODIFIED_VALUE = 'CLOSE';
    will give you error 
    
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected - got CLOB
    

    But

    SELECT MIN(MODIFIED_DATE)
    FROM RECORDS
    WHERE MODIFIED_VALUE like '%CLOSE%';
    

    This will give record... :)

  • Folder path with all of the listed files dialog box

    Hello

    Someone here is an ActiveX control, or a workaround to have a folder of dialogue path which also shows the files in the folders? File LV dialog box displays only records if limit you the selection of records.

    Ideally, the browser would look like the browser folder with the "Select a file" button, but would also show the files in the folders. One solution would be to activate the files and folders and simply get rid of the file name of the path if they choose 'Open' instead of 'Current folder', but it's not ideal.

    This isn't the ideal solution because it allows the user to select files and folders, but he re - opens the dialog box if they do.

  • Exception of null on the list pointer implementing values when there are n rows in the table

    Hi Experts,

    I use JDev 11.1.1.7.

    I have a VO that I defined a LOV with no search box. In my page, I've added it as af:inputListOfValues, but when there is no rows in the table that I will meet with NPES

    < AdfcExceptionHandler > < handleException > ADFc: when Manager application exception exception handling threw a new exception.

    java.lang.NullPointerException

    at oracle.jbo.uicli.binding.JUCtrlListBinding.findOrCreateLOVDialogIteratorBinding(JUCtrlListBinding.java:5188)

    at oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding.getSearchBinding(FacesCtrlLOVBinding.java:204)

    to oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ ListOfValuesModelImpl.getSearchRegion (FacesCtrlLOVBinding.java:2001)

    to oracle.adfinternal.view.faces.model.binding.FacesCtrlLOVBinding$ ListOfValuesModelImpl.getQueryModel (FacesCtrlLOVBinding.java:1612)

    to oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase$ InternalLaunchPopupListener.processLaunch (SimpleInputListOfValuesRendererBase.java:1560)

    at oracle.adf.view.rich.event.LaunchPopupEvent.processListener(LaunchPopupEvent.java:108)

    Excerpt from JSFF:

    < af:inputListOfValues id = "xxx" popupTitle = "" search and select: XXX ""

    simple value = "#{pageFlowScope.SearchBean.xxx}" = 'true' "

    model = ' #{bindings. " XXXLOV.listOfValuesModel} "columns ="30"

    searchDesc = "Select XXX" >

    < / af:inputListOfValues >

    PageDef:

    < listOfValues StaticList = 'false' use = "LOV_XXX".

    IterBinding = "XXXIterator".

    ID = "XXXLOV" / >

    Is - this bug?

    Surprisingly, it works very well if there are lines in the table that the VO is querying.

    -Soham

    Soham,

    I think you just create this LOV page by simply moving the VO, right?

    You can select the box to tick 'Include no. Selection' in your VO, and see if that helps?

    See you soon

    AJ

  • Action of 'Reply with template' missing the Message filters choice "perform these Actions."

    Hello

    I just installed the latest version of Mozilla Thunderbird (24.4.0) and I am trying to create a "vacation response." I read on Mozilla's Support site:

    Another option is to create a message filter and respond to all incoming messages with a model.

    (see https://support.mozilla.org/en-US/kb/vacation-response?esab=a & s = out + of + the + office & r = 3 & as = s )

    I created a template and saved, and then I tried to create a message filter. However, there is no option for "Reply with template" in the list of choices for the action to perform. I see choices of action, for "Copy Message To", "move the Message to ' and"Forward Message To", but not"answer with model.

    Why is it missing and how to get what it appears?

    Thank you for helping.

    Hi sfhowes,

    I think I knew what is happening.

    First of all, I am a new user of Thunderbird. I have been using e-mail program from Apple on my Mac for many years. Since the upgrade to Maverick, his remark that the Mac mail program is unstable sometimes causing my Mac to freeze, sometimes lose my ability to change windows desktop, and slow clumsy scrolling problems in the e-mail program, but also the temporary e-mail program freeze.

    I installed the latest version of Thunderbird this weekend and am just become familiar with it. I have configured all 8 of my email accounts and they all worked very well. Then I added the Conversations module and I wanted to be able to rearrange the order of my eight accounts and found that Folderpane Tools was the ticket and it worked... had not noticed it was only up to 23... but it worked on 24.

    I said incorrectly that the Folderpanes changed the way that my folder pane displays things. It's the Conversation that made... FolderPane Tools let me reorganize and that's all. But information changed the way the things that have been presented in that in records added to organize by inboxes, sent, trash, etc. And models was one of these records, he added.

    Being unfamiliar with the models as I'm new to Thunderbird. Here is what happened. I created a message and saved as a template. I didn't realize that it was married to a particular account. And when I looked at the file of models I do not remember to see a subfolder for the specific account, for which the model was.

    After reading your last email that I removed the two add and my accounts appears in the folders pane as they did originally, most notable was the Inbox and folders of model disappeared.

    I tried to create a filter for a specific account and the problem remains, but I was wondering where my registered design went because I couldn't find it. So I created another and discovered that has created a new folder called Templates for the account that I was trying to make the filter "reply with template". And then I could see the "reply with template" option when creating a filter.

    To understand what was wrong in the first place, I reinstalled the Conversations, and all folders (Inbox, sent, trash, models) have been reinstated. I looked in the template folder and saw two subfolders, one for the account that I just created the new model and one for my default account. In my default account was the original model I've saved. And now when I try to create a filter by using the original template, I see the answer with the template option.

    I can no longer reproduce the problem since the Conversations, creating a second template and then uninstalling reinstalling Conversations.

    So, the problem is solved, but something is not quite write when the first model created during the installation of the add-on of Conversations. I don't remember see a subfolder in the Templates folder when I created the first model... I could be wrong, but all I remember is the model itself in the Template folder, and not in a subfolder. So I guess that the answer with the Template option did not appear because the model I made did not seem to be assigned to an account.

    Thanks for help.

  • X 220 very slow fill in the list of programs in the control panel

    Hello guys,.

    I have 3 thinkpads to home, 1 T420, 1 X 200 and 1 X 220, who happens to have the highest spec (maxed out, i7, Intel SSD 320, 8 GB ram). All are running Win7 X 64, but strangely X 220 is very slow fill the program list when I select panel-> uninstall a program. The two other machine can finish populating the list in less than 3 seconds, while X 220 sometims needs more than 30 seconds to fill completely the list.

    The number of programs installed in X 220 97, how many not much more than the other two. I'm very * beep * on my X 220 and has the latest drivers of Lenovo.

    Other than this issue, the laptop is majorly without problem. Not sure, it's software or hardware problem.

    Someone has an idea of what went wrong or have similar problem?

    Thank you

    Thanks for all the answers. It turns out that this has something to do with group policy that applies to all computers in the company, others in our society have the same problem of population slow list.

    The reason that our home computers do not have this problem is because they are not imposed to politics.

  • Relationship between the list and ListField...

    Hey people of Java...

    I can't thank you enough for your answers because I'm really starting to "grok" the paradigm of Java.

    Another came today I'm having problems understanding I deconstruct this app MemoryDemo...

    In the screen of the demo is these two lines:

    Get and display the list of customers.
    _customerList = CustomerList.getInstance ();
    _customerListField = new MyListField (_customerList.getNumCustomerRecords ());

    Well, now I understand the first line perfectly. She develops an object with the contents of the customers it contains.

    The second line calls a custom ListField routine that I show below:

    the final private class MyListField extends ListField
    {
    public MyListField (int numEntries)
    {
    Super (numEntries);
    }

    }

    Here is the part that I don't understand:

    It seems to appeal to both the MyListField() and the super() is simply the NUMBER of elements required, but not * that * list to use.  Exactly how is MyListField() or super() knows how to use the list of customers?  I ask because this exact routine is used a few lines more later (in the part of the main screen) to do the same thing for a list of the records of the order - even once without any reference to which list to use.

    It doesn't seem to be an explicit connection or the relationship between the _customerList and ListField is building.  Is somehow deconstruct '_customerList.getNumCustomerRecords ()' to its root and use _customerList somehow?  I don't think that I changed the call to this:

    _customerListField = new MyListField (_customerList.getNumCustomerRecords ());
    _customerListField = new MyListField (PICK_A_NUMBER);

    Where the constant is: public private static final int PICK_A_NUMBER = 50;

    And he ALWAYS displays a list of customers (though now with only 50 files).  How to do know?

    Thanks in advance!

    -John

    "I guess that somewhere in the interior architecture of the ListField, he knows that he has to paint the whole - one at a time - when put on the screen - that's it."

    Fix.

    This is the great thing about ListField.  It attracts only those who are on the screen.  If you use ListField draw a list of 10,000 rows (I tested), and it will only extract and draw the 10 that he needs.

    "Again, I don't find any explicit loop where it is through each element and then calling drawListRow()."

    Good yet once, it is not there.

    "Maybe one day I'll be able to pay it back here."

    It would be great.

  • Refuses to pages to center the list items correctly (Pages 5.6.1)

    Hi guys! There is a problem with centering of the list items. When I create one of all kinds (numbered for example) and you want to place it in the center of the document, I get this:

    To move it to the right place (and I doubt that it is in fact a true Center) I need to use the list tab and use the left alignment as in the following image:

    Is there a way to make Pages to do things - to move the text with a number when I want to place it in the center of the document?

    Tried everything. Nothing works.

    Thanks in advance!

    [deleted - / viking] Thought I had it fixed, but apparently not.

  • Add the constraint not NULL in the existing table that has null values

    Hello

    I want to add a constraint not null to and an existing table, but the table already contains values null in this column.

    EMP

    Emp_id name

    1 axada

    2

    3 sdkdd

    Here is already the data IE 2 empid is Null as name. I must add a fool of constraint not null which new values will not be null, but I don't want to change the data of exisitng alreadt which is null.

    Hello

    "The opposite": NOVALIDATE does not validate the data that is ALREADY in the table, but do not allow the insertion of a NULL value.

    Have you tried my sample code?

    CREATE TABLE MaTable (x NUMBER PRIMARY KEY, y NUMBER);

    INSERT INTO myTable VALUES (1, 123);

    INSERT INTO myTable VALUES ( 2, NULL );

    INSERT INTO myTable VALUES (3, 456);

    ALTER TABLE mytable MODIFY (y NOT NULL NOVALIDATE );

    INSERT INTO myTable VALUES (4, 678);

    INSERT INTO myTable VALUES ( 5, NULL );

    SELECT * FROM MyTable;

    '2' line was inserted with null before the creation of the NOT NULL constraint, this line remains "as what" at the end of the trial.

    '5' line trying to insert a NULL value after creating the NOT NULL constraint, which is denied.

    Best regards

    Bruno.

  • parameter with null in LOV

    Hello

    A list of values of a parameter contains null. If I chose the value null, it introduced the null values. If I chose another value, he brought this value more null values.

    Previous questions in the forum, I got to know of the case at the time to choose a non-null value value and does not have null values in the report.

    However, now the user can not choose the value zero and get all the null values in the report. When you select null from the list of values, the report is empty.

    Thank you.
    Leah

    Hello

    This is a known bug. According to me, it is resolved in the latest version of 10g, 10.1.2.3. You can get around using a concatenation, for example using 'NAKED' |' He'S ' instead of 'NULL '.

    Rod West

Maybe you are looking for