Having doubts about the logical operators and, or.

I wrote a query as

Select ename emp where mgr = 7902 or sal = 1600 and employment = "seller."

The o/p of the above query is

Ename
Smith

I cannot understand the o/p, which he gave to me.

the table is
EMPNO, ENAME, JOB HIREDATE DEPTNO COMM SAL MGR
---------- ---------- --------- ---------- --------- ---------- ---------- ----------
7369 SMITH COMMITTED 7902 17 DECEMBER 20 800 80
7499 ALLEN 7698 1600 20 FEBRUARY SALESMAN 81 300 30
7521 WARD 7698 1250 22 FEBRUARY SALESMAN 81 500 30
7566 JONES MANAGER 7839 2975 2 APRIL 81 20
7654 MARTIN 7698 28 - SEP - 81 1250 1400 30 SALESMAN
7698 BLAKE MANAGER 7839 2850 MAY 1, 81 30
7782 CLARK MANAGER 7839 2450 JUNE 9 81 10
7788 SCOTT ANALYST 7566 3000 APRIL 19, 87 20
PRESIDENT OF 7839 17 NOVEMBER KING 81 5000 10
7844 TURNER 7698 08 - SEP - 81 1500 0 30 SALESMAN
7876 ADAMS 7788 1100 23 MAY CLERK 87 20

EMPNO, ENAME, JOB HIREDATE DEPTNO COMM SAL MGR
---------- ---------- --------- ---------- --------- ---------- ---------- ----------
7900 7698 DECEMBER 3, CLERK JAMES 81 950 30
7902 7566 3000 3 DECEMBER ANALYST FORD 81 20
7934 MILLER COMMITTED JANUARY 7782 1300 23 82 10

Please check again.
The query is very well.
I assume you are using version Oracle 11 g and schema scott!

SQL> ed
Wrote file afiedt.buf

  1* select ename from emp where mgr=7902 or (sal=1600 and job='salesman')
SQL> /

ENAME
----------
SMITH

SQL>

Thank you!

Tags: Database

Similar Questions

  • I have a doubt about the file .folio and publications

    Hello, I m new here.

    I want to start working with DPS, but I have a doubt about which version to buy.

    At the moment I have one customer just wants to publish a magazine, but my intention is to have more customers and publish more magazines.

    If I buy the unique edition of DPS, I read that I can publish a single file .folio. What it means? Each folio file represents a publication?

    Please, I need help to understand this before you purchase the software.

    Thank you very much

    Paul

    Here's a quick blog I wrote to compare the simple edition and

    multifolio apps:

    http://boblevine.us/Digital-Publishing-Suite-101-single-Edition-vs-multi-Folio-apps/

    Bob

  • Some doubts about the topology, interfaces and security modules

    Hello

    Below, some questions about the ODI:


    1. to use an LKM ODI always ask to use two different DATASERVERS (one for the SOURCE) and another to the TARGET?

    2. what would be the best way to create a new IKM with GROUP BY clauses?

    3. What is the required minimum PROFILE for developers users could import projects created in other ODI environments?

    4. If a particular WORK_REP is lost, it is possible that retrieve projects from version control information stored in the MASTER_REP?

    1.) Yes. LKM always loads data from one root to another.
    More than once I saw that even if there is a single physical server, several servers are configured in the topology Manager. This would lead to the use of a LKM because ODI consider 2 different servers.
    If the physical server is set only once, LKM won't be necessary.

    2.) IKM automatically adds a GROUP BY clause if it detects an aggregation function in the Interface implementation.

    3.) try to use the profile of the creator of NG.

    4.) this is not an easy task. But all the versioned objects are compressed and stored in a BLOB field in the master repository.
    You will need to know the names and versions you need to recover.
    SNP_VERSION and SNP_DATA have this information. Retrieves the field BLOB SNP_DATA and unpack using a zip utility. This will give you the XML property of the object that was transferred.
    Now, you can import this xml file and retrieve the object.

    You will need to loop through all the records in order of I_DATA, then extract to .xml file, and then import them to build the work rep.

  • I started having problems with the wireless mouse and the carpet of my laptop - Lenovo ThinkPad T420 mouse.

    Original title: right click on the mouse itself activating

    I borrowed a USB to a person at work and I started having problems with the wireless mouse and the carpet of my laptop - Lenovo ThinkPad T420 mouse. The left click of two devices works normally, however, sometimes she does not respond to clicks and it takes a few seconds to work. The left button was constantly starts to turn on, as if he was stuck. After that I hit Alt + Tab and modify windows it stops for a few moments and starts at a later date. I havo not found a specific condition or a combination of keys that may trigger the fault.

    I read a few posts on discussion forums, but all say that it could be a hardware problem, which I think is not, because both devices have the same problem and I'm sure it all started with the insertion of the borrowed memory stick. I scanned the readers to help Symantec's EndPoint Protection and installed Microsoft Security Essentials and performed a full scan, but found nothing. I even restored the system, but the problem remains.

    Should I get a different antivirus? How can I find the cause so I can find a better targeted solution?

    Try to install the drivers from this link and check.

    http://support.Lenovo.com/en_US/research/hints-or-tips/detail.page?&LegacyDocID=MIGR-77167

  • can not display the webpage error something about the Server internal and 500 are down for maintenance

    can not display the webpage error something about the Server internal and 500 are down for maintenance? Yahoo search option and can get to Web site but trying to post comments online and get this message.  tried to restart and got the same answer.  Just set Windows to update when I logged on tonight.

    Hi ginnypierson,

    Thanks for posting in the Microsoft community.

    I understand that you are facing the issue with can not display the webpage and you are wrong about 500 and internal server being down for maintenance.

    Before you start the troubleshooting steps, I need the information required

    1. what web browser do you use?

    2. have you made any changes to the computer?

    3. this problem occurs only with the particular website?

    Method 1:

    If you use Internet explorer, I suggest you to see link and check.

    Get help with the Web site (HTTP error) error messages.

    http://Windows.Microsoft.com/en-us/Windows-Vista/get-help-with-website-error-messages-HTTP-errors

    Method 2:

    I suggest you to see link and check.

    How to optimize Internet Explorer

    http://support.Microsoft.com/kb/936213/ro

    WARNING: Reset Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings

    Please follow these recommended steps, review the additional information provided and after back if you still experience the issue. I will be happy to provide you with additional options available that you can use to get this resolved.

  • [ADF, JDev12.1.3] Manages the pageFlowScope same bean validation of the different fragments of BTF. Doubts about the 'object' and 'uiComponents' validator parms

    Hallo,

    I have a 'registration' process bounded with 4 fragments workflow.

    There is in each fragment components entry created by dragging different fields of the same instance of VO.

    The user cannot access the next step if the current step is not correctly filled.

    In the fragment of 1st, the user chooses its type (customer, supplier,...) and in the following steps, the fields are has shown/Asterisk based on her user'type selected (I save the String bean var type managed pageFlowScope dedicated to the btf).

    Because of this in the original Version, by the way the key, there is no other area marked as mandatory.

    To manage the visibility of fields I set the property of rendering the fields (or their container) using EL expressions that read the type in the managed bean stream.

    To manage the fields points, I thought only 2 solutions:

    1)

    For each field to create a validator that checks if the fied was flled and function in the formato (e.g. for emails) right in the successful flowScope bean. So I'll have so many validator functions as areas to manage.


    2)

    Create a unique global validator to which the property of the validator for all fields will point in the managed bean flowScope.

    For example

    public void myGlobalBtfValidator(FacesContext facesContext, UIComponent uiComponent, Object object) {
      if (uIComponet.getId() == "InputTextEmail") {  // Component is in Fragment_1
        // Check if the filed is filled and its format
      }
      if (uiComponet.getId() == "InputTextMobileNumber") {  // Component is in Fragment_2
        // Check if the filed is filled and its format
      }
      if (uiComponet.getId() == "InputTextAddress) {  // Component is in Fragment_3
        // Check if the filed is filled
      }
    // ...
    }
    

    ID' would like to know if the 2nd solution might work and that is the approach recommended among them.

    Then, I would like to know if I can use ther uiComponent parm to the validator without any problem. I ask this question because in many threads, I saw only the parm object used. What are the different function/purpose of these 2 settings?

    Thank you

    Federico

    If you do not want to re-use these validators elsewhere in your application, then method unique validator will be enough.

    Of course, if the implementation of this method only validator will require a huge amount of code, it is probably better to split this option to separate validator methods (to simplify the maintenance).

    BTW, ID of component has to be short, so instead of using the id of the component, set f: attribute on each component of the user interface and to use uIComponet.getAttributes () .get ("attrib_name")

    Dario

  • doubts about the css class...

    I tried to load a background image in the theme universal apex 5 in the login page.

    and I used the code found in the following link and got it works

    Apex 5.0: Theme Roller and background image

    But I doubt that can be very simple for the css professionals.

    .t-PageBody-.t-body connection

    {

    Background: URL("Sports.jpg") repeat top center white scroll;

    Color: #000000;

    do-family: Arial, Helvetica, Sans-serif;

    do-size: 12px;

    line-height: 17px;

    }

    .t - PageBody.t - body

    How do you know .t-PageBody - .t-body connection was the main class to change...

    Let me know if my interpretation is correct

    .t-PageBody - login is the main class

    and .t-Body is the upper class?


    pauljohny100 wrote:

    I tried to load a background image in the theme universal apex 5 in the login page.

    and I used the code found in the following link and got it works

    Apex 5.0: Theme Roller and background image

    But I doubt that can be very simple for the css professionals.

    .t-PageBody-.t-body connection

    {

    Background: URL("Sports.jpg") repeat top center white scroll;

    Color: #000000;

    do-family: Arial, Helvetica, Sans-serif;

    do-size: 12px;

    line-height: 17px;

    }

    .t - PageBody.t - body

    How know .t-PageBody-.t-body connection was the main class change...

    Let me know if my interpretation is correct

    .t-PageBody - login is the main class

    and .t-Body is the upper class?

    .t-PageBody--login .t-Bodyis a descendant selector. It matches any element with a class attribute that contains a t-Body value having an element ancestor with a class attribute that contains a t-PageBody--login value. There is no concept of 'main' class or 'slot' in CSS. The required selector is likely to have been determined on the supplement page using a web Inspector.

    It is advisable to take some tutorials to get at least a basic understanding of web technologies when you work with APEX.

  • Query on the physical Architecture, the logical Architecture and model

    Hi Experts,
    I have a confusion regarding the physical, logical and model Architecture Architecture. Please tell me what type of information or data, these three above hold.
    Thank you

    Physical architecture contains information about the physical configuration of your environment e.g. nameservers, jdbc, usernames, passwords etc connection strings

    The logical architecture provides an abstraction layer that allows to group by similar contexts of physical architecture components that reside in different locations/environments.

    Patterns are reversed representations of objects in your physical architecture that is tables, flat files, etc. The models are used as sources and targets in your UI design

  • Question about the script action and creation of menus

    I use flash for a while now and never formally trained in the design of web sites, so I always wonder if I use best practices. Here is the code I wrote for a menu. I try to use the script to control everything, I think that there is a more effective way to achieve this. Any help would be appreciated. Menu design and the current site work can be viewed here: http://www.studiojarch.com

    Advice on how to optimize the code would be appreciated.

    on {(press)
    If (project._currentframe == 25) {}
    }
    else {}
    getURL ("http://www.studiojarch.com/contact/", "studio_james_cornetet");
    project.gotoAndStop (25);
    }}

    on {(overview)
    If (_parent. Contact.goalPos == 290) {}
    _parent. Highlighter.goalPosy = 299;
    _parent. Highlighter.goalPosx = 5;
    _parent. Highlighter.Reverse = false;
    _parent. Highlighter.Play ();
    Project.Reverse = false;
    Project.Play ();
    }
    ElseIf (_parent. Contact.goalPos == 330) {}
    _parent. Highlighter.goalPosy = 339;
    _parent. Highlighter.goalPosx = 5;
    _parent. Highlighter.Reverse = false;
    _parent. Highlighter.Play ();
    Project.Reverse = false;
    Project.Play ();
    }
    ElseIf (project._currentframe == 25) {}
    _parent. Highlighter.goalPosy = 259;
    _parent. Highlighter.goalPosx = 5;
    _parent. Highlighter.Reverse = false;
    _parent. Highlighter.Play ();
    }
    else {}
    _parent. Highlighter.goalPosy = 259;
    _parent. Highlighter.goalPosx = 5;
    _parent. Highlighter.Reverse = false;
    _parent. Highlighter.Play ();
    Project.Reverse = false;
    Project.Play ();
    }}

    on {(deployment)
    If (project._currentframe == 25) {}
    Project.Reverse = false;
    }
    else {}
    _parent. Highlighter.Reverse = true;
    _parent. Highlighter.goalPosx = - 10;
    Project.Reverse = true;
    }}

    on (release) {}
    If (animation_hl_contact._currentframe == 24) {}
    }
    else {}
    _parent. James_Cornetet.project.gotoAndStop (1);
    _parent. Architecture.project.gotoAndStop (1);
    _parent. Awards.project.gotoAndStop (1);
    _parent. Blog.project.gotoAndStop (1);
    _parent. News.project.gotoAndStop (1);
    _parent. Publications.project.gotoAndStop (1);

    _parent. James_Cornetet.reverse = true;
    _parent. Architecture.Reverse = true;

    _parent. Architecture.goalPos = 100;
    _parent. Awards.goalPos = 130;
    _parent. Blog.goalPos = 160;
    _parent. News.goalPos = 190;
    _parent. Publications.goalPos = 220;
    _parent. Contact.goalPos = 250;

    _parent. James_Cornetet.about.gotoAndStop (1);
    _parent. James_Cornetet.CV.gotoAndStop (1);
    _parent. Architecture.category.gotoAndStop (1);
    _parent. Architecture.date.gotoAndStop (1);
    _parent. Archtiecture.bylocation.gotoAndStop (1);
    _parent. Architecture.typology.gotoAndStop (1);

    animation_hl_contact. Reverse = false;
    animation_hl_contact. Play();
    _parent. James_Cornetet.animation_hl_james_cornetet. Reverse = true;
    _parent. Architecture.animation_hl_architecture. Reverse = true;
    _parent. Awards.animation_hl_awards. Reverse = true;
    _parent. Blog.animation_hl_blog. Reverse = true;
    _parent. News.animation_hl_news. Reverse = true;
    _parent. Publications.animation_hl_publications. Reverse = true;

    }}

    One thing that stands out as being undesirable that recommended going is that you place on the items (using the on() approach) code.  The right approach is to assign instance names to your interactive objects and use them to place all code on the timeline where it is easily visible.  In doing so, you will find just that a lot of code that show you can be modularized in functions that can be shared by different objects rather than having each carrying a load full on his back. You will find that you can pass arguments to shared functions that do the same functions capable of supporting interactions with different objects

    Your call you (press) performs a conditional test useless.  If you change the status to be if (project._currentframe! = 25) you can avoid this.

    In all of your executed appeal of conditional statements, you have a few lines that are repeated in each condition, so they can be moved to the end off the conditional statements.

    Your call to it (release) has the same problem as your call you (press).  Use the _parent target overflow is also an indication that most of the code in this appeal would probably serve you better sitting in the _parent timeline and your button could just call this function

  • Question about the Apple Watch and tattoos

    I think buy a Apple Watch very soon.

    I have a full sleeve (which is where I would like to wear the watch) and I wonder if it will cause problems with readings with the heart monitor since I want to use the Apple Watch for fitness training, mainly.

    I read on the page of the heart rate for the saying of Apple Watch:

    "Permanent or temporary changes to your skin, such as some tattoos, can also impact performance heart rate sensor. Ink, model and the saturation of some tattoos can block light from the sensor, making it difficult to get reliable readings. »

    There are other problems in addition to playback of heart rate on the Apple Watch for inked people that may know you?

    Thanks for your comments just to decide if this watch will really be for me before making this purchase, because I missed one for some time.

    If you are looking for, there was a very long discussion about this in the past, only shortly after the release of the Apple Watch. What I've read, it seems that the heart rate monitor is the only victim when it comes to the watch, since this is the only thing that requires the sensors to work through ink. Not all inks makes a difference, but most don't. The activity of exercise/app also uses the heart rate monitor to determine the rate for the year. You can take the time to go to the nearest Apple Store and try on the Apple Watch and see if the monitor works with your sleeve.

  • Doubts about the speed

    Hello gentlemen;

    I have a few questions, I would like to ask more experienced people here. I have a program running on a computer that has a processor i7 processor. In this computer that I have programmed in LabVIEW, meanwhile in another lab, we have another PC, a little older, a dual core 2.3 Ghz, in this pc, we perform a testing platform for a couple of modems, let us not get into the details.

    My problem is that I discovered recently that my program, I programmed in the computer, i7, much slower work in the other machine, the dual core, so the timings are all wrong and the program does not run correctly. For example, there is a table with 166 values, which, in the i7 machine are filled quickly, leaving almost without delay, however, the double machine heart, it takes a few milliseconds to fill about 20 values in the table, and because of the timing, it can fill more values and so the waveform that I use is all wrong. This, of course, live of the whole program and I can't use it as a test I need to integrate.

    I have create a .exe program in labview and try it in the different PC that's how I got to this question.

    Now, I want to know if there is actually a big problem due to the characteristics of the computer, the program is slow in one machine. I know that, to ensure the eficiently program, I need to use States, sub - vi, idea of producer-consumer machines and other things. However, I discovered this is not a problem of the speed generated by the program, because, if that were the case, the table would eventually fill it completely, however in slow computer, it is not filled more with 20 values.

    Else, helps to hide unnecessary variables in the front panel?, because the time beeing I have keep track of lots of variables in the program, so when I create the .exe I still see them runing to keep this follow-up. In the final version, that I won't need them so I'll delete some and hide front panel some. It helps that require less condition?

    I would like to read your comments on this topic, if you have any ideas in machines to States, sub - vi, etc., if there is a way to force the computer to use more resources in the Labview program, etc.
    I'm not add any VI because, in the current state, I know you will say, state machines, sub.vi and so on, and I think that the main problem is between the difference in computers, and I'm still working in the things of the State/sub-VI/etc

    Thank you once again, we just let this hollow.

    Kind regards

    IRAN.

    Get started with, using suitable as a machine for States stream you can ensure that your large table would be always filled completely before moving on, regardless of how long it takes. Believe it or not add that a delay to your curls will do more all the program run faster and smoother, because while loops are eager and can consume 100% of CPU time just a loop waiting for a button press, at the same time all other processes are fighting for time CPU.

  • Question about the roadmap WebWorks and Cordova

    Hi, in the WebWorks Raodmap [1] is the following statement:

    In order to make the promise of HTML5 cross-platform development even more real, we will be leveraging the Apache Cordova open source project as the heart of the WebWorks SDK for BlackBerry 10. This will allow BlackBerry web developers to more seamlessly leverage a much wider array of tools and frameworks being built around the "center of gravity" for mobile web applications.
    

    What exactly is? Cordova will replace the Webworks API?

    [1] https://developer.blackberry.com/html5/downloads/roadmap/

    "To make the promise of cross-platform HTML5 development even more real, we will be relying on the open source Apache Cordova project as the heart of the WebWorks SDK for BlackBerry 10. This will allow BlackBerry web developers to more easily exploit a range much more wide tools and frameworks under construction around the 'centre of gravity' for mobile web applications. »

    We'll disect this declaration and I'll add what I can:

    'we will be relying on the open source Apache Cordova project as the heart of the WebWorks SDK for BlackBerry 10' - this means you can think of the future of WebWorks BB10 as being "built" on top of Cordova. So our API and support for the creation of webviews etc. will be built above the standards defined in the project of Cordova.

    "This will allow BlackBerry web developers to more easily exploit a range much more wide tools and frameworks under construction around the 'centre of gravity' for applications web mobile."-there are currently groups creation tools to work on top of Cordoba; Maybe your favorite editor has already Cordova or PhoneGap support. This will mean that you can use in your development BB10, without worrying about the specific tools BB only.

    At the end of this process should in theory be easier to work with WebWorks.

  • How do I learn more about the API Oracle and Workflow

    Dear experts,

    I need to learn more about the oracle and Oracle Workflow API.

    I need to resources or books on this topic.

    Kind regards

    Ahmad,

    Go to http://docs.oracle.com

    Click the Applications icon

    Click on the E-Business

    Click on the link for 12.1 +.

  • Question about the composition settings and make

    I looked for an answer to my question, but had to ask at resort, sorry, it's pretty basic, but a direct response is needed I think.

    I imported a project in Premiere pro with two layers of still images with movement and applied effects. I work for a few weeks now, with variations on these pictures and had many number of exports of EI through the render queue.

    After you import the compositions of first CC my starting point; composition and other settings of composition parameters are all resolved HDTV 1080 25 but the set resolution in which I unfortunately now has, is defined as 'Half' (960 * 540)... New compositions also sets the default resolution somehow half...

    My question is about my previous exports and subsequently.  Together of the composition to "Half" resolution affect the quality of my compositions exported using the render module? So far, all my renders are 1080 p by default and no 960 * 540. These have been uprezed to 1080 of 960? ... - I have not changed any setting on the resolution in the rendering module - they all came out 1080 after.

    Thank you

    Together of the composition to "Half" resolution affect the quality of my compositions exported using the render module?

    N ° except if you change the settings of default rendering, which is "Best settings" in "current Configuration".

  • Question about the memory consumed and active

    I have esx4.1 on three dl585 running. I have about 100 active vm running, and I have a small question.

    My vm is all 2008 r2 datacenter and I gave them 1 cpu and 4 GB of ram. When I recover a single virtual machine and look at the summary page, I see the bones of memory consumed host 4075 mb and the active guest memory 81 MB operating system. My question is can I reduce the host cunsumed memory to 2 GB without noticing a difference within the virtual machine?

    It looks like you can.   To be absolutely sure that you'd need monitor assets long enough to have a good idea of what the average is and what are the tops.

Maybe you are looking for