WHERE clause doesn't work in certain column

Hi All,
I try to filter mysql database using WHERE clause...everything seem working until i found there are 3 column that i can't use for WHERE clause query. When i use that columns to filter, there's no data appear in the table but the other column is working. Attached is my VI and mysql database. I really don't know what cause it happen. Any help would be very appreciated
Thank you
Attachments:
filter.vi ‏17 KB
db.txt ‏3 KB

Have you tried the select from whatever SQL command interpreter that MySQL provides?
It needs to be in the form SELECT * FROM issue WHERE 'condition'. If you want to get all the rows where person 1 is Harry then you would write
SELECT * FROM issue WHERE person1 = 'Harry'
The way your VI is written you will get one of two commands.
SELECT * FROM issue WHERE 'All' or SELECT * FROM issue WHERE 'WIWI'
That may return all rows if a string resolves to true. I don't use MySQL so I wouldn't know.
Disregarding LabVIEW for a moment, what is the SQL command or commands that you want your VI to send to the ADO execute VI? That might help figure out what it is you want to do.
=====================
LabVIEW 2012

Similar Messages

  • The "Go back one page" button on the Navigation toolbar doesn't work on certain web pages.

    == Issue
    ==
    Firefox is having problems with certain web sites
    == Description
    ==
    The "Go back one page" button on the Navigation toolbar doesn't seem to work on certain pages. On clicking this button, the focus stays on the same page and does not move to the previous page. The previous page does not appear even in the right-click context menu of the Back button. However, I am able to go back one page using Internet Explorer.
    == URL of affected sites
    ==
    http://justdial.com/
    http://southernrailway.gov.in/sr/indexhome.jsp
    == Troubleshooting information
    ==
    Application Basics
    Name
    Firefox
    Version
    3.6.3
    Profile Directory
    Open Containing Folder
    Installed Plugins
    about:plugins
    Build Configuration
    about:buildconfig
    Extensions
    Name
    Version
    Enabled
    ID
    Kaspersky URL Advisor
    9.0.0.736
    true
    [email protected]
    Java Console
    6.0.14
    true
    Java Console
    6.0.17
    true
    Java Console
    6.0.20
    true
    McAfee SiteAdvisor
    3.1
    true
    Java Quick Starter
    1.0
    true
    [email protected]
    Download Accelerator Plus (DAP) extension
    9.4.0.5
    true
    Adblock Plus
    1.2
    true
    DownloadHelper
    4.7.3
    true
    FEBE
    6.3.3.2
    true
    {4BBDD651-70CF-4821-84F8-2B918CF89CA3}
    Flagfox
    4.0.6
    true
    {1018e4d6-728f-4b20-ad56-37578a4de76b}
    Lazarus: Form Recovery
    2.0.5
    true
    [email protected]
    WeatherBug
    2.0.0.4
    true
    {3EC9C995-8072-4fc0-953E-4F30620D17F3}
    WOT
    20100503
    true
    Modified Preferences
    Name
    Value
    accessibility.typeaheadfind.flashBar
    0
    browser.places.importBookmarksHTML
    false
    browser.places.smartBookmarksVersion
    2
    browser.startup.homepage
    browser.startup.homepage_override.mstone
    rv:1.9.2.3
    extensions.lastAppVersion
    3.6.3
    network.cookie.prefsMigrated
    true
    places.last_vacuum
    1276949273
    privacy.sanitize.migrateFx3Prefs
    true
    security.warn_viewing_mixed
    false
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
    == Plugins installed
    ==
    *-Office Plugin for Netscape Navigator
    *6.0.12.448
    *RealPlayer(tm) LiveConnect-Enabled Plug-In
    *RealJukebox Netscape Plugin
    *Winamp Application Detector
    *Default Plug-in
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.2"
    *NPRuntime Script Plug-in Library for Java(TM) Deploy
    *Provides additional functionality on Facebook. See our web site for details.
    *Shockwave Flash 10.0 r22
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    *Picasa plugin
    *Yahoo Application State Plugin version 1.0.0.7
    *3.0.40818.0
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers
    *Npdsplay dll
    *DRM Store Netscape Plugin
    *DRM Netscape Network Object

    Try to open the right-click context menu of the Back button and see if you can go back further.
    The current active entry in that list has a bullet in front of it.
    If you hover an entry in that session history list then it shows the direction by adding an arrow at the left.
    You can left click an item to open it in the current tab or middle-click or Ctrl left-click an entry in that list to open that link in new tab, just like you can with other links.

  • HELP: WHERE Clause based on value of the column

    I am selecting from a table as follows and want to have a where condition that is dependent of the value of the column, type of the current row.
    CREATE TABLE tbl (INT id, VARCHAR type, VARCHAR comment)
    I have 3 different values for the type column, EMPLOYEE, CUSTOMER, SUPPLIER. What I want is to have a where clause in my select that is based on the value of type.
    I tried the following but was not successful..
    SELECT * from tbl
    CASE
    WHEN type = 'EMPLOYEE' THEN
    WHERE comment LIKE '%employee%'
    WHEN type = 'CUSTOMER' THEN
    WHERE comment LIKE '%customer%'
    WHEN type = 'SUPPLIER' THEN
    WHERE comment LIKE '%supplier%'
    END
    I am not proficient with stored procedures so if you could please tell me how to do it with straight query, I would greatly appreciated it..
    Thank you,

    Or maybe this:
    SELECT *
      FROM tbl
    WHERE "COMMENT" LIKE
              CASE TYPE
                 WHEN 'EMPLOYEE'
                    THEN '%employee%'
                 WHEN 'CUSTOMER'
                    THEN '%customer%'
                 WHEN 'SUPPLIER'
                    THEN '%supplier%'
              END

  • Firefox doesn't work on certain websites

    I am continually running into sites that don't work well with Firefox. I tend to think it's because of the rapid-fire changes FF makes to itself, but nevertheless, it's annoying. The sites all tell me to "use Chrome" as a solution, and most times, that works. The thing is, I don't like Chrome. I have FF set up the way I want it. It is my browser of choice, despite the fact that it is losing users to Chrome every day. I don't think I will ever switch, but I really need it to work consistently. I'm having to use the portable version now because the desktop version doesn't work for me anymore. After the latest update, Flash sites won't load half the time. They too work in Chrome.
    This time it is redgage.com. Most of the features only work if I use the right click and open it in a new tab. I've tried safe mode.
    What is the solution to this? I don't have time to keep making adjustments to the program and coming in here to get no answers, and everyone saying they have no problems. SERIOUSLY? That's not what all my friends who switched to Chrome are saying. I feel like I'm losing my right arm.

    Yes, every link on RedGage is broken. To open one in the same tab, you have to drag and drop it on the address bar.
    But I think it's their fault. In the Browser Console:
    13:46:52.262 ReferenceError: event is not defined MainViewModel.js
    Looks like a rookie mistake in this script:
    self.trigger = function (modelView, evt) {
    var target;
    util.hidePopup();
    '''if (event.ctrlKey || event.metaKey || event.which == 2) {'''
    return true;
    if (evt.preventDefault) {
    evt.preventDefault();
    target = $(evt.target);
    } else
    target = $(evt);
    var url = target && $(target).closest('a').attr('href') || $('.filter li.active a').attr('href');
    if (url)
    self.do_load_url(url);
    return false;
    In the bolded line, "event" is a typo and should be "evt". Maybe if you point them to this thread they'll fix it. Even if other browsers work this way.

  • Macbook suddenly doesn't work on certain routers

    I've had my macbook for about 2 years, and suddenly it doesn't work on my router at my apartment. The macbook says it's connected to the router, but the homepage never loads. This also happens at my college (i doubt there's a problem with BOTH networks). The thing is, my macbook will connect and work at the local coffee shop just fine.
    It's also not a problem with Firefox alone, so I figured something is wrong with my macbook. I tried resetting the PRAM and some other "quick fixes" after multiple google searches (i could spend days researching little fixes).
    I haven't found anyone with quite the same problem as me. I was wondering if someone had a similar problem and fix, or if I should call up support.
    Thanks for any help in advance!
    Macbook Pro 15'
    Mac OSX 10.5.8
    2.8 GHz Intel

    have you tried updating the firmware on your router? How old is the router? Make? Model?

  • I just got an iPhone 4s and facetime doesn't work for certain contacts?  why?

    I know that facetime only works for those contacts that have an iPhone, iPad, iPod, etc....however it doesn't work for some of my contacts that do have those devices....why?
    Many thanks to anyone that can help!
    Heather
    Pasadena, NL, Canada

    using facetime http://support.apple.com/kb/ht4319
    troubleshooting facetime http://support.apple.com/kb/TS3367
    What happens when you try to facetime those contacts?
    Are those contacts on wifi when you try to facetime them.

  • Ipod touch 4th generation, screen doesn't work in certain apps.

    Hi i have a Ipod touch 4th generation. I have somewhat of a weird problem, at least i think it is. My ipod touch screen works really well just opening apps on the springboard any where on the screen. Also in certain apps I have no problems, but in others it seems that it will not let me click on buttons toward the bottom. I found this odd because in other apps i have no problem and everything seems responsive.  I have done some of my own troubleshooting and apps like google maps and the email app work fine. But other apps such as fatbooth, facebook and instagram I cannot touch icons anywhere near the bottom they just dont registar. Any help?

    Sounds like a hardware issue. Your screen digitizer may need to be replaced.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • Select with timestamp in the where-clause don't work after importing data

    Hello,
    I have to databases (I call them db1 and db2, they have the same datastructure) and exported some data from the table "rfm_meas"from db1. Later on I imported that dataset into the "rfm_meas"-table of db2. The table contains a col with the datatype "timestamp(6)" and checking the success of the import looks fine:
    (executed on db2)
    SELECT
    id,acqtime
    from
    rfm_meas
    WHERE
    box_id=1
    AND id>145029878
    Returns two rows:
    ID ACQTIME
    145029883 01.06.10 10:30:00,000000000
    145029884 01.06.10 10:50:00,000000000
    It seems there are valid timestamps as I expected.
    But if I now want to select all rows from box_id=1 which are newer than e.g. 25-may-2010 I would try this:
    SELECT
    id,acqtime
    from
    rfm_meas
    WHERE
    box_id=1
    AND acqtime>=to_timestamp('25-05-2010 17:10:00,000','DD-MM-YYYY HH24:MI:SS,FF3')
    And it returns ... nothing!? If I execute the same query on db1 it works correctly.
    I guess db1 and db2 has different codepages!?
    If I insert some rows from a PL/SQL script in db2 into the "rfm_meas"-table, querys like the one above works fine. Therefore i guess, during importing the data there must be something wrong, so I cann see the timestamp, but can't use it.
    How can i fix that? Any ideas?
    If someone need more details I will provide it.
    Regards
    Steffen

    check this link out
    Importing timestamp columns appears to use to_date instead of to_timestamp

  • Decode in 'IN' clause doesn't work - any workaround?

    Hi All,
    I thought this was working, but as I tested further I found it's not returning the right results. I have a query that is trying to take the first 4 letters of a string, and based on that value I want to limit the values in the 'IN ' clause. (Does that make sense?)
    Something like this:
    select * from table_a where NAME in
      select decode(substr(:P_var,1,4),'ABCD','(''ALF'',''BOB'',''COLE'')','EFGH','(''EVE'',''FRED'',''GORD'')') from dual
    )But it seems that no matter what I do I can't get the right results.
    This does return ('EVE','FRED','GORD') as the result of the nested select (P_var = 'EFGH'), but I get 'No Data Found', even though I know those names are in the table...
    Not sure what would be a better way - AKA one that works, so any help is greatly appreciated...
    Corey

    Assuming you have collection type handy a couple of approaches spring to mind (note that MEMBER OF syntax in second example is 10g specific)...
    Oracle Database 10g Release 10.2.0.2.0 - Production
    SQL> CREATE TABLE table_a (name VARCHAR2 (30));
    Table created.
    SQL> CREATE OR REPLACE TYPE varchar2_table
      2     AS TABLE OF VARCHAR2 (4000);
      3  /
    Type created.
    SQL> INSERT INTO table_a
      2     SELECT *
      3     FROM   TABLE (varchar2_table (
      4               'ALF', 'BOB', 'COLE',
      5               'EVE', 'FRED', 'GORD',
      6               'TOM', 'DICK', 'HARRY'));
    9 rows created.
    SQL> COMMIT;
    Commit complete.
    SQL> VARIABLE p_var VARCHAR2 (30);
    SQL> EXEC :p_var := 'ABCD';
    PL/SQL procedure successfully completed.
    SQL> SELECT a.*
      2  FROM   table_a a
      3  WHERe  a.name MEMBER OF (
      4            DECODE (SUBSTR (:p_var, 1, 4),
      5                'ABCD', VARCHAR2_TABLE ('ALF', 'BOB', 'COLE'),
      6                'EFGH', VARCHAR2_TABLE ('EVE', 'FRED', 'GORD')));
    NAME
    ALF
    BOB
    COLE
    SQL> EXEC :p_var := 'EFGH';
    PL/SQL procedure successfully completed.
    SQL> SELECT a.*
      2  FROM   table_a a,
      3         TABLE (DECODE (SUBSTR (:p_var, 1, 4),
      4             'ABCD', VARCHAR2_TABLE ('ALF', 'BOB', 'COLE'),
      5             'EFGH', VARCHAR2_TABLE ('EVE', 'FRED', 'GORD'))) t
      6  WHERE  a.name = t.column_value;     
    NAME
    EVE
    FRED
    GORD
    SQL>

  • Video doesn't work on certain sites like CNN, Crackle, ESPN, CBS, and others. It still works on YT.

    On CNN there's just a white space where the headline video normally is, and there's just a black space in the videos section. In Crackle there's just a black space when I click to watch a video. On CBS the little eye logo keeps processing over white space and doesn't load. One curious thing I noted is that the login and help buttons don't respond on CNN, even though I can navigate within the site

    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Otherwise, you can reinstall Mozilla Firefox here: http://www.mozilla.org/en-US/firefox/all/

  • After 10.4.6 upgrade, sound doesn't work with certain apps.

    Hi,
    I upgraded recently to 10.4.6 and I've noted that there's no sound at all in certain applications. At the beginning, some games didn't work: Age of Empires II, Age of Mythology and Doom (curiously, I can hear music but no sounds in all of them). But later on I saw that the problem affects Virtual PC as well (approximate translation from original Spanish message): "Virtual PC can not reproduce sounds - Virtual PC couldn't start Macintosh audio system. This problem may be solved with a more recent version of Mac OS".
    In addition, I neither hear sound in streaming services like YouTube.com.
    Rest of the sound (system sounds, music, movies and so on) work perfectly.
    Any idea? Thanks a lot in advance.
    Regards.

    alfonsator,
    Welcome to Apple Discussions.
    No sound from some applications, but system alert sounds play (Mac OS X 10.3, 10.4) may provide an answer for your question.
    ;~)

  • Nested Composite Component Doesn't work for table column

    I have reported this issue as defect 1541 but I'm hoping someone my have a suggestion on a work around for this. Here is the issue
    I am attempting to use composites to represent a table column. I have tried this with both IceFaces and the standard implementation. I have a custom component that is of type UIColumn that is being inserted into another composite that houses a table. The table renders and the column renders. However, the outputText that should represent the row data does not render. Interestingly this will render using composites when I don't have the column rendering as a composite (IE the table is contained in the composite and the row level output is contained in the top level page.). That is not my requirement though. This seems to be a tough cookie to crack. I have the source now and am starting to acquaint myself with it in an attempt to figure out what is going on. Any brilliant ideas out there?
    Code is below.
    tableColumn.xhtml
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:composite="http://java.sun.com/jsf/composite">
    <h:head>
    </h:head>
    <h:body>
    <composite:interface componentType="MyColumn">
    </composite:interface>
    <composite:implementation>
    <ice:column headerText="Make" id="column3">
    <composite:insertChildren />
    </ice:column>
    </composite:implementation>
    </h:body>
    </html>
    table.xhtml
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:composite="http://java.sun.com/jsf/composite">
    <h:head>
    <title></title>
    </h:head>
    <h:body>
    <composite:interface>
    </composite:interface>
    <composite:implementation>
    <ice:dataTable augmentTitle="false"
    rows="10"
    value="#{SessionBean1.carDataProvider.tableDisplayList}"
    var="item" >
    <composite:insertChildren />
    </ice:dataTable>
    </composite:implementation>
    </h:body>
    </html>
    Example Page
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:temp="http://java.sun.com/jsf/composite/tempcomp"
    <h:head id="outputHead1">
    </h:head>
    <h:body>
    <ice:form id="form1">
    <temp:table>
    <temp:tableColumn>
    <ice:outputText id="outputText3" value="#{item.make}"/>
    </temp:tableColumn>
    </temp:table>
    </ice:form>
    </h:body>
    </html>
    The the new UIMyColumn class
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package icefacestestapp2;
    import com.icesoft.faces.component.ext.UIColumn;
    import javax.faces.component.FacesComponent;
    @FacesComponent(value = "MyColumn")
    public class MyColumn extends UIColumn {
    @Override
    public String getFamily() {
    return "custom";
    Interestingly the row text will not render even if I add it directly to the new
    composite column class as seen below.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:ice="http://www.icesoft.com/icefaces/component"
    xmlns:composite="http://java.sun.com/jsf/composite">
    <h:head>
    </h:head>
    <h:body>
    <composite:interface componentType="MyColumn">
    </composite:interface>
    <composite:implementation>
    <ice:column headerText="Make" id="column3">
    <ice:outputText id="outputText3" value="#{item.make}"/>
    </ice:column>
    </composite:implementation>
    </h:body>
    </html>

    Hi,
    I recall an issue in 10.1.3.2 with inner frames that had the wrong JavaScript reference to the DOM. So I assume this to be the same in your case. So you can give it a try with JDeveloper 10.1.3.3 and see if this fixes the problem
    Frank

  • Order by clause doesn't work properly

    Hello,
    I have developed a purchasing report and added it to the request group.The Order By clause (to_number(PO_HEADERS_ALL.SEGMENT1)) in my query gives the required ordering when the report runs in Reports Builder, and it doesn't when requested from the Purchasing Super user.
    Please note that the only difference between Reports Builder and Oracle Apps Output is in the order by clause output.
    Can you please help me?

    hello,
    Sorry if my wording wasn't clear enough.
    the query is like:
    select segment1,otherfields
    from po_headers_all
    order by to_number(segment1)
    Please note that "segment1" is a varchar2 field.
    Also, i'm using "segment1" as a group by field in the report builder wizard.
    The above query doesn't give the required ordering in report builder while it does from TOad and i don't know why?
    Can you help me please..
    Message was edited by:
    AIMAM
    Message was edited by:
    AIMAM

  • Reply doesn't work on certain msgs

    Very strange - I have been using Mail since it was released with very few problems, and just this week the Reply and Reply All buttons (as well as the menu items) won't work on some messages and will for others. No way to Reply - the button or menu darkens for a second but no message is created. No pattern except that it is consistent - I can't go back to a non-working message later and have it work.
    Started around the time I installed iTunes 7, Security and QT update, although it occurs with some older mails as well. I ran Disk Utility and DiskWarrior, cleaned caches with MainMenu, had Mail rebuild mailboxes, even reinstalled Mail 2.0. Same issue on same mails.
    Thanks, Jim
    Mail 2.1, OS 10.4.7.
    PB G4 17 1.33 Mac OS X (10.4.7)

    It could be that the latest updates weren't installed properly. I suggest reinstalling them. You should also reinstall the Combo Update for the type of computer and the version of Mac OS X you're using:
    Mac OS X 10.4.7 Combo Update for PPC
    Mac OS X 10.4.7 Combo Update for Intel
    Take a look at the following articles for guidelines on how to properly install system updates:
    Troubleshooting installation and software updates
    Installing software updates
    Basically, you should verify/repair the startup disk before installing the update, and no applications should be running while installing it.
    If the problem persists, post back with your observations after doing the above. Reinstalling the system shouldn't be necessary, and almost certainly useless in your case.

  • FF7 Back button doesn't work in certain websites

    On some websites, the back button (clicking the back arrow or using keyboard shortcut) doesnt work. I looks like it wants to, but stays on the same page, no matter how many times I click it.
    And it works fine on a lot of other sites.
    FF 7.0.1 as default browser, Vista Business SP2.
    It's consistent on seacoastonline.com. I've tried disabling all plugins and extensions, running in safe mode, renaming places.sqlite file.

    Any entries in the session history of that tab?
    Use one of these methods to open the tab history list:
    * Right click on the Back or Forward button
    * Hold down the left mouse button on the enabled Back or Forward button until the list opens

Maybe you are looking for