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

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

  • Alright I give! I need some help with groups/busses and more please..

    Hi all,
    Well, its now been a few weeks of my off and on testing with my new Logic Rig, I have every plug I can transfer over to UB that I can and now am trying to get deeper into things.
    First I struggled with learning the environment (I still dont get it fully) but now I am really confused about group and fx tracks.
    - Am I missing something or is everything just a buss turned into a group? This also included creating an FX track?
    If this is the case then its not nearly as complex as I think it is but I cant figure certain things out with the way logic handles naming in regards to its busses.
    Lets say I want to create a sidechain group. I take an audio track change it to represent buss (1), I then rename buss 1 to SC-GROUP, now any window that I drop down to find the newly names SC-GROUP always remains named as buss (1). This even happens when I rename the buss direct from the audio environment.
    I must be missing something, whats been confusing the heck out of me is that no matter how I try and name things they always remain their original names in any menues as the example of the buss (1), so how do I rename these channels so I can clearly know exactly where I am routing audio?
    So lets summarise where I am lost so far hehe.
    1. Are groups really just empty busses renamed to act as a group?
    2. How can I rename a buss/group and be able to see the renamed channel in the menues.
    and for the 3rd new question of sorts...
    3. FX Sends, again is this just a buss that has an AU inserted into its channel and then rout the insert of an additional audio channel to the buss with the FX inserted?
    and now my last uestion of the day if I have not confused you to death so far
    Why is it that when I add a AU lets say battery as instrument 1, when I add another in the window and I rerout an instrum,ent track the next AU shows up at the bottom of the list instead of inst. 2?
    If I am not explaining myself clearly enough for any of my examples let me know so I can try to better represent my questions. I am still so new to Logic and still have yet to get the bulk of the simple operations down just yet..
    Thanks again for all your asistance!

    Thank you guys,
    So if I understand right, a sub buss is nothing more than a routing the output of a few channels to a buss to control a few aspects like I had mentioned compressing an entire group of tracks EG: a drum buss (in this situation a drum sub buss?).
    So I will have to reffer to the manual again to read the details on an actual group since it does seem there is a difference EG: the group can actually manipulate the faders of channels routed to the group?
    FX busses seem to be just that, slap an FX info either and AUX channel or a buss and then set the insert of that AUX or buss desired.
    The reason I asked about naming is that lets say I have 6 effects tracks I wish to use lets say as an example AUX1=Short Delay, AUX2=Long Filter Delay, AUX3=Slap Verb, AUX4=Long Verb and so forth.
    When I go to actually use these inserts I need to assume I know exactly what AUX I assigned each effect to, if I could simply rename this AUX track to refference the effect it would make so much more sense then trying to remember what AUX5 was.
    In regards to my last question here is a bit more of a detailed explanation, please bare with me as I am not in front of my computer.
    1. I add battery into Audio Instrument-1
    2. I then configure my environemt to use my AUXs I already have inplace for audio routing.
    3. I then edit the Audio window create the midi for a new multi-instrument.
    4. I come back to the main arrange window and hold-click on the next available audio-instrument and in the instrument window battery will be instrument 1 out of how ever many blanks apear EG:25+
    5. Now I go to add lets say Stylus RMX into the next available mutli audio instrument. I then repeat steps 2,3,4.
    Now when I get to step 4 this time instead of audio instrument 2 from the lint being Stylus it shows up as the last possible instrument in the drop list that appears under audio instrument from hold-click on the audio-instrument track.
    Its just odd, it should be instrument 2, but instead it shows up as the last possible choice.
    Maybe I am doing something wrong, even sometimes when I grab on of batteries midi tracks and create next object I will get a random audio track in there out of no where, or maybe its just a bug with battery.
    Any ideas? If I still am not describing this right, I will post a step by step this eve of exactly the steps I am taking.
    Thanks again, this forum has been very helpful in getting me going with the questions I just cant seem to get around from my Nuendo work flow.
    Cheers!

  • 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

  • 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

  • I need some help about Group by sql statement.

    Thank you for reading my post
    I am learning more sql and i have a question which is about HR schem.
    how i can show Departments.department_name in the following sql query?
    I want query to show department names along with department IDs.
    SELECT department_id dept_id, job_id, SUM(salary)
    FROM employees
    GROUP BY department_id, job_id ;thanks

    hi
    like this
    SQL> ed
    Wrote file afiedt.buf
      1  select d.department_id dept_id, d.department_name, e.job_id, sum(e.salary)
      2  from employees e, departments d
      3  where e.department_id = d.department_id
      4* group by d.department_id, d.department_name, e.job_id
    SQL> /
       DEPT_ID DEPARTMENT_NAME                JOB_ID     SUM(E.SALARY)
            10 Administration                 AD_ASST             4400
            20 Marketing                      MK_MAN             13000
            20 Marketing                      MK_REP              6000
            30 Purchasing                     PU_MAN             11000
            30 Purchasing                     PU_CLERK           13900
            40 Human Resources                HR_REP              6500
            50 Shipping                       ST_MAN             36400
            50 Shipping                       SH_CLERK           64300
            50 Shipping                       ST_CLERK           55700
            60 IT                             IT_PROG            28800
            70 Public Relations               PR_REP             10000
       DEPT_ID DEPARTMENT_NAME                JOB_ID     SUM(E.SALARY)
            80 Sales                          SA_MAN             61000
            80 Sales                          SA_REP            243500
            90 Executive                      AD_VP              34000
            90 Executive                      AD_PRES            24000
           100 Finance                        FI_MGR             12000
           100 Finance                        FI_ACCOUNT         39600
           110 Accounting                     AC_MGR             12000
           110 Accounting                     AC_ACCOUNT          8300
    19 rows selected.
    SQL>hope this helps
    Taj

  • 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 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 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

  • Interesting date query I need some help with

    I need to select dates for each day starting from a
    particular date up until the present day. These dates are for days
    where a value doesn't exist in the table.
    Thanks for any advice

    > how to do this purely in sql
    In ms sql you could use a table valued udf. The udf could
    generate the dates and insert them into a table variable that would
    be used in your join. The basic logic is the same. Create two
    variables: @startDate and @todaysDate. Then loop while the start
    date is <= today's date. Within each loop insert the current
    date into the table variable, and increment the start date
    http://msdn.microsoft.com/en-us/library/ms191165.aspx
    while @startDate <= @today
    begin
    insert into @dateTable (theDate) values (@startDate)
    set @startDate = dateAdd(d, 1, @startDate)
    end
    Though personally I prefer using using a permanent calendar
    table. I use that table in my selects rather than generating a
    table of dates each time.

  • 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();
      }

  • Need some help with the Select query.

    Need some help with the Select query.
    I had created a Z table with the following fields :
    ZADS :
    MANDT
    VKORG
    ABGRU.
    I had written a select query as below :
    select single vkorg abgru from ZADS into it_rej.
    IT_REJ is a Work area:
    DATA : BEGIN OF IT_REJ,
            VKORG TYPE VBAK-VKORG,
            ABGRU TYPE VBAP-ABGRU,
           END OF IT_REJ.
    This is causing performance issue. They are asking me to include the where condition for this select query.
    What should be my select query here?
    Please suggest....
    Any suggestion will be apprecaiated!
    Regards,
    Developer

    Hello Everybody!
    Thank you for all your response!
    I had changes this work area into Internal table and changed the select query. PLease let me know if this causes any performance issues?
    I had created a Z table with the following fields :
    ZADS :
    MANDT
    VKORG
    ABGRU.
    I had written a select query as below :
    I had removed the select single and insted of using the Structure it_rej, I had changed it into Internal table 
    select vkorg abgru from ZADS into it_rej.
    Earlier :
    IT_REJ is a Work area:
    DATA : BEGIN OF IT_REJ,
    VKORG TYPE VBAK-VKORG,
    ABGRU TYPE VBAP-ABGRU,
    END OF IT_REJ.
    Now :
    DATA : BEGIN OF IT_REJ occurs 0,
    VKORG TYPE VBAK-VKORG,
    ABGRU TYPE VBAP-ABGRU,
    END OF IT_REJ.
    I guess this will fix the issue correct?
    PLease suggest!
    Regards,
    Developer.

  • We have a set of oracle clients running on T5220 zones that need some help

    Greetings all -
    We have a set of oracle clients running on T5220 zones that need some help.
    If, for example, I execute the query "select (all) from dba_objects", trace output reports 90% of the elapsed time spent under "SQLNet message from client".
    Here are OS details for the clients: Solaris 10 5/08 s10s_u5wos_10 SPARC
    Running "uname -a" from the client gives:
    (SunOS bmc-ste-app 5.10 Generic_127127-11 sun4v sparc SUNW,SPARC-Enterprise-T5220)
    Here are OS details for the dataserver: Enterprise Linux Enterprise Linux Server release 5.2
    Running "uname -a" from the dataserver gives:
    (2.6.18-92.1.6.0.2.el5 #1 SMP Thu Jun 26 17:44:55 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux)
    The RDBMS is 10.2.0.4
    Again, please note, there is no application in the picture here. We are just running a simple catalog query (select * from dba_objects) from sqlplus. Why the wait on something like this? The wait also occurs when a different query is used (select (all) from SYS.COL$ where rownum < 50000). And it doesn't matter if I used the full client or the instant client. I still get the same high-wait.
    We had thought - maybe this is a network thing - so we put a test client on the same subnet as the dataserver. This helped - but not enough. The wait is still way too high even with firewalls taken out of the equation.
    We've also looked at arraysize, SDU, kernel settings. And we've spent time going over tkprof, truss and sqlnet-tracing.
    Has anyone ever had to solve this HIGH WAIT ON CLIENT issue? Is there a work around or some tweak I'm missing.
    Is anyone configured like we are (linux dataserver, solaris clients)? If so - did you see anything like this?
    tia -
    Jim
    Edited by: jim1768 on Mar 31, 2010 1:47 PM
    Edited by: jim1768 on Mar 31, 2010 2:12 PM
    Edited by: jim1768 on Mar 31, 2010 2:13 PM

    Hello,
    We have the exact same issue. Did you ever solve this issue? We have a t5220 and have just upgraded our 11.5.10.2 11i system on it from 9.2.0.8 32-bit sparc to 11.2.0.1 64-bit sparc. Things should be faster but arent, and our consultant has tracked it down to high wait times when the apps tier using forms connects to the database tier on the same box. So even though the t5220 is both server and client, there is something about the client sql connection.through TNS that his having trouble. Thanks for any information. We've also created an S/R with Oracle.
    Note: I am well aware of the other issues with the CMT server series but this particular issue seems independent of the regular / known issues and remains a mystery to us. Other known issues with the CMT servers for SPARC:
    Metalink Note 781763.1 (Migration from fast single threaded CPU machine to CMT UltraSPARC T1 & T2)
    http://blogs.sun.com/glennf/resource/Optimizing_Oracle_CMT_v1.pdf
    http://blogs.sun.com/glennf/tags/throughput
    http://blogs.sun.com/glennf/entry/getting_past_go_with_sparc
    http://www.oracle.com/apps_benchmark/doc/E-Bus-11i-PAY_ORA_SUN-T5220.pdf (this paper has some oracle init settings at the end. The kernel settings have been included in the OS upgrade)
    http://blogs.sun.com/mandalika/entry/siebel_on_sun_cmt_hardware

  • HT1222 I need some help.... I Have the iPhone 4S and downloaded the new software (6.0) and everything seems great so far except when I try to open a link in safari from a different app (messages, Facebook, ext..) it glitches and won't load. Any advice?

    I need some help.... I Have the iPhone 4S and downloaded the new software (6.0) and everything seems great so far except when I try to open a link in safari from a different app (ie..messages, Facebook, ect..) it glitches and won't load. The blue loading bar will just jump back and forth and the page will not load properly if at all....

    It sounds like you may have multiple problems, but none of them are likely to be caused by malware.
    First, the internet-related issues may be related to adware or a network compromise. I tend to lean more towards the latter, based on your description of the problem. See:
    http://www.adwaremedic.com/kb/baddns.php
    http://www.adwaremedic.com/kb/hackedrouter.php
    If investigation shows that this is not a network-specific issue, then it's probably adware. See my Adware Removal Guide for help finding and removing it. Note that you mention AdBlock as if it should have prevented this, but it's important to understand that ad blockers do not protect you against adware in any way. Neither would any kind of anti-virus software, which often doesn't detect adware.
    As for the other issues, it sounds like you've got some serious corruption. I would be inclined to say it sounds like a failing drive, except it sounds like you just got it replaced. How did you get all your files back after the new drive was installed?
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • Need some help with pictures

    Hi,
    I need some help to try to understand some of my issues; i'm creating a catalogue for a company and i'm uploading TIFFs pictures (600 of them). My problem is that this catalogue is both for print and web but is getting really heavy as a file, is there another way to convert all the pictures and maintain the quality for print and a reasonable size for web?
    I'm uploading TIFFs because i need the transparency and i can't upload as PNG...
    Can someone help me please.
    I really appreciate

    alanpires wrote:
    ...  this catalogue is both for print and web ...
    Choose either file size (for web) or image quality (for print). Something has to give.
    This "for web" business, is that still a PDF? Then export for print with full resolution, and export another version to put online where yo adjust the export settings for the web until image quality is worse than having a megabyte or two more.

Maybe you are looking for

  • Error while Launch Setup of IDM(Identity Install Pack 2005Q3M1)

    Hi Everyone, I have installed IDM(Identity Install Pack 2005Q3M1),but when i launch setup and select repository type as Oracle and provide URL,JDBC Drvier,Connect User,Connect Password it gives error com.waveset.util.InternalError: ==> java.lang.Numb

  • Message delivery failure

    is anyone else getting an annoying message not delivered after every text?

  • Cant restore to factory settings

    running the factory disk does not retore system It says can not use os x on this system

  • Excise on pacaking

    HI expert I have scenario tht i want to map excise if duties on material price + packing. Material price = 100 packing charges=20 i want the excise to be calculated on on 120 Regard Nabil

  • Preset Error? What happened? How to Fix?

    This all of the sudden happened in my Ppro project randomly. I haven't downloaded plugins or anything I only use what's in the Adobe CS6 cloud suite. Then I went to Encoder and tried to burn a DVD with the mpeg2 preset and all the sudden it gave me t