Grouping few records.. Please help me....

Hi all,,
I have the following doubt.
I have a field by name area and it is filled with many values as shown below
I would like to group them as Locations.
For example
Area
abc1
abc2
abc3
abc4
abc5
abc6
I would like to group first three records and get the result as Location
That means when i run this query i want to name it as Location
Thanks and Regards
Nick

This is even more confusing :
Grouping few records.. Please help me....

Similar Messages

  • I am facing problem with adobe illustrator cc in windows 8,it closes automatically after few secons,please help

    I am facing problem with adobe illustrator cc in windows 8,it closes automatically after few secons,please help
    [ link removed by moderator ]

    Sign in, activation, or connection errors | CS5.5 and later
    Mylenium

  • Microphone of my iphone is not working when i call anyone nobody can listen but me, its working with headphone but its also working with videocam recording, please help me to solve this probelm.

    microphone of my iphone is not working when i call anyone nobody can listen me its working with headphone. but it is working with videocam recording, please help me to solve this probelm.

    Try this:
    1. Reset the iPhone by pressing and holding the sleep/wake and home buttons and releasing them, when the Apple logo appears on the display. Now test again.
    2. If the issue persists: Restore the iPhone without any of your own content, using this description from Apple: http://support.apple.com/kb/HT4137
    3. If the issue persists, Your iPhone need repair.

  • HT4085 Some videos that are taken with my iphone's camera are not making sounds, this problem occured today to all videos i record, please help

    Some videos that are taken with my iphone's camera are not making sounds, this problem occured today to all videos i recorded starting from today, please help

    It also takes time for the photos to be transferred out of your iPhone and into Photo stream on Apple's iCloud servers.
    Note that this can't happen if your iPhone is not connected to a WiFi network:
    When you enable My Photo Stream on your devices, all new photos you take or import to those devices will be automatically added to your photo stream.
    iOS devices: New photos you take are automatically uploaded to your photo stream when you leave the Camera app and are connected to Wi-Fi. My Photo Stream does not push photos over cellular connections.
    Macs: Any new photos you import to iPhoto or Aperture begin uploading automatically when you have a Wi-Fi or Ethernet connection. Or you can change your iPhoto or Aperture preferences so that only photos you manually add to My Photo Stream are uploaded.
    PC with iCloud Control Panel 2.0 or later: Open a Windows Explorer window and under Favorites select iCloud Photos if you are using iCloud Control Panel 3.0 (or Photo Stream if you are using 2.0 to 2.1.2). Open My Photo Stream. Click the "Add photos" button. Select the photos to import to My Photo Stream, then click Open.
    from here: http://support.apple.com/kb/ht4106

  • Inserting Millions of records-Please Help!

    Hi All,
    I have a scenario where I hvae to query MARA and filter out some articles and then query WLK1 table(Article/Site Combination) and insert the records to a Custom (z) table.the result maybe millions of records,
    can anyone tell me a efficient way to insert large number of records? This is urgent.Please help.
    Warm Regards,
    Sandeep Shenoy

    This is a sample code i am using in one of my programs. You can try similar way and insert into custom table with every loop pass.
    I am considering 2000 records at a time. You can decide the no and code accordingly.
      if not tb_bkpf[] is initial.
    fetching the data from BSEG for each 1000 entries in BKPF to
    reduce the overhead of database extraction.
        clear l_lines .
        describe table tb_bkpf lines l_lines.
        if l_lines >= 1.
          clear: l_start, l_end.
          do.
            l_start = l_end + 1.
            l_end = l_end + 2000.
            if l_end > l_lines.
              l_end = l_lines.
            endif.
            append lines of tb_bkpf from l_start to l_end to tb_bkpf_temp.
    Populating the tb_bseg_tmp in the order of the database table
            select bukrs
                   belnr
                   gjahr
                   buzei
                   shkzg
                   dmbtr
                   hkont
                   matnr
                   werks
              from bseg
              appending table tb_bseg_tmp
              for all entries in tb_bkpf_temp
              where bukrs = tb_bkpf_temp-bukrs and
                    belnr = tb_bkpf_temp-belnr and
                    gjahr = tb_bkpf_temp-gjahr and
                    hkont in s_hkont.
            refresh tb_bkpf_temp.
            if l_end >= l_lines.
              exit.
            endif.
          enddo.
        endif.

  • How to restore/view the deleted records - Please help me on this regard

    Hi All,
    Please help me in restore/view the deleted data.
    I had removed 2 records from a table without back up and commited the same. Now I want to restore/view it, can you please guide me on this regard.
    Oracle Version: 10g
    OS: Windows XP
    Database in Archive Mode.
    With Regards,
    Jamearon

    Aman.... wrote:
    <snip>
    If all what you want is to view the data, you can use the Flashback's as of query which would enable you to go back either by SCN or by Timestamp. If you want to restore those rows back in the time( and losing the changes that has happened in that time ), you can use the Flashback Table option. An example of this is given below,
    http://www.oracle-base.com/articles/10g/Flashback10g.php
    HTH
    Aman....As promised, here's one way to use flashback to restore the one deleted row without having to impact the rest of the table with a general FLASHBACK TABLE.
    =~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2011.01.23 15:17:56 =~=~=~=~=~=~=~=~=~=~=~=
    login as: oracle
    oracle@vmlnx01's password:
    Last login: Sun Jan 23 15:13:10 2011 from 192.168.160.1
    [oracle@vmlnx01 ~]$ sqlplus /nolog
    SQL*Plus: Release 10.2.0.4.0 - Production on Sun Jan 23 15:18:11 2011
    Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
    SQL> @doit
    SQL> col col_ts for a15
    SQL> conn scott/tiger
    Connected.
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Prod
    PL/SQL Release 10.2.0.4.0 - Production
    CORE10.2.0.4.0Production
    TNS for Linux: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    5 rows selected.
    SQL> --
    SQL> alter session set nls_timestamp_format='hh24:mi:ss.FF';
    Session altered.first we will create a test table and populate it. Pay close attention to the row identified by col_id=2
    SQL> drop table flashtest;
    Table dropped.
    SQL> create table flashtest
      2   (col_id number(1),
      3    col_ts timestamp,
      4    col_txt varchar2(10)
      5   );
    Table created.
    SQL> --
    SQL> insert into flashtest
      2    values (1, systimestamp, 'r1 v1');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> exec dbms_lock.sleep(5);
    PL/SQL procedure successfully completed.
    SQL> --
    SQL> insert into flashtest
      2    values (2, systimestamp, 'r2 v1');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> exec dbms_lock.sleep(5);
    PL/SQL procedure successfully completed.
    SQL> --
    SQL> insert into flashtest
      2    values (3, systimestamp, 'r3 v1');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> exec dbms_lock.sleep(5);
    PL/SQL procedure successfully completed.
    SQL> --
    SQL> select * from flashtest;
        COL_ID COL_TS          COL_TXT
             1 15:18:14.896167 r1 v1
             2 15:18:21.841682 r2 v1
             3 15:18:28.772038 r3 v1
    3 rows selected.
    SQL> --
    SQL> update flashtest
      2   set col_ts = systimestamp,
      3       col_txt = 'r2 v2'
      4   where col_id = 2;
    1 row updated.
    SQL> commit;
    Commit complete.
    SQL> select * from flashtest;
        COL_ID COL_TS          COL_TXT
             1 15:18:14.896167 r1 v1
             2 15:18:35.929847 r2 v2
             3 15:18:28.772038 r3 v1
    3 rows selected.
    SQL> exec dbms_lock.sleep(5);
    PL/SQL procedure successfully completed.So at this point we can see that we have 3 rows, and row 2 has been modified from its original values.
    Now we will delete that row.
    SQL> --
    SQL> delete from flashtest
      2  where col_id=2;
    1 row deleted.
    SQL> commit;
    Commit complete.
    SQL> --
    SQL> select * from flashtest
      2  order by col_id;
        COL_ID COL_TS          COL_TXT
             1 15:18:14.896167 r1 v1
             3 15:18:28.772038 r3 v1
    2 rows selected.Now let's do a SELECT...VERSIONS and see what flashback knows about the row.
    SQL> --
    SQL> select col_id,
      2         col_ts,
      3         col_txt,
      4         nvl(versions_startscn,0) START_SCN,
      5         versions_endscn END_SCN,
      6         versions_xid xid,
      7         versions_operation operation
      8  from flashtest
      9  versions between scn minvalue and maxvalue
    10  where col_id=2
    11  order by col_id, start_scn;
        COL_ID COL_TS          COL_TXT     START_SCN    END_SCN XID              O
             2 15:18:21.841682 r2 v1               0    2802287
             2 15:18:35.929847 r2 v2         2802287    2802292 0200260082060000 U
             2 15:18:35.929847 r2 v2         2802292            0A002300A4060000 D
    3 rows selected.
    SQL> --And having seen the above, we can use a more selective form to provide the values for an INSERT statement to put the row back.
    SQL> insert into flashtest
      2     select col_id,
      3            col_ts,
      4            col_txt
      5     from flashtest
      6     versions between scn minvalue and maxvalue
      7     where col_id=2
      8       and versions_operation = 'D'
      9  ;
    1 row created.
    SQL> --
    SQL> select * from flashtest
      2  order by col_id;
        COL_ID COL_TS          COL_TXT
             1 15:18:14.896167 r1 v1
             2 15:18:35.929847 r2 v2
             3 15:18:28.772038 r3 v1
    3 rows selected.
    SQL>One could also query FLASHBACK_TRANSACTION_QUERY to get the actual DML needed to UNDO an operation on a single table.

  • My iPod touch won't turn off. I tried and the turn off slide button in stuck in the of position, but it's still not turning off. It's been a few days please help!!!!

    My white 4th generation iPod touchs turn of slide button is stuck on off but my iPod won't turn off for some reason and it only shuts off when the battery dies. It's been stuck like this for some time. Please please please help!!!!

    First, try a system reset.  It cures many ills and it's quick, easy and harmless...
    Hold down the on/off switch and the Home button simultaneously until the screen blacks out or you see the Apple logo.  Ignore the "Slide to power off" text if it appears.  You will not lose any apps, data, music, movies, settings, etc.
    If the Reset doesn't work, try a Restore.  Note that it's nowhere near as quick as a Reset.  Connect via cable to the computer that you use for sync.  From iTunes, select the iPad/iPod and then select the Summary tab.  Follow directions for Restore and be sure to say "yes" to the backup.  You will be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad/iPod.  Again, say "yes."
    Finally, if the Restore doesn't work, let the battery drain completely.  Then recharge for at least an hour and Restore again.

  • Adobe audition cc crashes after a few times of recording(please help)

    Okay so Adobe audition is incredibly useful or should i say WAS... It was great until one day it just crashed after a few times of recording. I just thought maybe something went wrong whatever ill re do it. But no.. for months ive been trying, uninstalling and reinstalling, updating, closing all other programs running but nothing has seemed to do it. Audition is really important to my music career and lately i havent been able to do anything because it doesnt work. Im begging, can someone PLEASE try to help me, im desperate.
    heres a pic of what happens when it crashes:

    I notice from the picture that you have four files in the middle of processing. Do you remember what they were doingwhen the crash happened? Were they saving or did you have some effects processing going on?
    Also either Audition or Windows may have saved a crash report somewhere which could help to diagnose the problem. I am not sure where they may have been saved but others might remember where to look for them.

  • A few questions -- please help!

    I know they may seem long and complex. Any help would be appreciated.
    1) Where can we find the detailed description of the database used by
    the personalization server (to store user and portal configuration
    information)? What steps do we have to go through to set up a database on
    the Sybase server?
    2) When one portlet fails (throws an exception), the whole portal seems
    to fail. How can we avoid that?
    3) Can we define our own tags similar to the way they are defined in
    the JSP files that come with the product? Such as,
    <%@ taglib uri="lib/esportal.jar" prefix="pt" %>
    4) We seem to experience problems with the Administration tool. The
    layout of portlets on the resulting portal page does not reflect what is
    shown in the administration tool. Is there something we have not done
    properly? Any suggestions?
    5) Are there any built-in EJBs or JSP tags that implement XML parsing
    and/or rendering.

    Ariyanto,
    This is a great explanation. Thanks for going to all that trouble! I will make sure your hard work makes it into the official documentation.
    We are currently working hard on simplifying these relationships and would also like to enforce DB level constraints that will make them easier to understand.
    Sincerely,
    Daniel Selman
    Ariyanto Sultanry wrote in message <[email protected]>...
    Hi, I went through similar confusion when I check out the WLCS tables.
    I finally found out that WLCS follow some kind of pattern, which basically achieve a very high flexibility in terms of adding properties.
    The following is a bit "phylosophical" (heavy design material) and rather long.
    Be very careful not to delete or modify anything from these tables manually because you may upset the configuration you have set using Admin tool.
    I start with the table which contains a very small information on the user, wlcs_user. The key in wlcs_user is the identifier (user ID). However, a user, is an considered as an entity. Thus this 2 tables need to be viewed together. Identifier is the human readable key. Entity_ID is the key weblogic uses (in wlcs_entity_id). The key is auto-generated. For user, you may want to check for those with JNDI_HOME_NAME = com.beasys.commerce.axiom.contact.User for example.
    However, this relation is one way only (user to entity). Entity can also means other thing (not just user, but may also mean group).
    User then has property. Some property which belongs to portlet are controlled by weblogic. You cannot add additional property there, and therefore they exist their own table. However, in Admin Tool you can add custom properties. But first you have to create property set. Property set is stored in wlcs_schema. Within property set, the property can be defined (using Admin Tool) and this is entered in wlcs_prop_md (md = meta data?) AND wlcs_prop_md_integer or wlcs_prop_md_float, etc depending on the type. THIS IS WHAT CONFUSES A LOT OF PEOPLE INCLUDING ME (at least initially).
    Similar to wlcs_user, you cannot look at wlcs_prop_md alone. For each record, it has to be combined with the appropriate record from one of the wlcs_prop_md_integer/float/text...etc.
    The user can then use this custom property, and the value the user has for this property is stored in the wlcs_prop_md_integer, float, text, etc, depending on the specified type.
    This is what is missing from the documentation provided by WLCS. I manage to deduce this after working on it for 1.5 days (with help from a DBA) and using plenty of data and select statement.
    Feedback to WEBLOGIC:
    1. Please be consistent with naming (meta_data, metadata, md - 3 combination!)
    2. Please provide mapping between object and tables. Your enterprise clients will thank you because it makes clear from their side, how their existing table going to work with your table. The faster the tech people understand your internal system, the more comfortable they are with WebLogic, the faster the project can start, the faster PURCHASE ORDER come to your SALES TEAM. Think about it!
    Aryanto
    Ture Hoefner wrote in message <[email protected]>...
    Does this mean that for a given user, WLCS_PROP_TEXT will have one and only one entry/row for a given property (ie. in this case email)?
    Yes, if it is a single-valued property.
    what happens if I define multiple profiles, using Unified Profile Type? can I store multiple values for the same user and property, email?I may want to create two profiles, one contains my home setting and another contains my work setting. In both, I may want to use same 'email' address but different phones. how can I achieve this?
    This is not what the UUP is meant for. The UUP is meant for your custom Users that keep the data for their properties in an existing database instead of the reference implementation. If you create a UUP for a HomeUser and one for a WorkUser, they are different types of User but you won't be able to have a HomeUser and a WorkUser with the same name. They are all Users in your system.
    There are many possible solutions to your problem. Here is one: use different property sets. Have a WorkProperties and a HomeProperties. You can have a text property called "CurrentLocation" and use a classifier rule to classify a user as a WorkUser or a HomeUser. Then you can use the PersonalizationAdvisor (with the <pz:div> tag) to get the phone number from the correct property set.
    As I said, there are many possible solutions. The user management and rules frameworks are flexible and I have no doubt that you could implement an elegant solution with a little planning.
    Ture Hoefner
    BEA Systems, Inc.
    1655 Walnut Street; suite 200
    Boulder, CO 80302
    www.beasys.com
    [att1.html]

  • SOS problem using one Entity bean for editing records. please help me

    Hello
    I have one great problem using one entity bean 2.1 and i am working with this problem several days and i dont solve it.
    i am using this jb 2.1 for add new records to one oracle database and for editing records.
    I have one great problem for editing records
    I have one objets that is as one of my database table. (PersonaObj.java)
         //personaObj.java
         public class PersonaObj implements Serializable{
              private Integer id_persona; //this ishte database table autonumeric
              private java.lang.String nombre;
              now the set/get methods.
         One field of this objets (bean) is the primary key of the table, and this field is one part of the pk from the entity bean.
         From one session bean i call the entity bena passing the objet
         into the entity bean (interface) i have one methods:
              public getPersona getT56aaat04();
         public void setPersona(PersonaObj obj);
         into the entitybean bean i have:
         public PersonaEntityPK ejbCreate(PersonaObj obj) throws CreateException {
              this.setT56aaat04(obj);
              public abstract Integer getId_persona();
         public abstract void setId_persona(Integer Id_persona);
         public abstract java.lang.String getNombre();
         public abstract void setNombre(java.lang.String Nombre);
         public PersonaObj getPersona() {
              PersonaObj obj = new PersonaObj();
              obj.setId_persona(getId_persona());
              obj.setNombre(getNombre());
              return obj;
         public void setPersona(PersonaObj obj) {
              setId_persona(obj.getId_persona());
              setNombre(obj.getNombre());
    But i have one graet problem.
    adding new record to the database i runs well but if i want to edit one recor appears this error:
    => Error <=
    java.rmi.RemoteException: EJB Exception: ; nested exception is: javax.ejb.EJBException: EJB Exception: : java.lang.IllegalStateException:[EJB:010144]The setXXX method for a primary key field may only be called during ejbCreate.
    at PersonasEJB_a43o8n__WebLogic_CMP_RDBMS.setId_persona(PersonasEntityEJB_a43o8n__WebLogic_CMP_RDBMS.java:328)
    at PersonasEntityBean.setPersona(PersonasEntityBean.java:114)
    at PersonasEntityEJB_a43o8n_ELOImpl.setPersona(PersonasEntityEJB_a43o8n_ELOImpl.java:45)
    at PersonasSessionBean.editarPersona(PersonasSessionBean.java:849)
    at PersonasSessionBean_bszo9t_EOImpl.editarPersona(PersonasSessionBean_bszo9t_EOImpl.java:208)
    at PersonasSessionBean_bszo9t_EOImpl_WLSkel.invoke(Unknown Source)
    into the session bean i make this (the session recibes one PersonaObj obj):
    T56aContactosEntityLocal personaLocal ;
                   try {
                        personaLocal = personaHome.findByPrimaryKey(new T56aContactosEntityPK(obj.getId_a04()));
                        T56aaat04Obj objTmp = new T56aaat04Obj();
                        objTmp.setAp1_a04(obj.getAp1_a04());
                        objTmp.setEstado_a04("false");
                        personaLocal.setT56aaat04(obj);
    Please can you help me to solve this problem?

    Hello Werner,
    The mappings seem to be alright at a first glance.
    Have you tried out un- and redeploying your application? Sometimes values appear to be cached in the server. So if you have deployed the application before you entered DB_BANK as alias this might solve the problem...
    BR
    Daniel

  • Can't leave group message. Please help :(

    I have no way to leave group message. Someone added 70 people across North America to a group message somehow. It's been going on for 3 days and none of us can leave. It ***** I need help! Please? I can take it anymore

    Nice how this was already known 5 months ago (and maybe more, I didn't search)
    community.skype.com/t5/Windows-desktop-client/Skyp​e-does-not-want-to-join-group-calls-at-all/m-p/396​...
    AND YOU DIDN'T MOVE A FINGER TO FIX THIS FU CKING ANNOYING BUG.
    As I've said in that post, your ridiculous fix didn't work, and I have to ask call creator to close call for everyone and create a new one everytime I need to rejoin it.
    Do the work you're paid for, please.

  • Oracle:JDBC Call returns no results, SQL*Plus returns 1 record, Please help

    Any help would be greatly appreciated.
    Running 9.2.0.5.0, and using latest 9.2 JDBC 1.4_g drivers in thin mode.
    Execute the following query from SQL*Plus and it returns one row, from JDBC using a PreparedStatement, I get no results. Here's the query, table def, record, etc.:
    Query:
    SELECT
    ID_WEB_FRM,ID_WEB_SIT,CDE_LVL_1_FUNC,
    CDE_LVL_2_FUNC,NUM_WEB_FUNC_PG,NUM_WEB_PG_ID
    FROM
    WEB_FRM
    WHERE
    ID_WEB_FRM = ' '
    OR
    (ID_WEB_SIT = 'test' AND CDE_LVL_1_FUNC = ' '
    AND CDE_LVL_2_FUNC = 'u2T' AND NUM_WEB_FUNC_PG = 1
    AND NUM_WEB_PG_ID = 0)
    Record returned from SQL*Plus:
    ID_WEB_FRM ID_WEB_SIT CDE CDE NUM_WEB_FUNC_PG NUM_WEB_PG_ID
    NfRRmc5XZu test u2T 1 0
    Both in the data returned and the query, there are no blanks, but they are a single space instead (hard to see in message here).
    Java code:
    int count = 1;
    findDBNameStatement.setString(count++," ");
    findDBNameStatement.setString(count++,form.getSiteID());
    findDBNameStatement.setString(count++," ");
    findDBNameStatement.setString(count++, form.getFunctionID());
    findDBNameStatement.setInt(count++,form.getPageNumber());
    findDBNameStatement.setInt(count++,form.getSectionNumber());
    ResultSet resultSet = findDBNameStatement.executeQuery();
    ResultSetMetaData metaData = resultSet.getMetaData();
    resultSet.next() returns false
    DB table:
    CREATE TABLE web_frm (
    ID_WEB_FRM varchar2(10) NOT NULL,
    ID_WEB_SIT varchar2(20) NOT NULL,
    NAM_WEB_FRM varchar2(40),
    TXT_EMAIL_SUBJ varchar2(50),
    CDE_LVL_1_FUNC char(3),
    CDE_LVL_2_FUNC char(3) NOT NULL,
    NUM_WEB_FUNC_PG int NOT NULL,
    NUM_WEB_PG_ID smallint NOT NULL,
    DTE_WEB_FRM_EFF date NOT NULL,
    DTE_WEB_FRM_TRM date,
    CDE_VLDT_RUL char(3),
    DTE_LAST_EXPRT date,
    TXT_CNFRMN_MSG varchar2(4000),
    IND_UPDT_ALWD char(1) NOT NULL,
    TXT_RECAP_HDR varchar2(4000),
    TXT_RECAP_FTR varchar2(4000),
    CDE_WEB_OBJ char(3),
    NUM_MAX_FRM_WIDTH number(4,0),
    IND_RECAP_PG char(1) NOT NULL,
    IND_CNFRM_PG char(1) NOT NULL,
    IND_DSPL_CNFRM_NUM char(1) NOT NULL,
    CNT_SUBM_MAX int,
    TXT_CHCE_ADD_MSG varchar2(255),
    TXT_CHCE_MOD_MSG varchar2(255),
    TXT_WEB_HDR varchar2(4000),
    TXT_WEB_FTR varchar2(4000),
    TXT_WAIT_LIST_MSG varchar2(255),
    FORMOBJECTHEIGHT int NOT NULL,
    FORMOBJECTWIDTH int NOT NULL
    ALTER TABLE web_frm ADD ( CONSTRAINT PK_web_frm PRIMARY KEY (ID_WEB_FRM));
    ALTER TABLE web_frm ADD ( CONSTRAINT UK_web_frm UNIQUE (ID_WEB_SIT,CDE_LVL_1_FUNC,CDE_LVL_2_FUNC,NUM_WEB_FUNC_PG,NUM_WEB_PG_ID)) ;
    Thanks,
    Matt

    That's not quite right. From the javadocs:
    next
    public boolean next()
    throws SQLException
    Moves the cursor down one row from its current position. A ResultSet cursor is initially positioned before the first row; the first call to the method next makes the first row the current row; the second call makes the second row the current row, and so on.
    If an input stream is open for the current row, a call to the method next will implicitly close it. A ResultSet object's warning chain is cleared when a new row is read.
    Returns:
    true if the new current row is valid; false if there are no more rows
    Throws:
    SQLException - if a database access error occurs

  • JDBC Call returns no results, SQL*Plus returns 1 record, Please help!

    Any help would be greatly appreciated.
    Running 9.2.0.5.0, and using latest 9.2 JDBC 1.4_g drivers in thin mode.
    Execute the following query from SQL*Plus and it returns one row, from JDBC using a PreparedStatement, I get no results. Here's the query, table def, record, etc.:
    Query:
    SELECT
    ID_WEB_FRM,ID_WEB_SIT,CDE_LVL_1_FUNC,
    CDE_LVL_2_FUNC,NUM_WEB_FUNC_PG,NUM_WEB_PG_ID
    FROM
    WEB_FRM
    WHERE
    ID_WEB_FRM = ' '
    OR
    (ID_WEB_SIT = 'test' AND CDE_LVL_1_FUNC = ' '
    AND CDE_LVL_2_FUNC = 'u2T' AND NUM_WEB_FUNC_PG = 1
    AND NUM_WEB_PG_ID = 0)
    Record returned from SQL*Plus:
    ID_WEB_FRM ID_WEB_SIT CDE CDE NUM_WEB_FUNC_PG NUM_WEB_PG_ID
    NfRRmc5XZu test u2T 1 0
    Both in the data returned and the query, there are no blanks, but they are a single space instead (hard to see in message here).
    Java code:
    int count = 1;
    findDBNameStatement.setString(count++," ");
    findDBNameStatement.setString(count++,form.getSiteID());
    findDBNameStatement.setString(count++," ");
    findDBNameStatement.setString(count++, form.getFunctionID());
    findDBNameStatement.setInt(count++,form.getPageNumber());
    findDBNameStatement.setInt(count++,form.getSectionNumber());
    ResultSet resultSet = findDBNameStatement.executeQuery();
    ResultSetMetaData metaData = resultSet.getMetaData();
    resultSet.next() returns false
    DB table:
    CREATE TABLE web_frm (
    ID_WEB_FRM varchar2(10) NOT NULL,
    ID_WEB_SIT varchar2(20) NOT NULL,
    NAM_WEB_FRM varchar2(40),
    TXT_EMAIL_SUBJ varchar2(50),
    CDE_LVL_1_FUNC char(3),
    CDE_LVL_2_FUNC char(3) NOT NULL,
    NUM_WEB_FUNC_PG int NOT NULL,
    NUM_WEB_PG_ID smallint NOT NULL,
    DTE_WEB_FRM_EFF date NOT NULL,
    DTE_WEB_FRM_TRM date,
    CDE_VLDT_RUL char(3),
    DTE_LAST_EXPRT date,
    TXT_CNFRMN_MSG varchar2(4000),
    IND_UPDT_ALWD char(1) NOT NULL,
    TXT_RECAP_HDR varchar2(4000),
    TXT_RECAP_FTR varchar2(4000),
    CDE_WEB_OBJ char(3),
    NUM_MAX_FRM_WIDTH number(4,0),
    IND_RECAP_PG char(1) NOT NULL,
    IND_CNFRM_PG char(1) NOT NULL,
    IND_DSPL_CNFRM_NUM char(1) NOT NULL,
    CNT_SUBM_MAX int,
    TXT_CHCE_ADD_MSG varchar2(255),
    TXT_CHCE_MOD_MSG varchar2(255),
    TXT_WEB_HDR varchar2(4000),
    TXT_WEB_FTR varchar2(4000),
    TXT_WAIT_LIST_MSG varchar2(255),
    FORMOBJECTHEIGHT int NOT NULL,
    FORMOBJECTWIDTH int NOT NULL
    ALTER TABLE web_frm ADD ( CONSTRAINT PK_web_frm PRIMARY KEY (ID_WEB_FRM));
    ALTER TABLE web_frm ADD ( CONSTRAINT UK_web_frm UNIQUE (ID_WEB_SIT,CDE_LVL_1_FUNC,CDE_LVL_2_FUNC,NUM_WEB_FUNC_PG,NUM_WEB_PG_ID)) ;
    Thanks,
    Matt

    I have verified the parameters and such, and if I run as a Statement instead of a PreparedStatement, the query works fine. After some more troubleshooting, I narrowed the problem down, but not sure of the fix.
    If I eliminate teh extra parameters and simplify things to:
    SELECT ID_WEB_FRM FROM WEB_FRM WHERE ID_WEB_SIT = 'test' AND CDE_LVL_2_FUNC = 'u2T' AND NUM_WEB_FUNC_PG = 1 AND NUM_WEB_PG_ID = 0
    The code works. But if I add the additional WHERE clause of CDE_LVL_1_FUNC = ' ' (has single space), it returns no data (record in the DB has single space in this new column. Query that does not work:
    SELECT ID_WEB_FRM FROM WEB_FRM WHERE ID_WEB_SIT = 'test' AND CDE_LVL_1_FUNC = ' ' AND CDE_LVL_2_FUNC = 'u2T' AND NUM_WEB_FUNC_PG = 1 AND NUM_WEB_PG_ID = 0
    It appears the JDBC Driver is trimming the parameter when it is a space when set through a PreparedStatement.setString(2," ")

  • X58 pro-e trying to understand a few things please help me out.

    first of all hi 
    im trying to overclock my cpu to a nice place and in my mind its 4ghz  and in my mind its like use 22X200=4ghz=happy me
    now realty is when i do that and leave every thing on auto the MB puts too much volts on the V.core like 1.4+ and thats bad for me i do have a good cooler thermaltake frio  220w
    so i tried lowering Blck and stuff and i googled stuff and ended up with a good 21X175 with 0 on the V.core only to download a program named cpu-tweaker and nehalemcalc so bare with me the question is coming  so i setup the nehalemcalc to 225X21 qpi multi X18 Uncore multi X12 mem multi X6
    only to get a warning saying (instability may occur when QPI clock is greater than 4000MHz) and it got me wondering how much did i set my Multi`s so i went and checked but i did not find them in the cell menu so i opened the cop-twaeker   to look some stuff up  and i found
    21X175=good i put that there
    7x7x7x19=ram timing good too i put them my self
    Uncore X16= bad read under
    QPI X18= good after i read in 4.8 mode its set to X18
    RAM X3 = i guess its good i put it there too
    so i opened up the nehalemcalc 1.3 and used these numbers i found only to read some thing i did not find in cell menu mem multi witch was 6 as minimal
    number in the program so whats wrong here how come its giving me deferent numbers in the 2 programs and in cpu-z its showing FSB:Dram  2:6
    so where do i find adjust that ratio found in the cpu-z or the uncore multi for that matter !
    sorry i know its crazy but i really think  thats why i cant go pass the 4Ghz dream BTW i need to add Volts to the cpu as from 3.8  :( so it just might help
    out to know every thing to know about this motherboard
    my system specc`s are :
    core i7 920 d0
    X58 pro-e
    gtx260
    1TBx2 wd
    2x3 transcend jetram 1333
    thremaltake frio
    custom cooler for the IOH(cheap fan on the heatsink :P )

    Quote from: HU16E on 10-March-11, 08:41:31
    Everything should be fine as long as the recommended max. voltages aren't exceeded. Lots of trial & error involved, within safe limits of course.
    Added:I hope that 4.00 is the CPU speed & not the volts applied.
      stop loling @ me  come please i have a dead time on the rams if i dont like them i can return them 
    so it is the cpu speed the 4k yes so pleaseeeeeee tell me what kind of volts i should use with this setup lets say 3.8ghz and i know every cpu has its own vlots and all but i need like a refrance that i can work on lets say 3.8ghz needs 1.2v on the v,core 1.5v on ram 1.2 on qpi and so on .. so for 4ghz i need 1.3v,ram1.5,qpi...... some thing easy like that    and if it works i will  for you sir 

  • Slow SDO_RELATE when using group by.. please help!!

    Hi All,
    I'm fairly new to the spatial side of Oracle so please go easy on me.
    I have 2 tables (a and b), each containing line geometries. There is a one(a) to many(b) relationship between the two.
    I want to write a query which selects information from table b where the geometries in table b are completely covered by the geometries in table a, but the returned info is grouped by the rows in table a.
    Here's my code:
    select
    a.route_id,
    a.step,
    max(b.gritter_status),
    sum(b.salt_usage)
    from
    tbl_routedirs a, tbl_routelinks b
    where
    a.route_id = b.route_id and
    sdo_covers(a.geoloc, b.geoloc) = 'TRUE'
    group by
    a.route_id, a.step
    The query is extremely slow, taking up to 15 minutes to execute...The thing which is confusing me is without the group by clause the statement executes in under half a second.
    I have checked all indexes etc - all are valid. I've tried re-ordering the tables in the from clause as ive read this can be a factor, and granted i have little knowledge as to what to swap where but this appeared to have no impact on the speed.
    Any suggestions would be warmly welcomed... Thankyou.
    Edited by: user8760008 on 27-Aug-2009 07:08 - i copied the script and didnt add the aggregate functions on the selected columns...

    If that's the case, please try:
    select /*+ leading(a) use_nl(a b) index(b your_index_on_b.geoloc) */
    a.route_id,
    a.step,
    max(b.gritter_status),
    sum(b.salt_usage)
    from
    tbl_routedirs a, tbl_routelinks b
    where
    a.route_id = b.route_id and
    sdo_coveredby(b.geoloc, a.geoloc) = 'TRUE'
    group by
    a.route_id, a.step
    i.e. to have a nested loops join, and take a small table as outer.
    Note you may not need all three hints to get the nested loops join plan.

Maybe you are looking for

  • Haven't been able to receive or send text for a few days

    I've been in Canada since mid-May and just recently my phone has stopped receiving or sending out texts or calls. I will be back in a few days so I'm hoping its just a network problem up here. My phone used to say that it was on an Extended Network,

  • SATA 3GB/s Setting In WINXP Pro SP2 For K8N SLI/FI

    I have been trying to resolve this issue for a while with no sucess. I have contacted numerous sources and no one can solve this so I hope you people can. I have two SATA II 3GB/s HDDs installed on a MSI K8N SLI/FI w/ver. 1.8 BIOS. I cannot get these

  • Cost Report for service order

    Hi All, How to take out a cost report for a service order? like my requirement is how the cost of a Service Order  is hitting to which cost center and profit center and company code and posting of the concerned GL along with the activity type.for exa

  • Low Bandwith, WLC 5508 and LAP 1142N, please help !

    Hello Everyone For the Environment: - I have a WLC 5508 With a license up to 100 AP, at the Point there are 39 AP connected. - The WLC is connected with 8x 1Gbit/s, as a Trunk ==> 2 Members of 3750 Switches Stack ( 4gig and 4 gig) - The AP are connec

  • Cluster_database_instances with dbca ?

    Hello, I've managed to install successfully the additional nodes into cluster (see 10gr1 - RHEL 4 - Is it possible to add nodes to a standby RAC before ? but I have a final question: The cluster I'm in charge of is configured with cluster_database_in