Column in select change changes results

I am seeing quite strange behavior in one of my databases.
I am running a fairly large query. when i put one particular column in the select it returns no data. select * returns the correct rows (with this column populated) as does selecting other fields. if i specify this field directly with any other fields then no rows return. is this possible seeing as the field in question is not in the where or join clauses)
I have imported the stats and data into other database and all works correctly, I have compared the databases, no differences except the problem machine is 64bit.
any ideas?
Edited by: the_gusman on Sep 14, 2009 3:54 PM

if there were, removing columns from the select list or selecting * would return no rows also, but this is not the case.It's not about the SELECT-list imo, but your WHERE-clause, your predicates.
It would be interesting to see your output anyway.
Please post it between the tags...
See :http://forums.oracle.com/forums/help.jspa regarding using tags, scroll down a bit.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • Error inserting a row into a table with identity column using cfgrid on change

    I got an error on trying to insert a row into a table with identity column using cfgrid on change see below
    also i would like to use cfstoreproc instead of cfquery but which argument i need to pass and how to use it usually i use stored procedure
    update table (xxx,xxx,xxx)
    values (uu,uuu,uu)
         My component
    <!--- Edit a Media Type  --->
        <cffunction name="cfn_MediaType_Update" access="remote">
            <cfargument name="gridaction" type="string" required="yes">
            <cfargument name="gridrow" type="struct" required="yes">
            <cfargument name="gridchanged" type="struct" required="yes">
            <!--- Local variables --->
            <cfset var colname="">
            <cfset var value="">
            <!--- Process gridaction --->
            <cfswitch expression="#ARGUMENTS.gridaction#">
                <!--- Process updates --->
                <cfcase value="U">
                    <!--- Get column name and value --->
                    <cfset colname=StructKeyList(ARGUMENTS.gridchanged)>
                    <cfset value=ARGUMENTS.gridchanged[colname]>
                    <!--- Perform actual update --->
                    <cfquery datasource="#application.dsn#">
                    UPDATE SP.MediaType
                    SET #colname# = '#value#'
                    WHERE MediaTypeID = #ARGUMENTS.gridrow.MediaTypeID#
                    </cfquery>
                </cfcase>
                <!--- Process deletes --->
                <cfcase value="D">
                    <!--- Perform actual delete --->
                    <cfquery datasource="#application.dsn#">
                    update SP.MediaType
                    set Deleted=1
                    WHERE MediaTypeID = #ARGUMENTS.gridrow.MediaTypeID#
                    </cfquery>
                </cfcase>
                <cfcase value="I">
                    <!--- Get column name and value --->
                    <cfset colname=StructKeyList(ARGUMENTS.gridchanged)>
                    <cfset value=ARGUMENTS.gridchanged[colname]>
                    <!--- Perform actual update --->
                   <cfquery datasource="#application.dsn#">
                    insert into  SP.MediaType (#colname#)
                    Values ('#value#')              
                    </cfquery>
                </cfcase>
            </cfswitch>
        </cffunction>
    my table
    mediatype:
    mediatypeid primary key,identity
    mediatypename
    my code is
    <cfform method="post" name="GridExampleForm">
            <cfgrid format="html" name="grid_Tables2" pagesize="3"  selectmode="edit" width="800px" 
            delete="yes"
            insert="yes"
                  bind="cfc:sp3.testing.MediaType.cfn_MediaType_All
                                                                ({cfgridpage},{cfgridpagesize},{cfgridsortcolumn},{cfgridsortdirection})"
                  onchange="cfc:sp3.testing.MediaType.cfn_MediaType_Update({cfgridaction},
                                                {cfgridrow},
                                                {cfgridchanged})">
                <cfgridcolumn name="MediaTypeID" header="ID"  display="no"/>
                <cfgridcolumn name="MediaTypeName" header="Media Type" />
            </cfgrid>
    </cfform>
    on insert I get the following error message ajax logging error message
    http: Error invoking xxxxxxx/MediaType.cfc : Element '' is undefined in a CFML structure referenced as part of an expression.
    {"gridaction":"I","gridrow":{"MEDIATYPEID":"","MEDIATYPENAME":"uuuuuu","CFGRIDROWINDEX":4} ,"gridchanged":{}}
    Thanks

    Is this with the Travel database or another database?
    If it's another database then make sure your columns
    allow nulls. To check this in the Server Navigator, expand
    your DataSource down to the column.
    Select the column and view the Is Nullable property
    in the Property Sheet
    If still no luck, check out a tutorial, like Performing Inserts, ...
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/index.jsp
    John

  • The salesperson for my iphone 4 said on Christmas morning we could go to our online account, select my number, select to change my SIM card, and enter the ICCID number so that I'd be able to use my iphone 4 today. I have not seen any such steps. Help?

    The salesperson for my iphone 4 said on Christmas morning we could go to our online account, select my number, select to change my SIM card, and enter the ICCID number so that I'd be able to use my iphone 4 today instead of my old phone (not an iphone). I have not seen any such steps. Help?

    I suspect the salesperson that told you that meant your online account with your carrier...have you tried logging into your carrier account online? To do this will require the sim number on your sim card, as well as the phone's IMEI number...you get the sim number off the sim card & the IMEI number, for the phone, is printed on the box.

  • Set Radio Group Default Value Based on a Select List Change Event

    Apex 4.2
    I have a radio group that is source is below. It returns 3 radio group item All,Miv,Courier
    SELECT type d, code r FROM vw_lov_depot
      WHERE svc_name = :P320_DEPOT
      ORDER BY 1
    The radio group is only populated when :P320_DEPOT gets a value, this is a select list.
    I am trying to set the radio group to  default to this value Miv it would use the statement
    SELECT type d, code r FROM vw_lov_depot
      WHERE svc_name = :P320_DEPOT
      and type ='Miv'
      ORDER BY 1
    I have tried creating a dynamic action on Select list change to populate the default value of the radio group...no joy I also tried a computation. how can I set this default value on when list changed.
    Thanks
    I have got the default Radio Group Selection working by doing a computation before region on the radio group and calling its select statement and setting the value. But the problem is now I cannot change the radtio group as I do it fire the before region trigger and sets it back to the default value....any help?

    Hi,
    Could you please create example to apex.oracle.com?
    Regards,
    Jari

  • How to resolve unresolved column error when we change column name in BMM Layer and removed alias in presentation layer

    how to resolve unresolved column error when we change column name in BMM Layer and removed alias in presentation layer

    Looks like the presentation column got Alias before your BMM changes, so in your case renaming logical column and deleting alias is not good to go.
    Keep Alias

  • Problem in JComboBox selected Index change

    hi all
    Can anyone send me the code for Loading values to JComboBox & then i want to Display Particular value for that Loaded value in JTextField.
    Ex:
    I loaded category cade for JComboBox & when JComboBox selected index change the particular category name should appear in JTextBox
    Thankz

    Hi,
    I am sending a sample program.
    Try this, if u had any problem just mail me at [email protected]
    import javax.swing.*;
    import java.util.*;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    public class SwingDemo extends JFrame implements ItemListener
         JComboBox combo;
         JTextField text;
         Properties props;
         public SwingDemo() throws Exception
              super();
              combo=new JComboBox();
              text=new JTextField();
              addItems("combodata.dat");
              setLayout(new GridLayout(2,1));
              add(combo);
              add(text);
              combo.addItemListener(this);
              setTitle("JComboBox - Demo");
              setSize(400,400);
              setVisible(true);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              pack();
         public static void main(String[] args) throws Exception
              new SwingDemo();
         public void addItems(String str) throws Exception
              FileInputStream fis=new FileInputStream(str);
              props=new Properties();
              props.load(fis);
              Enumeration e=props.propertyNames();
              while(e.hasMoreElements())
                   combo.addItem((String)e.nextElement());
         public void itemStateChanged(ItemEvent ie)
              //System.out.println(ie.getSource());
              //System.out.println((ie.getSource()==combo));
              if(ie.getSource()==combo)
                   System.out.println(combo.getSelectedItem());
                   System.out.println(props.getProperty(combo.getSelectedItem().toString()));
                   text.setText(props.getProperty(combo.getSelectedItem().toString()));
                   pack();
    For the above program I took data from a file instead of the database
    You have to create that file to execute the above program with the name combodata.dat and the values as follwos
    1=BSc
    2=BCA
    3=BA/BCom
    4=MSc(IS)
    5=MSc(Cs)
    6=MCA
    7=BE/BTech
    8=MBA
    Bye...
    Thanks & Regards,
    Santhosh Reddy Mandadi

  • What to do if my master page is too small for custom master page column, I need to change the papers

    What to do if my master page is too small for custom master page column, I need to change the papersize from A4 to US letter size *

    My 2nd gen works fine with WPA2 and AES encryption.
    You may need to go back and start over.  Reset the router back to factory defaults, log on as the admin, set up security, DHCP, and make sure the IP address pool has enough IP addresses to lease to ALL of the computers/devices that will connect to that the router.

  • JFileChooser selected file changes when folder chages

    Problem with JFileChooser,
    The selected filename change when i change the directories, note that standard windows dialog doesnt behave like this .
    To reproduce: choose "save to file" in process dialog, enter the file name and then change the directory. The file name disappers from the corresponding box. The dialog must keep the entered file name while changing the folder path
    is this a bug ?,
    renjith

    Hi,
    Yes it is!
    http://developer.java.sun.com/developer/bugParade/bugs/4357012.html
    Regards,
    Manfred.

  • How can I selectively preview changes in Camera Raw CC

    When working in the Basic Panel in ACR, I would like to selectively review changes of only one slider at a time.  For instance, I have have adjusted exposure and now have also adjusted blacks, how can I preview the change in Blacks while the adjusted Exposure is still in effect? If I toggle the Preview button on and off, I see all the changes cumulatively.  I have tried using the command key, shift, key and option key however, that doesn't seem to work.
    Thanks.

    Sorry, there is another way, which I'd forgotten about, because I almost never use it.
    Say you make these edits, and only these edits: Exposure -1.0 stop, Contrast +20 and Shadows +100, in that order (the values don't matter, they're just random examples).
    Now, to cycle back through the edits in reverse order to that which you made them, use Ctrl + Alt/Option + Z.
    Pressing once gets you back to the image as edited only by Exp and Contrast. Twice gets to Exp only.
    Three times eliminates Exp and you're back to where you first opened the image in ACR.
    To re-instate the edits in the original order, press Ctrl + Shift + Z.
    But this procedure can get messy and confusing in 3 circumstances that I can think of, just off the top of my head.
    First, if you move a slider whilst experimenting with your edits (say, for example, Clarity +20) but then reset it to zero because it does not work as expected.
    Now, when you cycle backwards or forward, your abandoned Clarity edit will be shown.
    Secondly, if you make more than 3 edits, it can become difficult to remember in what order you initially made them and you can get lost when cycling back and forth.
    Thirdly, if you have made any presets and these are applied automatically when first opening the image in ACR, the cycling can once again become more difficult to keep track of.
    Whilst the use of Snapshots in the manner I first suggested is more cumbersome, it guarantees that you can keep track of your edits and compare their before and after effect.
    Message was edited by: Andrew_Hart

  • What is the possibility of changing the result of asoftware wth human mind?

    I'm wonder that is there any research done over the connection between Subnatural gifted people and the computers?!
    For example can someone who has such gifts change the result of the software direction just with his gifts?
    Some of them who such gifts have, they may get their wishes in real world physically just with desiring those things.
    just wondering... maybe someone heard such researches...
    greetings,

    Hi,
    I just add another method to diagnose your problem. You can try to use xbootmgr to collect a boot trace of your system.
    Refer to the link below for more details about the trace steps:
    http://blogs.technet.com/b/jeff_stokes/archive/2012/09/17/how-to-collect-a-good-boot-trace-on-windows-7.aspx
    Roger Lu
    TechNet Community Support

  • How to select and change special characters

    Hi all,
    In my document wherever a, e, i, o, u comes in RED color that i want to add one black dot below that characters.
    Now what we do is place one dot then use baseline shift after that use kerning upto 400 like that only.
    Job font is Palatino Lt Std.
    Its time consuming a lot!!!
    Write now i am using GREP options only.
    or
    Myself creating script for wherever RED color comes it create a character style  after that i did it  manually without seeing the  Manuscript.
    My script follows:
    Any script is availble which i can select and change it.

    Can anyone look into my previous thread?
    Please find my attachment first, after that definitely you got an idea.
    Awating for your reply....
    by
    Learner

  • When I select Brush, changing the exposure changes the whole image exposure

    When I select Brush, changing the exposure supposed to change only the selected part exposure.
    In my LR-5 it changes the whole image exposure.  What am I doing wrong?

    More than likely you have all the adjustment tool's sliders hidden, and you've thus moved the exposure slider from the Basic panel just below, which of course is a global adjustment. Check the dark arrow that I've highlighted in this screenshot, it's likely pointed left (everything hidden), so click on it and it will point down and all the adjustment brush sliders will be revealed.

  • Modify the "Change Answers Results" form

    I have a requirement where I need to modify the "Change Answers Results" to show additional information. But I dont seem to be able to locate the out of the box form to copy and modify with my fields.
    I am talking about the form that opens up once a user changes his answers from the end user menu. The url is :
    http://localhost:8080/idm/user/changeAnswersResults.jsp
    Thanks,
    Anoop

    Can anyone please help me in this...
    All I need to do is to remove the words "on Lighthouse" on this page..
    It seems it is not a form but a jsp... but where it gets the data / logic from, I couldnt understand.
    Thanks,
    Anoop

  • SELECT returns no result when there is a default namespace definition inXML

    Hi,
    I have a problem that my select doesn't return any result when there is a default namespace definition in my XML file.
    I'm using oracle 11g release 1
    XML file stored as a binary XML:
    <SIMS xmlns="http://sims.ics.muni.cz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://sims.ics.muni.cz jh_sims_matricni_vystupy_or.xsd">
    <Vystup Datum="2006-07-18" Typ="2" Nazev="Poslední etapy" PocetStudentu="1" PocetStudii="2">
    <Student RodneCislo="8001011001">
    <Jmeno>Petr</Jmeno>
    </Student>
    </Vystup>
    </SIMS>
    This select return no result:
    SELECT student.jmeno FROM jh_sims_bin_no_schema s, XMLTable('/SIMS/Vystup/Student' PASSING s.OBJECT_VALUE COLUMNS jmeno VARCHAR2(10) PATH 'Jmeno') student
    When I remove default namespace definition (xmlns="http://sims.ics.muni.cz") everything works fine and the same SELECT returns "Petr". Also when the file is stored in object relational storage everything works fine!
    <SIMS xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://sims.ics.muni.cz jh_sims_matricni_vystupy_or.xsd">
    <Vystup Datum="2006-07-18" Typ="2" Nazev="Poslední etapy" PocetStudentu="1" PocetStudii="2">
    <Student RodneCislo="8001011001">
    <Jmeno>Petr</Jmeno>
    </Student>
    </Vystup>
    </SIMS>
    Thanks for any help!
    Jan Hruby

    Hi Jan,
    You need to specify the default namespace of the document in the XMLNamespaces clause :
    SELECT student.jmeno
    FROM jh_sims_bin_no_schema s,
         XMLTable(
          XMLNamespaces(default 'http://sims.ics.muni.cz'),
          '/SIMS/Vystup/Student'
          PASSING s.OBJECT_VALUE
          COLUMNS jmeno VARCHAR2(10) PATH 'Jmeno'
         ) student
    ;

  • How to Read the one Source Column data and Display the Results

    Hi All,
         I have one PR_ProjectType Column in my Mastertable,Based on that Column we need to reed the column data and Display the Results
    Ex:
    Pr_ProjectType
    AD,AM
    AD
    AM
    AD,AM,TS,CS.OT,TS
    AD,AM          
    like that data will come now we need 1. Ad,AM then same we need 2. AD also same we need 3. AM also we need
    4.AD,AM,TS,CS.OT,TS in this string we need AD,AM  only.
    this logic we need we have thousand of data in the table.Please help this is urgent issue
    vasu

    Hi Vasu,
    Based on your description, you want to eliminate the substrings (eliminated by comma) that are not AD or AM in each value of the column. Personally, I don’t think this can be done by just using an expression in the Derived Column. To achieve your goal, here
    are two approaches for your reference:
    Method 1: On the query level. Replace the target substrings with different integer characters, and create a function to eliminate non-numeric characters, then replace the integer characters with the corresponding substrings. The statements
    for the custom function is as follows:
    CREATE FUNCTION dbo.udf_GetNumeric
    (@strAlphaNumeric VARCHAR(256))
    RETURNS VARCHAR(256)
    AS
    BEGIN
    DECLARE @intAlpha INT
    SET @intAlpha = PATINDEX('%[^0-9]%', @strAlphaNumeric)
    BEGIN
    WHILE @intAlpha > 0
    BEGIN
    SET @strAlphaNumeric = STUFF(@strAlphaNumeric, @intAlpha, 1, '' )
    SET @intAlpha = PATINDEX('%[^0-9]%', @strAlphaNumeric )
    END
    END
    RETURN ISNULL(@strAlphaNumeric,0)
    END
    GO
    The SQL commands used in the OLE DB Source is like:
    SELECT
    ID, REPLACE(REPLACE(REPLACE(REPLACE(dbo.udf_GetNumeric(REPLACE(REPLACE(REPLACE(REPLACE([ProjectType],'AD,',1),'AM,',2),'AD',3),'AM',4)),4,'AM'),3,'AD'),2,'AM,'),1,'AD,')
    FROM MyTable
    Method 2: Using a Script Component. Add a Derived Column Transform to replace the target substrings as method 1, use Regex in script to remove all non-numeric characters from the string, add another Derived Column to replace the integer
    characters to the corresponding substring. The script is as follows:
    using System.Text.RegularExpressions;
    Row.OutProjectType= Regex.Replace(Row.ProjectType, "[^.0-9]", "");
    References:
    http://blog.sqlauthority.com/2008/10/14/sql-server-get-numeric-value-from-alpha-numeric-string-udf-for-get-numeric-numbers-only/ 
    http://labs.kaliko.com/2009/09/c-remove-all-non-numeric-characters.html 
    Regards,
    Mike Yin
    TechNet Community Support

  • Hide column but still have the results displayed

    I am working in BEx query designer 2004s.  Is it possible to hide a column but still have the results displayed?  If I go to the properties of the column and check 'always hide' it hides the column but the results do not display either.
    Any help would be greatly appreciated.

    In the query designer, you select Hide option for the returns key figure from the context menu. Now your report will not show the returns key figure.
    But have the total returns key figure in the query and you will get to see the total returns as well.
    Hope it helps.
    regards.

Maybe you are looking for

  • TS3988 How can I Verify My iCloud Account when my Apple ID is no longer tied to a valid email address?

    The Apple ID I set up originally was (stupidly!) my email address for a company that no longer exists.  iCloud will only send a verification email to that email address, so I can't verify my account and access iCloud.  Is there a work-around for this

  • When will we see the Thunderbolt to FireWire adapter?

    The keynote mentions it but only the gigabit Ethernet adapter is available. It's mentioned on the ThunderBolt page http://www.apple.com/thunderbolt/

  • Some bugs using socks5 proxy mode

    Hi, i have FireFox v28. I was develop soks5 proxy and find some bugs on FF. I use options on FF soks5 proxy at 127.0.0.1:2002 and open site https://ssl.exelab.ru/f/ Here is an packets in bytes: [FF] 05-01-00 // FireFox say here that support one auth

  • Row number in the table.

    Hi: How can get the row number in its table? For example: I have table a: a1-a2 5---a 2---b 7---c 3---d I want for a1 value 7, I want to get 3 (the row number in the table). Regards Saad

  • Photoshop CS6. Will it run on my computer?

    Hi. I would like to buy Photoshop CS6. Will it run on my computer without any problems? I've got Windows 7 Professional 64bit Service Pack 1. Intel(R) Core (TM) i5-2410M CPU @ 2.30 GHz. 4GB RAM. Graphics - Radeon HD 6490M. (some time ago I bought Aut