ANY,ALL operator ....

Hi ,
Can you show the difference between ANY and ALL operator in Oracle10g...?????
I have written the following two sets of sql queries against the emp table of SCOTT schema.... The results were not different....
select ename from emp where sal>any(select min(sal) from emp)
select ename from emp where sal>all(select min(sal) from emp)
and
select ename from emp where sal>any(2000,2200)
select ename from emp where sal>all(2000,2200)
In pairs the results are the same.....
In the Oracle Doc there are the following notes.....
ANY
Compares a value to each value in a list or returned by a query. Must be
preceded by =, !=, >, <, <=, >=. Can be followed by any expression or
subquery that returns one or more values.
Evaluates to FALSE if the query returns no rows.
ALL
Compares a value to every value in a list or returned by a query. Must be
preceded by =, !=, >, <, <=, >=. Can be followed by any expression or
subquery that returns one or more values.
Evaluates to TRUE if the query returns no rows.
Many thanks....
Sim

Or simply:
sal > any(100,200) means salary greater than ANY of the entry in the list.
Means greater than the least.
<br>
sal > all(100,200) means salary greater than ALL of the entry in the list.
Means greater than the greatest.
Taking AVG(SAL) as 100:
select ename from emp where sal>any(select avg(sal) from emp)  =>
  sal > ANY(100) =>   sal > 100
<br>
select ename from emp where sal>all(select avg(sal) from emp)  =>
  sal > all(100) =>   sal > 100
They means samething, so same result.
So if the list contains only one entry, ANY and ALL means the
same.Moreover in that case you dont need ANY or
ALL.Simply the comparison operator will do the samething.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Failed to load WMSchApi.dll. Error 1114 All Operation disabled

    We currently have a large number or workstations that have imported fine, we
    can view diag info but are unable to use any remote control functionality.
    Below is an extract from the zen remote log file which shows a failed load
    off wmschapi.dll and a critical error .
    Anybody got a fix that can be automated
    Thanks
    Scott
    We're using the ZFD agent from IR4 patch which is working fine on other PCs,
    all 49 SP2 clients, W2K SP4.
    #(660)# 16:59:50 11/24/04 Normal : Loading : C:\Program
    Files\Novell\ZENworks\ZenLite.dll
    #(660)# 16:59:50 11/24/04 Normal : Loading : C:\Program
    Files\Novell\ZENworks\ZenPol32.dll
    #(660)# 16:59:50 11/24/04 Normal : ZENNDSUtil: Successfully loaded
    dependent modules...
    #(660)# 16:59:50 11/24/04 Normal : LoadZenAutilLibraryAndGetProc:
    Successfully loaded ZenAutil.dll and its dependent DLLs
    #(660)# 16:59:50 11/24/04 Normal : Console version is SP1
    #(660)# 16:59:50 11/24/04 Critical : ZenRmServer: Failed to find
    Console Version #0.6.5.1 in supportability list
    #(660)# 16:59:50 11/24/04 Warning :
    RMAudit::Auditing.cpp:RMSesstionStart() The audit log file is not found.
    #(660)# 16:59:50 11/24/04 Normal : ZENUtil:
    ZENIsWorkstationRegistered: wsDN 'CN#(660)# 16:59:50 11/24/04 Normal :
    Workstation is registered
    #(660)# 16:59:50 11/24/04 Normal : ZENNDSUtil: Attempting to read
    policies...
    #(660)# 16:59:50 11/24/04 Normal : ZENUtil:
    ZENIsWorkstationRegistered: wsDN 'CN#(660)# 16:59:50 11/24/04 Normal :
    Workstation is registered
    #(660)# 16:59:50 11/24/04 Normal : Reading workstation DN and tree
    name...
    #(660)# 16:59:50 11/24/04 Normal : workstation DN -
    CN
    #(660)# 16:59:50 11/24/04 Normal : Loading : C:\Program
    Files\Novell\ZENworks\WMSchApi.dll
    #(660)# 16:59:50 11/24/04 Critical : ZENNDSUtil: Failed to load
    WMSchApi.dll. Error: 1114
    #(660)# 16:59:50 11/24/04 Normal : Reading workstation DN and tree
    name...
    #(660)# 16:59:50 11/24/04 Normal : workstation DN -
    CN
    #(660)# 16:59:50 11/24/04 Normal : Loading : C:\Program
    Files\Novell\ZENworks\WMSchApi.dll
    #(660)# 16:59:50 11/24/04 Critical : ZENNDSUtil: Failed to load
    WMSchApi.dll. Error: 1114
    #(660)# 16:59:50 11/24/04 Normal : Neither policy settings active.
    All operations disabled.

    > We currently have a large number or workstations that have imported fine, we
    > can view diag info but are unable to use any remote control functionality.
    >
    > Below is an extract from the zen remote log file which shows a failed load
    > off wmschapi.dll and a critical error .
    >
    > Anybody got a fix that can be automated
    >
    > Thanks
    >
    > Scott
    >
    > We're using the ZFD agent from IR4 patch which is working fine on other PCs,
    > all 49 SP2 clients, W2K SP4.
    >
    >
    > #(660)# 16:59:50 11/24/04 Normal : Loading : C:\Program
    > Files\Novell\ZENworks\ZenLite.dll
    > #(660)# 16:59:50 11/24/04 Normal : Loading : C:\Program
    > Files\Novell\ZENworks\ZenPol32.dll
    > #(660)# 16:59:50 11/24/04 Normal : ZENNDSUtil: Successfully loaded
    > dependent modules...
    > #(660)# 16:59:50 11/24/04 Normal : LoadZenAutilLibraryAndGetProc:
    > Successfully loaded ZenAutil.dll and its dependent DLLs
    > #(660)# 16:59:50 11/24/04 Normal : Console version is SP1
    > #(660)# 16:59:50 11/24/04 Critical : ZenRmServer: Failed to find
    > Console Version #0.6.5.1 in supportability list
    > #(660)# 16:59:50 11/24/04 Warning :
    > RMAudit::Auditing.cpp:RMSesstionStart() The audit log file is not found.
    > #(660)# 16:59:50 11/24/04 Normal : ZENUtil:
    > ZENIsWorkstationRegistered: wsDN 'CN#(660)# 16:59:50 11/24/04 Normal :
    > Workstation is registered
    > #(660)# 16:59:50 11/24/04 Normal : ZENNDSUtil: Attempting to read
    > policies...
    > #(660)# 16:59:50 11/24/04 Normal : ZENUtil:
    > ZENIsWorkstationRegistered: wsDN 'CN#(660)# 16:59:50 11/24/04 Normal :
    > Workstation is registered
    > #(660)# 16:59:50 11/24/04 Normal : Reading workstation DN and tree
    > name...
    > #(660)# 16:59:50 11/24/04 Normal : workstation DN -
    > CN
    > #(660)# 16:59:50 11/24/04 Normal : Loading : C:\Program
    > Files\Novell\ZENworks\WMSchApi.dll
    > #(660)# 16:59:50 11/24/04 Critical : ZENNDSUtil: Failed to load
    > WMSchApi.dll. Error: 1114
    > #(660)# 16:59:50 11/24/04 Normal : Reading workstation DN and tree
    > name...
    > #(660)# 16:59:50 11/24/04 Normal : workstation DN -
    > CN
    > #(660)# 16:59:50 11/24/04 Normal : Loading : C:\Program
    > Files\Novell\ZENworks\WMSchApi.dll
    > #(660)# 16:59:50 11/24/04 Critical : ZENNDSUtil: Failed to load
    > WMSchApi.dll. Error: 1114
    > #(660)# 16:59:50 11/24/04 Normal : Neither policy settings active.
    > All operations disabled.
    >
    >
    Just to support the previous person who also replied to this question. We
    had the same problem and it was the path. Someone pushed an app that
    replaced the path instead of appending to it and it killed the zen remote
    agent. Replacing the path to "c:\program files\novell\zenworks" path worked.
    Thanks much for the person who first suggested this.
    Neal...

  • Profile Option: HZ: Display Accounts for All Operating Units

    I just noticed this profile option, but cannot find any documentation stating what it does. Does anyone know? Offhand, it sounds like the customer account is now org-striped, in addition to the sites, but I don't see any other evidence of this.
    Thanks.

    Have you looked at note 369821.1.?
    It says,
    If you want to review all of the Quotes for all organizations then you need to set the profile "HZ: Display Accounts for All Operating Units" to "Yes" at the site level. After that you will be able to see all the transactions in OCO for all organizations. Sandeep Gandhi

  • Solaris 5.10 All operating system level parameters

    HI Experts,
    Pl let me know .Solaris 5.10 All operating system level parameters on ECC6.0
    .i really appreciate your feed back on this request
    Thanks
    Hari

    You cannot upgrade Solaris (any version) by simply applying patches. You also cannot upgrade Solaris 10 via any sort of downloaded "upgrade" package.
    You will need to download the current DVD/CD set, then boot from it. At that point, you will be offered the choice of upgrading your system.

  • Compress for all operation is New feature of 11g????

    hey to all i'm going to create a table with compress option i used "COMPRESS FOR ALL OPERATIONS" IT does not create table using 10g and when i connect to 11g it create a table
    i read the documentation of 11g managing table but this option is not very well elaborate there plz tell me the difference b/w compress and compress for all operation and either compress for all is supported in 10g or not
    feel free to ask any question
    regards adeel

    Table compression was available in 10g as well.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_7002.htm#i2128733
    but "COMPRESS FOR ALL OPERATIONS" is new feature in 11g and the description for the same is self-explanatory.
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_7002.htm#i2128733
    <quote>
    * When you enable table compression by specifying either COMPRESS or COMPRESS FOR DIRECT_LOAD OPERATIONS, Oracle Database attempts to compress data during direct-path INSERT operations when it is productive to do so. The original import utility (imp) does not support direct-path INSERT, and therefore cannot import data in a compressed format.
    * When you enable table compression by specifying COMPRESS FOR ALL OPERATIONS, Oracle Database attempts to compress data during all DML operations on the table.
    <quote>

  • Difference between " COMPRESS FOR ALL OPERATIONS" and "COMPRESS FOR OLTP"?

    I was looking through Oracle's OLTP Table Compression (11g onwards) documentation as well as online resources to find the syntax and came across two different versions:
    COMPRESS FOR ALL OPERATIONS
    and
    COMPRESS FOR OLTP
    The documentation I looked through didn't mention any alternative syntax, so i was wondering if anyone here might know the difference.
    Thank you!

    Table Compression Enhancements in Oracle Database 11G Rel1 as as follows:
    The compression clause can be specified at the tablespace, table or partition level with the following options:
    •NOCOMPRESS - The table or partition is not compressed. This is the default action when no compression clause is specified.
    •COMPRESS - This option is considered suitable for data warehouse systems. Compression is enabled on the table or partition during direct-path inserts only.
    •COMPRESS FOR DIRECT_LOAD OPERATIONS - This option has the same affect as the simple COMPRESS keyword.
    •COMPRESS FOR ALL OPERATIONS - This option is considered suitable for OLTP systems. As the name implies, this option enables compression for all operations, including regular DML statements. This option requires the COMPATIBLE initialization parameter to be set to 11.1.0 or higher.

  • IOS 7 Calendar Day View does not show any all-day events ?

    Hi,
    I realize that iOS 7 Calendar Day View  does not show any all-day events.
    Is this a bug ?
    Any help given is much appreciated.
    Thanks and Regards.

    Mine brings me right up to the current time, or in the case of another day, it takes me to the first appointment of the day.

  • Error while Posting to all operative areas

    hi,
    while posting to all operative areas in TBB1 am getting the following error
    "No accounting rule despite posting to general ledger ERP" for valuation area 002. Whereas no error for operative valuation area 001.
    Please help.

    Hi Sur,
    the long text SAP note 922332 explains what to do in this case: is there an accounting principle assigned to all of the relevant valuation areas for the accounting code in IMG under  'Assign Accounting Codes and Valuation Areas'?
    Best regards,
    Marie
    SAP TRM

  • Photos won't import images from my Canon camera.  When connected, program sees the images, tells me it will import the new ones, then freezes once import starts, not allowing any other operation to happen.  MacbookPro 15" 2012, OSX Yosemite 10.10.3.

    Photos won't import images from my Canon camera.  When connected, program sees the images, tells me it will import the new ones, then freezes once import starts, not allowing any other operation to happen.  MacbookPro 15" 2012, OSX Yosemite 10.10.3.  Any suggestions?

    Solution discovered.  Faulty connector cable.  Tried a different one and it worked.

  • Block Material for all operations

    Hi gurus,
    I need block a material for all operations. In material master, field X-plant matl status is ok with all possible blocks that system offers. But, I can still do inventory, and other operations...
    How Can I block for all operations a material???
    Thank you
    I will reward with points all answers

    In IM it is possibel to block but in WM it isn't (according to my best knowledge).
    WM-inventory > block WM inventory booking of materials that are out of use
    http://www.sapfans.com/forums/viewtopic.php?f=6&t=291342
    Edited by: Csaba Szommer on Jun 12, 2008 11:43 AM

  • The headteacher has just upgraded his Ipad to I07 and when he goes into the school shared calendar any all day events come out red and then other events on that day are obscured

    The headteacher has just upgraded his Ipad to I07 and when he goes into the school shared calendar any all day events come out red and then other events on that day are obscured as the red covers the whole day

    I  have the same proble. In all views all day events don't show up. If I search for the event, there is a result but it does not appear in the calendar.

  • Goods Receipt Production Order before all operation done

    Hi PP Expert,
    I have 5 operation :
    Op 10 Expedition A-B
    Op 20 Subcontract
    Op 30 Expedition B-C
    Op 40 Expedition C-D
    Op 50 Expedition D-E
    All external operation.
    What is the effect if i do goods receipt PRO after operation 20 is done and then continue creating PO from generated PR for rest operation 30 40 and 50 ??? What effect and implication from logistic and costing point of view?
    Regards,
    Arman

    HI
    u cannot do GR until ur all operations are completed.
    Amit

  • الترجمة I have a problem how can I cancel all operations evaluated by so I can use the service again in the same payment method because Apple stuck processes evaluated by on my account and I can not purchase again

    الترجمة
    I have a problem how can I cancel all operations evaluated by so I can use the service again in the same payment method because Apple stuck processes evaluated by on my account and I can not purchase again

    If your CC was banned for fraudulent activity, you will need to use another CC. If the account was disabled, try changing the password to enable it at : https://appleid.apple.com
    Otherwise, try contacting the iTunes store via : https://expresslane.apple.com , choosing iTunes and then iTunes store and from there selecting the topic as it pertains to your query.

  • I have an iphone 3g which brought him use me when I brought it worked fine, I updated the system to 4.3.3 and no longer recognizes any network operator, look at the baseband and 5.16.02 and says it is it does not recognize anything I can do? the operator

    I have an iphone 3g which brought him use me when I brought it worked fine, I updated the system to 4.3.3 and no longer recognizes any network operator, look at the baseband and 5.16.02 and says it is it does not recognize anything I can do? the operator to buy my iphone was a 4 but it was stolen, I thought I could use this but aparentementeno, I can do to make it recognize my carrier? thanks

    Looks like you have relocked a hacked phone when you updated.  The only way to fix it would be if you could figure out the original carrier and see if they would unlock it.

  • How can I make extra storage on my phone when I have deleted any all data, pictures and files that I couldn't store in a dropbox and not have purchase additional storage?

    how can I make extra storage on my phone when I have deleted any all data, pictures and files that I couldn't store in a dropbox and not have purchase additional storage?

    Purchasing additional storage only applies to iCloud, not to the phone itself. You cannot purchase additional storage for the phone, only purchase a larger capacity phone. If you have deleted all of the content that you can, then that is all of the space that you have. What is it exactly that you are trying to do? Does this have to do with space for performing an OTA update of the iOS?

Maybe you are looking for

  • IPod Touch works with USB 1.0, why not iPad

    I just received an iPad as a gift but I have an old 17" iMac with USB 1.0 and it's not syncing with iTunes to setup. My iPod Touch syncs perfectly with 1.0, so why not the iPad? If it won't work, i guess I'll return the iPad and get credit towards a

  • Bullet and Full Stop formatting in right to left languages?

    I am copying and pasting text from an arabic document to Captivate 7.  This has been translated for us as I don't speak the language.  The formatting in Word is perfect, bullets appear on the right, full stops appear on the left. When it pastes into

  • Problem in printing elements of a Set element

    I am using iterator to print the elements of a set as below: Set<String> set = new HashSet<String>(); set.add("element"); Iterator it = set.iterator(); while (it.hasNext()) {                  System.out.println(it.next() + "\n"); }The above code perf

  • Sales Unit to Base unit validation in Pricing

    Hi I have a material that has base unit in EA and sales unit is CS. The pricing scenario that I am trying to accomplish is that I would like to apply a split case surcharge of 1 USD per EA for the material sold anything outside of a Case. But here is

  • ITunes unable to load dataclass info from sync services

    I get the subject error when I plug in my Itouch 2gen to my Vista PC, but it will sync and seems to work properly. Also, iTunes will not load when I plug the iTouch in. My previous iPod classic worked great. Any ideasabout the error and how to get ri