JoptionPane need some help understanding, with buttons PLEASE SOMEONE :)

Hi all I was hoping that someone would be kind enough to explain to me how I can add a method to buttons in a JoptionPane.
Also can I pplease ask for you to look at this code I think I have stuff something as it is not working the way that I want,
I want to add something like this to the ok button.
String check = LastNameJText.getText()+FirstNameJText.getText();
System.out.println(check);
      if
        //check to see if First & Last name have been entered.
        (check != null){
        return;
        else //create a dialog that shows Title,first & Last Name
         // & ask if you would like to make an new ordre
          String d= System.getProperty("line.separator");
       Object[] options = {"Cancel","OK",};
       int n = JOptionPane.showOptionDialog(null,
       "Do you really want to add a new shoe order for:"+ d +
       (String) TitleComboBox.getSelectedItem()+" "+FirstNameJText.getText()+" "+LastNameJText.getText(),"New Order",
       JOptionPane.YES_OPTION,
       JOptionPane.INFORMATION_MESSAGE,
       null,
       options,
    options[0]);
      if //Check to see if First & Last name text feilds are clear.
(check == null){
return ;
else
   //make sure that all text fields are clear for new order
        ClearAllTextFields();

When I do that i get
"Order.java": Error #: 300 : variable options not found in class epod_1_0.Order at line 2152, column 4
"Order.java": Error #: 300 : variable options not found in class epod_1_0.Order at line 2153, column 4
why would this be ?
This is the code
String check = LastNameJText.getText()+FirstNameJText.getText();
System.out.println(check);
      if
        //check to see if First & Last name have been entered.
        (check != null){
        return;
        else //create a dialog that shows Title,first & Last Name
         // & ask if you would like to make an new ordre
          String d= System.getProperty("line.separator");
      int result = JOptionPane.showOptionDialog(null,
   "Do you really want to add a new shoe order for:"+ d +
   (String) TitleComboBox.getSelectedItem()+" "+FirstNameJText.getText()+
    " "+LastNameJText.getText(),"New Order",
   JOptionPane.YES_OPTION,
   JOptionPane.INFORMATION_MESSAGE,
   null,
   options,
   options[0]);
switch(result){
   case JOptionPane.YES_OPTION: // Add your code for yes
      break;
   case JOptionPane.NO_OPTION: // Add your code for no
     dispose();
      break;
      if //Check to see if First & Last name text feilds are clear.
(check == null){
return ;
else
   //make sure that all text fields are clear for new order
        ClearAllTextFields();
  }

Similar Messages

  • Need some help understanding the way materialized views are applied through

    Hi, I need some help understanding the way materialized views are applied through adpatch.
    In patch 1, we have a mv with build mode immediate. When applying it PTS hang due to pool performance of mv refresh.
    So we provide patch 2, with that mv build mode deferred, hoping it'll go through. But patch 2 hang too on the same mv.
    How does this work? Is that because mv already exists in the database with build immediate, patch 2 will force it to refresh first before changing build mode? How to get over this?
    Thanks,
    Wei

    Hi Hussein,
    Thank you for the response.
    Application release is 11.5.10.
    Patch 1 is MSC11510: 8639586 ASCP ENGINE RUP#38 PATCH FOR 11.5.10 BRANCH
    Patch 2 is MSC11510: 9001833 APCC MSC_PHUB_CUSTOMERS_MV WORKER IS STUCK ON "DB FILE SEQUENTIAL READ" 12 HOURS
    The MV is APPS.MSC_PHUB_CUSTOMERS_MV
    This happens at customer environment but not reproducable in our internal environment, as our testing data is much smaller.
    Taking closer look in the logs, I saw actually when applying both patch 1 and patch 2, MV doesn't exist in the database. So seems my previous assumption is wrong. Still, strange that patch 2 contains only one file which is the MV.xdf, it took 7 hours and finally got killed.
    -- patch 1 log
    Materialized View Name is MSC_PHUB_CUSTOMERS_MV
    Materialized View does not exist in the target database
    Executing create Statement
    Create Statement is
    CREATE MATERIALIZED VIEW "APPS"."MSC_PHUB_CUSTOMERS_MV"
    ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 LOGGING
    STORAGE(INITIAL 4096 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 4 BUFFER_POOL DEFAULT)
    TABLESPACE "APPS_TS_SUMMARY"
    BUILD IMMEDIATE
    USING INDEX
    REFRESH FORCE ON DEMAND
    WITH ROWID USING DEFAULT LOCAL ROLLBACK SEGMENT
    DISABLE QUERY REWRITE
    AS select distinct
    from
    dual
    AD Worker error:
    The above program failed. See the error messages listed
    above, if any, or see the log and output files for the program.
    Time when worker failed: Tue Feb 02 2010 10:01:46
    Manager says to quit.
    -- patch 2 log
    Materialized View Name is MSC_PHUB_CUSTOMERS_MV
    Materialized View does not exist in the target database
    Executing create Statement
    Create Statement is
    CREATE MATERIALIZED VIEW "APPS"."MSC_PHUB_CUSTOMERS_MV"
    ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 LOGGING
    STORAGE(INITIAL 4096 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 4 BUFFER_POOL DEFAULT)
    TABLESPACE "APPS_TS_SUMMARY"
    BUILD DEFERRED
    USING INDEX
    REFRESH COMPLETE ON DEMAND
    WITH ROWID USING DEFAULT LOCAL ROLLBACK SEGMENT
    DISABLE QUERY REWRITE
    AS select distinct
    from dual
    Start time for statement above is Tue Feb 02 10:05:06 GMT 2010
    Exception occured ORA-00028: your session has been killed
    ORA-00028: your session has been killed
    ORA-06512: at "APPS.AD_MV", line 116
    ORA-06512: at "APPS.AD_MV", line 258
    ORA-06512: at line 1
    java.sql.SQLException: ORA-00028: your session has been killed
    ORA-00028: your session has been killed
    ORA-06512: at "APPS.AD_MV", line 116
    ORA-06512: at "APPS.AD_MV", line 258
    ORA-06512: at line 1
    Exception occured :No more data to read from socket
    AD Run Java Command is complete.
    Copyright (c) 2002 Oracle Corporation
    Redwood Shores, California, USA
    AD Java
    Version 11.5.0
    NOTE: You may not use this utility for custom development
    unless you have written permission from Oracle Corporation.
    AD Worker error:
    The above program failed. See the error messages listed
    above, if any, or see the log and output files for the program.
    Time when worker failed: Tue Feb 02 2010 19:51:27
    Start time for statement above is Tue Feb 02 12:44:52 GMT 2010
    End time for statement above is Tue Feb 02 19:51:29 GMT 2010
    Thanks,
    Wei

  • I need some help printing to plates please please

    Hi all I am brand new to illustrator CS4 as of today I am starting to print church stuff and need to print to polyester plates I have a logo I cannot seem to be able to figure out how to print each plate for CMYK. Please help me as I want to start printing ASAP. I have searched and searched but cannot seem to find info that is straight forward something seems to change from real world to what I read.  Anyone? I would really appreciate some help please

    Printing to polyester plates requires an expensive piece of hardware.  It is not a simple "print-out-of-Illustrator" solution.  There may be some opportunities for printing direct to the RIP which then generates the plates.  There are also direct-to-plate digital presses.  You need to do some research on what is available and how much it will cost.  Contact your local offset print shop and ask them if they can help you narrow down the search for a solution.
    This assumes you have no platesetter or digitla press on the premises.  If you do, then you need to learn the operating manual for the equipment you have in place.  Not sure what your situation is and what you have to work with other than Illustrator.
    Message was edited by: John Danek

  • Need some help understanding AUR please solved

    Still learning the command line here sooooo....
    I've read and reread everything recommended regarding AUR.
    Somewhere I'm overlooking or missing something.
    The AUR users guide says to:
    Users can access the AUR [community] repo by adding/uncommenting this line in their pacman.conf file:
    Include = /etc/pacman.d/community
    Well that line doesn't exist so the guide says to:
    If /etc/pacman.d/community does not exist then it should be created and contain the following:
    [community]
    Server = ftp://ftp.archlinux.org/community/os/i686/
    Evidently I might have a pacman.d/community, but when I pull it up with nano, it's a totally blank page which leads me to believe it's there but not actually created.
    I can't find anything that tells me what I need to do to make sure I've created a pacman.d/community.
    Is a blank page right or shouldn't there be some text in there with comments?
    I can and have installed a few things with yaourt, but I know that I've been lucky so far with that as I know something isn't right.
    I have to use my user password and then my root password in that order or nothing will finish installing so I've stopped using it until I have a better understanding of it.
    Man,, all I wanna do is try out doom3-phantasm,,, for now anyway.
    Last edited by windtalker (2008-04-04 00:40:26)

    windtalker wrote:
    Floke:
    I tried that, pacman won't synch with that addy.
    Brebs;
    That's how pacman.conf is set for all the repo's listed. [mirrorlist]
    I know phantasm is in unsupported, I'm trying to figure out how to get unsupported added to pacman so I can get it.
    Theringmaster:
    Yaourt is installed and as I've said I've used it, but, as I also said, each time I use it just before it completes the install it asks for my password, which is fine, but I have to first enter my user password which it refuses, then my root password which it accepts.
    It flat wil not settle for me simply using my root password like it should.
    I've tried several times and this is something that I'm missing also somewhere somehow.
    To my way of thinking, it should be like pacman and accept my root password no questions asked.
    I'll also add that I've tried installing phantasm with yaourt.
    It found all the depends and compiled the complete package.
    When it came to the stage to do the actual install, it asked for a pasword.
    I've tried my user pasword followed by my root password and was kicked out.
    I've tried just my user password and was rejected.
    I've tried my root password and was rejected and when re-entered was kicked out.
    Unless things have changed with Arch and the guide is out of date, there should be a way to add unsupported to pacman.
    I'll try flokes suggestion of changing the permissions in sudo and see what happens.
    Thx guys.
    edit: How the heck does one save a change in VI?
    you do have to have sudo installed and configured (just a three step process see wiki) to use yaourt properly. to save a change in vi press :wq

  • HT3702 i set an itunes account up with my visa debt card and its taken the money out of my account i need some help to sort this please

    Can some one help me by ring me from itunes please

    This is a User to User Forum...
    You need to Contact iTunes Customer Service
    Apple  Support  iTunes Store  Contact Us

  • Need some help understanding VPNs on Windows 8.1

    I set up an incoming VPN connection on a home PC - myVPNserver - running Win 8.1 Pro (by going to Network Connections/ALT File/New Incoming Connection).  I enabled Port Forwarding on my NetGear Router to forward port 1723 to the
    internal IP Address of myVPNserver.  I then set up a Client VPN connection on my Surface also running Win 8.1 Pro (by going to Control Panel/Network & Internet/Network and Sharing Center/Set up a new Connection) and providing the new VPN Connection
    with the external IP address of my NetGear Router. 
    I can tether my Surface to a shared internet connection my mobile phone and connect to myVPNserver.  I can see the Incoming Connections on myVPNserver change from "No clients connected" to "1 client connected" and then I see
    a new connection with my username, connected, and WAN Miniport (PPTP).  So it appears that I have successfully created a VPN connection over the Internet. 
    However, I can't see and files on myVPNserver, I can't use Remote Desktop Connection via this VPN to myVPNserver, nor does this VPN connection have any connectivity to the internet or any other services on my LAN.  I can
    connect but that's all. 
    So what am I missing here?  Do I need to set some other functions/services/settings on myVPNserver or on the client or on the router? 
    Totally baffled

    Hi,
    Regarding current situation, please try  following suggestions:
    First, if you install any third part security application with web protection or firewall, please disable or remove it.
    Second, please configure a static IP address for your VPNserver.
    Third, try to use Private network on your VPN server to see what’s going on.
    Hope these could be helpful.
    Kate Li
    TechNet Community Support

  • I need some help connecting to LDAP please.

    I've been working on this problem for a few days now and I'm really frustrated. I'm going to search through these message boards and hope some topics are of any use. If anyone knows of any please post the links in this thread that would be very helpful.
    Here is my problem. My domain name is called swinsk.com. I used a LDAP tool to find my base DN. It came up with DC=swinsk,DC=com.
    I am trying to use anonymous bind. When I hit save changes it keeps telling me that my basedn is incorrect and I should that I should check my basedn. When I try to save my changes without an anonymous bind it tells me that my bind DN is incorrect to check that. I am not sure what my bind dn should be if I want to use my administrator account. I'm going to try and figure that out as well. I'm very confused.
    If anyone could lend me a hand and point me in the right direction I would be estatic.
    The tool I used to find my base DN can be found at: http://www.iit.edu/~gawojar/ldap
    I am happy to provide any further information I might have left out to help solve this problem. Thanks in advance to anyone who might give any suggestions!

    When I click "Find" under "Manage Organizational Units" it appears to be working. This is what happens:
    Search Results
    Found 2 entries where the unit name is '*'
    Error: Can't connect to the LDAP server
    Unit Name Description
    Administrators
    Domain Controllers Default container for domain controllers
    However, when I try to click find under any of the other tabs it says there is a problem and it cannot connect to the LDAP server. This proxy server seems to be very buggy in regards to LDAP. Either that or I am just stupid. I am pretty sure it is set up correctly because I am able to browse LDAP with the LDAP browser tool using the base dn and bind dn I am using in my Global Settings configuration.
    Any suggestions?

  • Need some help- 4G with no static IP

    Why is 4G your only option?
    What is it that you're trying to do here?

    Gary D Williams wrote:jackteller wrote:i dont see why the camera's are the issue- 4G is my problem- at is the only coverage option.
    Agreed. It's the wrong technology for this sort of of access. Even a DSL line would be better.absolutely but dont have DSL - not an optionRod-IT wrote:jackteller wrote:the vendor does not offer static IP or port forwarding- i have been told it simply will not work on other forums without these.
    If the vendor does not offer static IP or port forwarding how was you ever expecting it to work?As for other forums telling you it won't work - it sounds like your doubting their views.As Rockn said, you need real IP cameras for this to do what you want.what are these "real IP Camera's", and i was hoping there was some solutions - the camera's were cheap and i got them for testing - other forums mention 4G with CCTV...

  • Need some help understanding the last portion of this simple loop.

    public static void main(String[] args)
            int j = 3;
            for(int i = 5; i > j; i -= 3)
                do
                        System.out.printf("%-+3d, %-+3d\n", j, i);
                while(j-- >= 3);
        }Here is what I understand:
    the for loop starts, with int i equal to 5 and j equal to 3. Since i > j, it runs the statement (Do While loop). The Do While loop prints the values to the screen. Then since j is equal to 3, it will do the Do While loop again, first decrementing j by 1. So j is 2 and i is 5.. those get printed. Then since j is not >= to 3, the loop ends and backs out to the For loop.
    Here is where I am confused. I know that j gets decremented to 1 before it backs to the For loop. I understand everything so far. However, I know that the Do While loop runs again, printing 1 for j and 2 for i. So I gather that since i was greater than j, 3 was subtracted from i... then the Do While ran, printing the new values... and stopped because j isn't >=3. So j becomes zero (though it won't ever print that) but I don't understand how the loop finally ends.
    Any hints? I tried looking at code examples in several books but none have that kind of thing.. only ones that talk about when i is less than a value to stop when that boolean is false. However in this code, i so far has always been greater than j.
    What makes the loop end?
    Thanks in advance,
    SYD
    Edited by: SYD527 on May 15, 2008 1:29 AM

    Well this has to do with the fact that a do while loop checks its condition after running the content of the loop, so even
    do  {
    /* some code */
    } while (false); will atleast run once.
    Each time the for loop goes into a new iteration the do while loop is excecuted atleast once.
    HTH
    Lima

  • Need some help understanding plugin for Outlook

    Testing out the 7.3 plugin for Outlook. I am not clear on how the flagging of spam/not spam etc. works. We have local IronPort devices. We are not cloud based. When a user flags a message as spam in the Inbox, the Admin Guide says Cisco updates the anti-spam filters so the user will not receive emails like this in the future. Not clear how this works. I understand the email is getting submitted to Cisco for analysis but how do they update spam filters for just that one user? I can understand if we were using a cloud device but as I said we have local hardware. Need to understand this process and the Admin Guide falls short of explaining it.

    Reporting spam/phish from Outlook via the plug-in only does that.  It is packaging up the message and sending the message example off to our @access.ironport.com address for submission from that end-user.  The plug-in itself is not actually doing any work to update the anti-spam on your appliance.  These submissions are a work by themselves that is submitted and then reviewed from the rules writing process.  In time, these submissions are scored, updated, and then written into the current IPAS (IronPort Anti-Spam) rules sets that are published back out to the ESA(s) themselves.  So - as long as your ESA is set to get updates (by default, each 5 minutes), then you will get the updated rules --- and these rules are for everyone globally.  
    Hope that helps!  If not - let me know.
    -Robert

  • Need some help understanding vtp issue

    Hi all,
    I had a problem at work today that im still trying to understand.
    We have a vtp domain at work with various switches in. I added a new switch into the network, configured the vtp domain info and it joined fine. data was working ok on the network. Trunk was working fine to the uplink switch and I added the voice vlan so that we could get the voip phones working.
    Data was ok but the phones werent.
    I checked other switches in this domain and they didnt  allow specific vlans on the trunk ports between switches for this voice vlan. However in order to fix my problem I had to specifically allow this voice vlan under 'switchport trunk allowed' on the uplink switch.
    I dont understand why this switch had to allow this vlan when none of the other uplink switches in that domain had to, its like the vlan was being pruned out but shouldnt have been.
    I guess i'm just not understanding vtp well enough. I just thought that if each end was trunked it should allow all vlans?
    Someone try and help me understand this as it felt like a school boy error if all I had to do was allow the vlan on the trunk!!
    Cheers
    Steve

    I think thats my point, 
    Before I explicitly allowed the vlans across the trunk the voice was not working, both the spur and uplink switch gig interfaces were just straight trunks without explicitly set vlans so the trunk should have carried the voice vlan the same as the data one.
    However the voip phones would not work unless I explicitly allowed both data and voice vlans on the uplink switch gig port. 
    This is why I got confused as no where else in the domain did any of the other uplink switches have to explicitly allow any vlans on their trunks!
    When the senior network engineer looked at it he immediately advised they were working as I had not added switchport trunk allowed vlan... on the uplink and that they were being 'pruned' from the interface.
    Make sense?
    Steve

  • I could use some help w/ Flash Buttons please...

    I am creating my site in Flash... All is well. Buttons work fine. Then all the sudden buttons do not work when created inside a movie clip. If I choose to enable simple buttons, they work fine when I am within the clip but when I go back to Scene they no longer work as well as when I preview? They are there, set up right, just do not work when out side of clip... The buttons I have for main page still work fine...
    Thanks so much!
    I am going crazy!!!!
    Jayson

    The code I used for the common library buttons is:
    next_btn.addEventListener(MouseEvent.CLICK, nextImage);
    //variable is a container that holds some value...
    var imageNumber:Number=1;
    function checkNumber():void {
        next_btn.visible=true;
        back_btn.visible=true;
        //If the number is = 77, then do something...
        if (imageNumber==70) {
        next_btn.visible=false;
    //if the imageNumber is = 1, then don't show back button
    if (imageNumber==1) {
        trace(imageNumber);
        back_btn.visible=false;
    checkNumber();
    function nextImage(evtObj:MouseEvent):void {
        //Adding to the current value +1
        imageNumber++;
        oeightloader.source = "2008images/oeight"+imageNumber+".jpg";
        checkNumber();
    back_btn.addEventListener(MouseEvent.CLICK, backImage);
    function backImage(evtObj:MouseEvent):void {
        //Subtract 1 from the current value
        imageNumber--;
        oeightloader.source="2008images/oeight"+imageNumber+".jpg";

  • Alright guys I need some help here with itunes and my music files

         Basically, I've had two apple accounts in the past like 4 years.  One day I connect my Ipod touch to my computer and downloaded an update from Itunes, not knowing that it erases all your content.  I didnt have my music files backed up either, so I ended up losing over $300 worth of music and apps.  Ever since then I never updated my touch, from the fear of losing my music.  Now that I have my own apple account, I have music files from the first account and my account.  My question is how can I back both of these groups of files up and update my ipod without losing any of this content!?  I would really appreciate a step by step process etc.  Thanks guys for helping me out!
    -Colin Wagner

    You can always redownload iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    You can transfer iTunes purchases to your computer by:
    iTunes Store: Transferring purchases from your iOS device or iPod to a computer

  • Hello, I need some help, my home button is not working

    My home button is not working anymore. I don't know what really happened, but I can see that the button is under the screen level.

    Try:
    http://snapguide.com/guides/calibrate-your-home-button/?utm_expid=69945963-15
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • Query Discrepency - Need some help understanding Grouping/Parentheses.

    When I run:
    SELECT TECHNICAL_SERVICE,LOGICAL_NAME,COUNT("NUMBER"),ROUND(AVG(CLOSE_TIME-OPEN_TIME),2) as time
    from SMINCREQ
    where
    TECHNICAL_SERVICE='CLIENT SOFTWARE INSTALLATION' or TECHNICAL_SERVICE='REIMAGE'
    and
    open_time>'7/1/2011' GROUP BY (TECHNICAL_SERVICE,LOGICAL_NAME) ORDER BY TIME DESC
    I get the folowing with a total of 1925 rows minus the 3067 from the top weird row returned....
    ++++++++++++++++
    TECHNICAL_SERVICE     LOGICAL_NAME     COUNT(NUMBER")"     TIME
    CLIENT SOFTWARE INSTALLATION     -     3067     6.72
    REIMAGE     WINDOWS 7 (client os)     194     2.1
    CLIENT SOFTWARE INSTALLATION     BLANK (blank)     151     6.1
    CLIENT SOFTWARE INSTALLATION     PRINTER DRIVER/INSTALL-UPGRADE (client printing app)     128     12.73
    CLIENT SOFTWARE INSTALLATION     SPSS (statistical app)     112     4.16
    CLIENT SOFTWARE INSTALLATION     WINDOWS 7 (client os)     100     3.3
    CLIENT SOFTWARE INSTALLATION     NETWORK PRINTER SOFTWARE (client printing app)     96     1.45
    CLIENT SOFTWARE INSTALLATION     IRON MOUNTAIN CLIENT BACKUP WINDOWS (app-module)     91     6.66
    CLIENT SOFTWARE INSTALLATION     FILEMAKER DATABASE (database app)     73     2.02
    CLIENT SOFTWARE INSTALLATION     WINDOWS (client os)     70     2.62
    ++++++++++++++++++++
    When then I run
    SELECT TECHNICAL_SERVICE,LOGICAL_NAME,COUNT("NUMBER") as dacount,ROUND(AVG(CLOSE_TIME-OPEN_TIME),2) as time
    from SMINCREQ
    where (TECHNICAL_SERVICE='CLIENT SOFTWARE INSTALLATION' or TECHNICAL_SERVICE='REIMAGE')
    and open_time>'7/1/2011' GROUP BY (TECHNICAL_SERVICE,LOGICAL_NAME) ORDER BY dacount DESC
    I get 1735 rows with the top ones being
    +++++++++++++++++++++++++++++
    REIMAGE     WINDOWS 7 (client os)     194     2.1
    CLIENT SOFTWARE INSTALLATION     BLANK (blank)     143     2.54
    CLIENT SOFTWARE INSTALLATION     PRINTER DRIVER/INSTALL-UPGRADE (client printing app)     120     13.55
    CLIENT SOFTWARE INSTALLATION     SPSS (statistical app)     105     4.13
    CLIENT SOFTWARE INSTALLATION     WINDOWS 7 (client os)     100     3.3
    CLIENT SOFTWARE INSTALLATION     NETWORK PRINTER SOFTWARE (client printing app)     79     1.27
    CLIENT SOFTWARE INSTALLATION     IRON MOUNTAIN CLIENT BACKUP WINDOWS (app-module)     71     6.81
    CLIENT SOFTWARE INSTALLATION     FILEMAKER DATABASE (database app)     64     1.95
    +++++++++++++++++++++++++++++
    When I run
    SELECT LOGICAL_NAME,TECHNICAL_SERVICE from SMINCREQ WHERE ((TECHNICAL_SERVICE='CLIENT SOFTWARE INSTALLATION' and LOGICAL_NAME='BLANK (blank)')) and open_time>'7/1/2011' order by LOGICAL_NAME
    I get 143 rows returned.. so how do I get the 151 in the original query in the this post
    When I run
    SELECT LOGICAL_NAME,TECHNICAL_SERVICE from SMINCREQ WHERE ((TECHNICAL_SERVICE='CLIENT SOFTWARE INSTALLATION' or TECHNICAL_SERVICE='REIMAGE')) and open_time>'7/1/2011' order by LOGICAL_NAME
    I get 1734 rows...I'm just a bit SQL confused.
    thanks
    Rob
    Edited by: bostonmacosx on Mar 28, 2012 12:23 PM

    In Oracle, and is a higher precedence operator than or, so without parens, your first query is equivalent to:
    SELECT TECHNICAL_SERVICE, LOGICAL_NAME, COUNT("NUMBER"),
           ROUND(AVG(CLOSE_TIME-OPEN_TIME),2) as time
    from SMINCREQ
    where TECHNICAL_SERVICE = 'CLIENT SOFTWARE INSTALLATION' or
          (TECHNICAL_SERVICE='REIMAGE' and
           open_time > '7/1/2011')
    GROUP BY (TECHNICAL_SERVICE,LOGICAL_NAME)
    ORDER BY TIME DESCThat is, find rows where technical_service is CLIENT SOFTWARE INSTALLATION regardless of open_time or
    technical_service is REIMAGE and open_time is after 7/1/2011.
    Your second query is asking for rows where technical_service is either CLIENT SOFTWARE INSTALLATION or REIMAGE and open_time is after 7/1/2011.
    Your third query is looking technical_service CLIENT SOFTWARE INSTALLATION and logical_name BLANK (blank) and open_time after 7/1/2011. It sould be written without parens at all.
    You fourth query is the same as your second with an extra (redundant) set of parens.
    Another issue that may be causing you problems is the use of a string in the comparision to open_time. If that column is defined as a date in the table, then you should really be using to_date('7/1/2011', 'dd-mm-yyyy') for the literal to avoid implicit data type conversions. If it is actually a varchar2, then you are in for a lot of trouble, unless it is very consistenly formatted.
    John

Maybe you are looking for

  • Adobe Bridge Cache problem

    When I try to open Bridge I repeatedly get a message telling me to purge the cache. I have tried doing this, but Bridge just runs very very slowly or hangs. I have to close my PC down to get Bridge to re-start.

  • "Unknown Error" msg. for Officejet J3640

    My printer, about 6 months old, has always been unreliable.  It refuses to print and it refuses to give me an error number or title.  I have searched all the posts here in the forum, I have run a test page (all okay), printed a document from Word 200

  • How to do in-place-upgrades with the new patch sets (11.2.0.2.0)?

    Hello, Oracle has released the new patch set 11.2.0.2.0 for Oracle Database whose installation deviates from the previous patch set instructions. Are there any new deployment procedures available to do an in-place upgrade? We have a lot (about 100) o

  • Hash join

    I have an index on CAT_MAP_ID column of STM_RPT_ITEM_PH6_MV but I don't know why it's not using nested look join for 21 rows returned (outer) to join 641k rows in STM_RPT_ITEM_PH6_MV table. I think that's the reason this query is consuming very high

  • To know api for discrepancy  report.....(in order managment)

    hii, dudes, i want know concurrent program for discrepancy report in order managment.. for shipped order..... .