SQL query works for Access but not mySQL

*I'm using the Database Connectivity VIs* Can anyone give me a clue as to why the following query works with an MS Access File DSN but not a mySQL File DSN:
SELECT * FROM (SELECT * FROM WP100598 WHERE SerialNum LIKE '311022-05%' OR SerialNum LIKE '311022-07%') WHERE UTCTime > 1090882800 AND UTCTime < 1092870000 ORDER BY SerialNum desc
Thank you, your help is much appreciated

Hi,
I don't think MySQL supports nested queries.
Regards,
Wiebe.
"optobionics" wrote in message
news:[email protected]..
> *I'm using the Database Connectivity VIs* Can anyone give me a clue
> as to why the following query works with an MS Access File DSN but not
> a mySQL File DSN:
> SELECT * FROM (SELECT * FROM WP100598 WHERE SerialNum LIKE
> '311022-05%' OR SerialNum LIKE '311022-07%') WHERE UTCTime >
> 1090882800 AND UTCTime < 1092870000 ORDER BY SerialNum desc
> Thank you, your help is much appreciated

Similar Messages

  • Query works in Access but not CF

    I wrote this query initially in access to extract the data I
    wanted out of my table. In MS Access, the query works fine, returns
    the desired data. When I run the query from my CF page, i get the
    following error:
    Error Executing Database Query.
    [Macromedia][SequeLink JDBC Driver][ODBC
    Socket][Microsoft][ODBC Microsoft Access Driver] Too few
    parameters. Expected 2.
    Can anyone tell me why? Below is my query

    As the IIF function is a valid CF function, it may not be
    getting passed as 'plain text' to Access, instead CF
    may be attempting to compile the function and pass the
    result. If you can turn on debugging and for a short time set it to
    include the SQL being passed in error messages, you can see what is
    really going on.
    Another option is to create/save the query in the Access
    database and reference that instead of a table in your CFQUERY
    call. Since you are just running a staright query and not passing
    anything from CF (unless I am mistaken), calling the Access query
    for your results would work fine.
    <CFQUERY ...>
    SELECT * FROM myQueryName
    </CFQUERY>
    HTH,
    CR

  • Query working in access but not in program

    Hello all,
    This is a problem I've faced many a times, specially with a table with large no of fields.
    I write a query in my programm, and it throws invalid argument exception.I copy the query string from the command prompt and paste it in access query and run it in access, it runs just fine.
    any insights , as to why this is happening.It did happen to me before but couldnt get around to solving it that time, but this time i hope to reach to some generic solution to the problem.
    any hints, suggestion , ideas would be appreciated.

    Well I've been staring 30 minutes into crystal ball now, but still your code doesn't show up.
    Honestly: without your code, there is no way in telling what is going wrong. Where/when is the InvalidArgumentException thrown? Which method call throws that exception. Which argument is it, that you provide? Did you check the stack trace to find out where it happens? ...

  • Can firefox support "file:///" format to access local files (note 3 fw slashes) this works for IE but not firefox and is the format used in the "afghan war diary" from wikileaks

    can firefox support "file:///" format to access local files (note 3 fw slashes) this works for IE but not firefox and is the format used in the "afghan war diary" from wikileaks

    See http://kb.mozillazine.org/Links_to_local_pages_do_not_work

  • Password works for login but not for the Adobe CC Desktop application

    Password works for login but not for the Adobe CC Desktop application

    Please refer to http://helpx.adobe.com/creative-cloud/kb/troubleshoot-cc-installation-download.html
    ou can try deleting OPM.DB from steps below and try again.
    Mac OS: You can locate the OPM.db file in the \User\\Library\Application Support\Adobe\OOBE folder. To access the hidden user Library folder, see Access hidden user library files | Mac OS 10.7 Lion. - http://helpx.adobe.com/x-productkb/global/access-hidden-user-library-f iles.html
    Windows: You can locate the OPM.db file in the :\Users\\AppData\Local\Adobe\OOBE folder.  To view the hidden AppData folder, see Show hidden files, folders, filename extensions | Windows XP, Vista, Windows 7. -http://helpx.adobe.com/x-productkb/global/show-hidden-files-folders-ex tensions.html
    3) update to the latest version of the Creative Cloud app.
    Also we would like few more details:
    When has this issue started occurring, was this after installation of any specific adobe product.
    On which platform are you seeing this.
    Also we would like to know if after above steps this issue occurs ever again in future.
    You can refer to http://forums.adobe.com/thread/1239510
    Regards,
    Rajshree

  • Album Art works for most, but not all

    I was reading previous forums on the subject, but no clear answer was given..
    The album art shows up fine in itunes and my library and works for most of my music on my ipod, but how come some album's art does appear? I have it set manually and select 'Get Info' then 'Artwork' and add it from there, then drag in the finished product to my ipod. I've been doing that and it works fine for most of the albums, but every so often, the album art will not appear on my ipod. Am I doing something wrong? I take them all from the same source (amazon.com) but it makes no sense to me how some randomly don't appear.
    I tried deleting the artwork and re-adding it, but nothing happened again. If you could answer why it works for most but not all or how I can get the album art to appear for the ones it will not by re-doing something, it would be appreciated. thanks.

    I encountered the same problem in the beginning. When I compared the size of the original images, the working ones seemed to be smaller in general, so I reduced the size of all covers I intended to upload on the pod to 300x300 pixels.
    This seemed to work - for 2 days. I bought the pod on friday, had pictures on sunday, but on Monday (after the first time the pod was fully discharged) none were left left.
    So I ended searching this forum for related problems...
    And decided to join my problem to this entry.

  • My sound works for music but not apps

    My sound works for music but not apps

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Check your settings. The iPads have a small switch on the right edge. It can be used as a rotation lock to keep the screen from automatically reorienting itself as you move around, but you need to have the tablet’s settings configured properly. That same switch, right above the volume buttons, can also be set to function instead as a mute button to silence certain types of audio.
    If the switch is set to work as a mute button, you can change its purpose to “screen-rotation lock” by tapping the Settings icon on the home screen. On the Settings screen, tap General on the left side, and on the right side of the screen flick down to “Use Side Switch to.” Tap to select Lock Rotation or Mute to set the button’s function. Even if you set the side switch for your preferred use, you can still mute the Mini or lock the screen. Just double-click the Home button, and when the panel of apps appears along the bottom edge of the screen, flick the row from left to right with your finger. Tap the icon on the far left side of the row to either lock the iPad’s screen or mute the iPad’s alerts, notifications and sound effects. Music, podcasts and video are not muted unless you turn the volume all the way down.
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/ts5180
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/ts1630
    http://www.atreks.com/app-no-sound-on-ipad-4-%E2%80%93-what-to-do/
    To solve some sound problems, just follow these simple steps
    1. Go to Settings
    2. Tap on General
    3. Tap on Reset
    4. Tap on Reset All Settings
     Cheers, Tom

  • HT3387 When I use pages the languages that I mainly use are English and Hebrew. The spellchecker works for English but not with Hebrew. How can I add another language to the spellcheck?

    When I use pages the languages that I mainly use are English and Hebrew. The spellchecker works for English but not with Hebrew. How can I add another language to the spellcheck?

    http://m10lmac.blogspot.com/2011/06/extra-spell-checking-dictionaries-for.html

  • Flash shockwave 11.5 works for youtube but not amazon instant video

    Shockwave 11.5 r502 works for Youtube but not for Amazon Instant Video.

    Hi,
    It asked me if I wanted to install something to make the videos load faster -
    Check Safari / Preferences - Extensions. Might be lurking there. If so, select the plugin then click Uninstall.
    Check:
    ~/Library/Internet Plug-Ins (~) Tilde character represents your Home folder
    Check:
    /Library/Internet Plug-Ins
    /Library/Application Support
    /Library/Input Managers
    And check your Safari downloads folder. If the file is still there, double click to open. Might be an uninstaller you can use.
    Help here for troubleshooting Flash
    Carolyn
    Message was edited by: Carolyn

  • Tiger Server: Default MySQL works for phpMyAdmin but not command line ? ? ?

    Greetings all,
    I followed the excellent instructions at
    http://discussions.apple.com/thread.jspa?threadID=132783&tstart=0
    on upgrading PHP to version 5 and getting (the preinstalled) MySQL setup with phpMyAdmin
    I can connect through the phpMyAdmin, create new dbs, etc. Problem is that now I CAN'T connect from the command line. (I originally set my new root password from the command line and that's the last time I could connect from there!
    Now I get the dreaded ERROR 2002 when I attempt:
    /usr/bin/mysql -h localhost -u root -p
    If I use the IP address or hostname instead of "localhost" (after -h) I get a ERROR 2003. Dropping the -h and hostname from the line above still gets me a ERROR 2002.
    My phpMyAdmin config is a connect type "TCP" not socket, which might be one reason it works and the command line doesn't, but I still don't know where I've gone wrong.
    My /var/mysql/* is all owned by mysql and group www.
    I'm finding lots of people asking about the ERROR 2002, but not finding any solutions (particularly for Tiger Server). I'd prefer to use the preinstalled MySQL to installing a new installation (the thread referenced above says upgrading or removing the MySQL installation is too hard to do) and there has GOT to be a reasonable explanation for why it works with phpMyAdmin, but not the command line.
    Thanks in advance for any replies!
    Many   Mac OS X (10.4.3)  

    You know what? I think when I started mysql_safe, I did it with sudo. Maybe that is my problem?
    If so, what user do I want to start it as? I've seen one suggestion of doing this:
    ./bin/mysqld_safe --user=mysql &

  • SQL*Plus variable assignment works for 8i but not 9i

    We have scripts that connect to each database on the box and perform database tasks nightly. The scripts first set the environment then connects to each database with SQL*Plus. This works for 8i but fails in the recently created 9i environment. (Unix Solaris environment)
    Because the SQL*Plus connection appears in many areas in the scripts, we assign the following connection string to a variable:
    SQLPLUS="/usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba'"
    Export SQLPLUS
    echo "$SQLPLUS"
    (This echo out correctly: /usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba')
    It fails when the script calls the assigned variable:
    $SQLPLUS <<-EOF
    with the following error:
    Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ]
    where <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ]
    <logon> ::= <username>[<password>][@<connect_string>] | / | /NOLOG
    <start> ::= @<URI>|<filename>[.<ext>] [<parameter> ...]
    "-H" displays the SQL*Plus version banner and usage syntax
    "-V" displays the SQL*Plus version banner
    "-L" attempts log on just once
    "-M <o>" uses HTML markup options <o>
    "-R <n>" uses restricted mode <n>
    "-S" uses silent mode
    However, if I remove the SQLPLUS variable assignment and changed all occurrence of
    $SQLPLUS <<-EOF to
    /usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba' <<-EOF
    Then the script runs successfully. But this solution is cumbersome.
    Any ideas as to how to have the script work with assigning the SQLPLUS variable????
    Any help is appreciated.

    I has an immediate suspicion it might be related to the issue
    mentioned in
    http://otn.oracle.com/support/tech/sql_plus/htdocs/sub_var2.html#2_7
    but this proved wrong: the SP2-306 still occurs in the latest
    SQL*Plus.
    I wonder what version of 8i you had working? With an old SQL*Plus
    8.1.7.0 my connection failed the same as in 9.2 and 10i.
    My solution was to do:
      SQLPLUS='sqlplus -s'
      UNPW='/ as sysdba'
      $SQLPLUS "$UNPW" &lt;&lt;EOF
      EOFThis worked in 9.2.0.5, 10.1.0.2 and 8.1.7.0.
    One common security risk on UNIX remains: putting the username and
    password on the command line. On some systems a "ps" command will
    show the password to any user. If OS authentication cannot be used
    for connection, perhaps putting the username/password in the SQL
    script may be more secure?
    A final note is that in SQL*Plus 10g, no quotes are needed around
    AS SYSDBA, i.e.
      sqlplus / as sysdba works from the OS prompt, whereas in 9.2 you need to do
      sqlplus "/ as sysdba"This makes a solution easy:
      SQLPLUS="/usr/oracle/product/10.1.0/bin/sqlplus -s xxx/xxxxxx@xxxx as sysdba"-- CJ

  • SQL*Plus assignment works for 8i but not 9i

    We have scripts that connect to each database on the box and perform database tasks nightly. The scripts first set the environment then connects to each database with SQL*Plus. This works for 8i but fails in the recently created 9i environment.
    Because the SQL*Plus connection appears in many areas in the scripts, we assign the following connection string to a variable:
    SQLPLUS="/usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba'"
    Export SQLPLUS
    echo "$SQLPLUS"
    (This echo out correctly: /usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba')
    It fails when the script calls the assigned variable:
    $SQLPLUS <<-EOF
    with the following error:
    Usage: SQLPLUS [ [<option>] [<logon>] [<start>] ]
    where <option> ::= -H | -V | [ [-L] [-M <o>] [-R <n>] [-S] ]
    <logon> ::= <username>[<password>][@<connect_string>] | / | /NOLOG
    <start> ::= @<URI>|<filename>[.<ext>] [<parameter> ...]
    "-H" displays the SQL*Plus version banner and usage syntax
    "-V" displays the SQL*Plus version banner
    "-L" attempts log on just once
    "-M <o>" uses HTML markup options <o>
    "-R <n>" uses restricted mode <n>
    "-S" uses silent mode
    However, if I remove the SQLPLUS variable assignment and changed all occurrence of
    $SQLPLUS <<-EOF to
    /usr/oracle/product/9.2.0/bin/sqlplus -s 'xxx/xxxxxx@xxxx as sysdba' <<-EOF
    Then the script runs successfully. But this solution is cumbersome.
    Any ideas as to how to have the script work with assigning the SQLPLUS variable????
    Any help is appreciated

    I has an immediate suspicion it might be related to the issue
    mentioned in
    http://otn.oracle.com/support/tech/sql_plus/htdocs/sub_var2.html#2_7
    but this proved wrong: the SP2-306 still occurs in the latest
    SQL*Plus.
    I wonder what version of 8i you had working? With an old SQL*Plus
    8.1.7.0 my connection failed the same as in 9.2 and 10i.
    My solution was to do:
      SQLPLUS='sqlplus -s'
      UNPW='/ as sysdba'
      $SQLPLUS "$UNPW" &lt;&lt;EOF
      EOFThis worked in 9.2.0.5, 10.1.0.2 and 8.1.7.0.
    One common security risk on UNIX remains: putting the username and
    password on the command line. On some systems a "ps" command will
    show the password to any user. If OS authentication cannot be used
    for connection, perhaps putting the username/password in the SQL
    script may be more secure?
    A final note is that in SQL*Plus 10g, no quotes are needed around
    AS SYSDBA, i.e.
      sqlplus / as sysdba works from the OS prompt, whereas in 9.2 you need to do
      sqlplus "/ as sysdba"This makes a solution easy:
      SQLPLUS="/usr/oracle/product/10.1.0/bin/sqlplus -s xxx/xxxxxx@xxxx as sysdba"-- CJ

  • Why does my app store account tell me that my payment method does not match my bank's records. my card is valid and works for iTunes but not the app store.

    While trying to change my Credit Card info: The app store tells me that my payment method information does not match my bank records and to try again or enter a new payment method. My CC is valid and its the same CC ive had for a while. This CC info works for iTunes but is not being accepted for the App store.I have changed this info online but cannot change it on my iPhone. Can anyone tell me what i need to do?

    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes
    international calling numbers..
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.

  • Table of Contents page numbers works for PDF but not for other formats

    Hi,
    I followed exactly was indicated here regarding creation of TOC.
    http://docs.oracle.com/cd/E10415_01/doc/bi.1013/e12187/T421739T481157.htm
    The page numbers generated correctly for PDF but not for RTF, HTML and XLS.
    (HTML and XLS are understandably not paginated in nature but why not in RTF?)
    Tried to make the simplest example work, with 2 headings each on a separate page. Doesn't work on either MSWord 2003 or 2007.
    What am I doing wrong?
    Regards,
    Jarell
    Edited by: Jarell on Jan 11, 2012 8:08 PM

    Hi Kavipriya,
    What is your email address? I have attached a file in Oracle Metalink, under SR 3-5172030861. named test_toc.rtf
    You may use any xml because the template does not use any dynamic binding of values.
    The template is basically 2 pages, the TOC in the 1st page. First TOC item (Heading 1) is in Page 1, and Second TOC item is in Page 2.
    So the end result should be (PDF result from BI Publisher):
    First TOC Item .................. 1
    Second TOC Item ............. 2
    But for RTF it outputs:
    First TOC Item .................. 0
    Second TOC Item ............. 0
    And after doing Print Preview (once or twice)
    First TOC Item .................. Error in Bookmark
    Second TOC Item ............. Error in Bookmark
    Hope this is detailed enough to illustrate the problem.
    Edited by: Jarell on Jan 17, 2012 10:24 PM

  • Can't FaceTime anymore?  iPad states wifi connected and iPhone 4 states not connected?  I have wireless in my home? Not sure what happened.  Password works for iPad but not on phone?

    iPhone won't connect to wifi.  iPad is connected.  Password working on iPad but not on phone.  Can't upload software update of IOS 7.1 because phone not connecting to wifi?

    Connect iPhone to computer and open iTunes.  You will be prompted to update to iOS 7.0.  Keep your phone connected until the update is finished.

Maybe you are looking for

  • RAW COMPRESSION

    hi guys not really an aperture question, however this might be the perfect audience to ask this question... do compressed raw files (such as from a nikon d70s) have less quality than uncompressed raw files? or is it a lossless compression without inf

  • Converting from 16:9 to 4:3 Ratio?

    Hello! I need to convert my 16:9 video to 4:3 ratio. What's the best approach to doing this? I also have compressor and all the raw files.

  • Your BT Broadband Talk mailbox order - we did not ...

    We just got an e-amilfrom BT, have removed out details, but it suggests that we have ordered something??? We have not ordered anything! Is this a scam??? From: [email protected] [mailto:[email protected]] Sent: 25 September 2010 15:35 To: @btinternet

  • Auth properties question for IPS3 or IPS6

    The Auth module in Portal 3.0 and 6.0 has the same template based logic, where the placeholder <subst data="XtokensX"> in the mylogin.html template will be replaced with parameters specified in "mylogin.properties". In the mylogin.properties I can sp

  • String cannot be applied to java.lang.String in NetBeans 6 !?!?

    Guys, I have a problem. I am calling some API from jar file. Here is the method prototype in API jar: public Operator getAdminOperator(String name, String password, int admin); when I call this method in NetBeans 6 like the following: admin.getAdminO