[JPA/TOPLINK] is the function "lower" supported in "order by" clause?

In EJB-QL
I can use lower() or upper() in where clause.
But there is always a parse exception thrown when i tried to use it in main clause or order by clause.
works:
select s from Student s where lower(s.name) like 'm%'
exception thrown:
select s from Student s where s.name like 'm%' order by lower(s.name)
OR --------------
Why i am asking this is that the resultset returned from database is not alphabetical sorted but ascii sorted, which means any characters with upper case is always prior to the ones with lower case.
If EJB-QL doesn't support using lower() in order by clause, do I have any other options to avoid this problem?
BTW, it is the Oracle 10g we are using as DB
many thanks,
Xuphey
Edited by: Xuphey on Nov 29, 2007 1:33 AM

If you want to do this, you'd have to use dynamic SQL (execute immediate or DBMS_SQL). For the easier 'execute immediate' approach, you'd do something like
create or replace someProc( someArg varchar2 )
as
  strSQL varchar2(4000)
begin
  strSQL := <<string containing your SQL statement up to the order by clause>>
  strSQL := strSQL || 'ORDER BY ' || someArg
  execute immediate strSQL;
endJustin

Similar Messages

  • Whenever i purchase from a game called clash of clans it tells me to contact the i tunes support in order to complete this transaction

    whenever i purchase from a game called clash of clans it tells me to contact the i tunes support in order to complete this transaction

    Have you contacted them (these are user-to-user forums) ? If not then you can do so via : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • JPA/Toplink changes the query logic

    Hi,
    Iam currently using JPA with Toplink implementation , i guess that toplink has its own way of optimizing the provided JPA query ; on another words , toplink sometimes changes the way you are using joins and exists statement to what looks optimized , but unfor. this caused me troubles tracking a query that should work on a certain way but its not cause the generated query by Toplink ( can be captured on the log ) does not represent the same logic , is this a known issue or do i have to write my JPA query on a way on which can be translated correctly by toplink , i know i should provide the query it self , but the model structure is too complex.
    Thanks in advance

    Hello,
    JPQL does not directly translate to SQL, so there might be some differences in what you may be expecting due to JPA requirements on the results that are returned. If there is a problem with specific queries, please let us know and file a bug if it is not behaving the way it should. A workaround would be to use a native SQL query directly.
    Best Regards,
    Chris

  • Table Link between the Functional Location and work order

    Hi Gurus,
    I am stuck in a big problem and have to find a way to list down the work order with a specific user status in the system. I am trying to link it based on the functional location as the inputs will have to be functional location and the date. Can any one guide me with the tables to link these two???
    Thanks in advance
    Anoop

    Hi,
    Depending on your exact requirement, you might be able to select from view VIAUFKST_IFLOS. This would allow selection based on order, functional location and various dates. The field IPHAS will give you some system status information - value will indicate which status the order has reached. Example value = 3 indicates order is technically completed.
    To get the exact system status (or user status) you need to read the JEST table. Read this table by OBJNR. The object number will have the format OR005000123456 (where 5000123456 is the order number). It will be available in the order tables.
    Status values in JEST are in the internal format - example I0002 = REL. Check transaction BS23 to see the link. User status values will have the format E0002. If INACT flag is set in a jest record then that status value is not active. If you want to check for a specific status value then call function STATUS_READ.
    -Paul

  • I want to display MacBook Pro email videos on my Panasonic TV.  I bought it in Jan 2010, one article says the function is supported on mid-2010 models and later.  Think I can buy the hook ups and get this to work?

    I want to display computer contents (email videos, YouTube videos) on my Panasonic HDTV.  Can a model from Jan. 2010 do this?  Thanks.

    Yes, easily — but to get the audio to the TV through the same HDMI cable as the video, you'll need an adapter like the ones I linked in this thread:
    https://discussions.apple.com/message/15205259#15205259

  • Function modules supported by seal system used to print drawing documents

    Hi,
    As per my current requirement, while create purchase order (ME21N), the drawing document (which are linked with materials of the PO) should print along with the PO form (smartform). The drawing are stored in the Auto CAD system. Seal software has already installed to print drawing documents.
    But I would like to know the function modules supported by seal system used to print drawing documents.
    Thank you.
    Tulasi

    Tulasi,
    May be you can approach it this way
    create a ztable with fields matnr and graphic object(check STXBITMAPS table for the attributes of this field) and upload the drawings against every material.Now you will have a table containing the matnr and the corresponding drawing in the table which can be used for further  processing.
    Hope  any of the SDN experts here will suggest a better solution.
    Kiran.

  • I want to use the Function Generator VI to send command signals through the NI 7344 motion controller. This will be a closed loop servo valve system. I want to be able to change from say a square wave to a sine wave on the fly. Idea's?

    I am going to run tests that require an actuator to move using various types of arbitrary waveforms such as sine or square. The NI 7344 is hooked to the UMI that is going through a driver for a servo valve. The loop is analog and it is closed. I have played with some of the examples but can't get it to work. I have used the function generator VI to generate a signal but I think I am using the wrong input VI to the motion control board. When I use what I have it moves the servo and then stops. It doesn't continually generate the signal.
    I would love to use the controls on the function generator vi to control frequency and amplitude ect. Any help or pointer would be helpful. Thank you in advance.

    Hello,
    I'm not clear on exactly how you want to use the generated data but I'm assuming they will be used as your target points.
    There's a built-in example for motion called 'One-Axis Contour Move.vi'. This example demonstrates how to provide your target points as 1-D array. All you need to do is to replace the input array with the output of the function generator. In order to have it run continuously, use a while loop. You can further program your application so that it'll change the waveform on the fly by monitoring the user interface but this might be little little tricky as you will need to reset the move and load the new generated points while keeping track of your current position.
    I hope this helps. Let me know if you have further questions regarding this
    application.
    Best regards,
    Yusuf C.
    Applications Engineering
    National Instruments

  • Want to use the function shuffle to all albums (Music)

    Dear friends, since yesterday I'm unhappy user of the new IOS7. At the old IOS 6 I was able to push the shuffle button in the folder album or artist at the top of the list. Now this button is missing!! (Which crazy developer delete this !!!!)
    Does somebody know a solution to shuffle over all artists or albums list without creating a list of all?
    BR comueller

    Hello,
    I'm not clear on exactly how you want to use the generated data but I'm assuming they will be used as your target points.
    There's a built-in example for motion called 'One-Axis Contour Move.vi'. This example demonstrates how to provide your target points as 1-D array. All you need to do is to replace the input array with the output of the function generator. In order to have it run continuously, use a while loop. You can further program your application so that it'll change the waveform on the fly by monitoring the user interface but this might be little little tricky as you will need to reset the move and load the new generated points while keeping track of your current position.
    I hope this helps. Let me know if you have further questions regarding this
    application.
    Best regards,
    Yusuf C.
    Applications Engineering
    National Instruments

  • Function module for Process order status

    Hi techies,
    I want to know the function module for process order status , idoc type is liopro01 and message type is liopro, my requirement is that based on the different status received in IDoc SAP should update the process order status, separate user status will be defined as "MO START" and "MO end" using status profile.also it has change the process order status to "TECO" also it should check the user status for "MO Abort".
    Thanks in Advance

    Hi ross,
    Try this function module.
    STATUS_CHECK_MULTI
    May be helpful.
    Lincon

  • How to find out what are the functions supported by string class

    Hi,
    Can any one let me know how to find what are all the functions supported by the string class in standard(STL) library on solaris.
    Regards,
    Vignesh

    1. Any C++ textbook that covers the Standard Library will tell you about the standard string class. A good tutorial and reference for the entire Standard Library is "The C++ Standard Library" by Nicolai Josuttis, published by Addison Wesley.
    2. WIth Sun C++, the command
    man -s3C++ basic_string
    provides documentation for the default libCstd version of the Standard Library.
    3. You could look at the <string> header itself. I don't recommend that approach.

  • Do the Mac minis support using AirPlay and all of its functions?   I thought I saw a comment yesterday that suggested the Mac mini (particularly the late 2012 models) does not support AirPlay.  Thank you.

    Do the Mac minis support using AirPlay and all of its functions?   I thought I saw a comment yesterday that suggested the Mac mini (particularly the late 2012 models) does not support AirPlay.  Thank you.

    Hello,
    AirPlay Mirroring
    Requires a second-generation Apple TV or later. Supports the following Mac models:
    iMac (Mid 2011 or newer)
    Mac mini (Mid 2011 or newer)
    MacBook Air (Mid 2011 or newer)
    MacBook Pro (Early 2011 or newer)
    http://support.apple.com/kb/HT5444

  • Why is the PWDCOMPARE function not supported on an Azure SQL Server 2014 database

    I have tried to publish a database from our local SQL Server to Azure but receive an error saying PWDCOMPARE is not supported with no link to a reason why.
    We are using HASHBYTES function to encrypt passwords in our database and
    PWDCOMPARE to validate them and we currently don't have an alternative (see article: http://sqlity.net/en/2460/sql-password-hash/). The PWDCOMPARE function is referenced by a stored procedure,
    which is what won't publish to Azure.
    It would be useful to know if it will be supported or if we should create a VM instead.
    EDIT: Further Clarified question above, but basically the functions listed are documented in MSDN and there is no mention of them being undocumented unsupported features.
    The error occurs when trying to publish a database to Azure from SQL Server 2014 Management Studio

    Hi,
    I am not an expert to answer this but am trying my best to answer this query.
    Hashes a password and compares the hash to the hash of an existing password. PWDCOMPARE can be used to search for blank SQL Server login passwords or common weak passwords.
    Syntax
    PWDCOMPARE ( 'clear_text_password'
       , password_hash
       [ , version ] )
    Note: This feature will be removed in the next version of Microsoft SQL Server. Do not use this feature in new development work, and modify applications that currently use this feature as soon as possible.
    I am not sure whether this feature is not available on SQL 2014.
    I think you can solve this issue by using the EXECUTE AS. Add this query into a procedure with EXECUTE AS with the user/login with sufficient permissions on the server.
     Refer to belw link for more details on EXECUTE AS
    http://msdn.microsoft.com/en-us/library/ms188354.aspx
    create
    procedure checkpassword
    @UserName
    SYSNAME
    ,@Password
    VARCHAR(1000)
    WITH
    EXECUTE AS
    '<UserName>'
    as
    select
    pwdcompare(@Password,convert(nvarchar(128),password))
    from master.dbo.syslogins
    (nolock)
     where name=@UserName
    GO
    EXEC checkpassword
    @UserName='test',@Password='12345678'
    Girish Prajwal

  • Where are the codes which support the system functions in calculate scripts

    Hi all,
    I want to create some user-defined functions to meet some sepecial requirements. Before this job, I really like to see the codes which support the system functions such as "@Idescendants". where can i find the .class files or .jar files which the system functions used to perform calculation at background? consider the user-defined function usually have one.
    Thanks alot!
    Edited by: tony.lee on 2012-6-12 上午2:45

    Hi,
    You can get the sample codes from the below link
    http://www.oracle.com/technetwork/indexes/samplecode/essbase-sample-522117.html
    Cheers..!!

  • Does WD ALV support the functionality?

    Hi Experts,
    Does WD ALV support the functionality that when use tries to remove one line from the grid, the system will popup a dialog box and warn user that he is trying to remove one data. if user click the OK button, the selected line will be removed or go back to the initial screen.
    IF WD ALV support the functionality how can I implement this? Thank you very much!
    Best Regards
    Julia

    Hi,
    You can create your own customized button in ALV and add the functionality of  poping up a window  whether to delete or not to delete the record.
    Priya

  • All of a sudden the functions of my magic muse do not fonction (scroll, secondaire click, smart zoom etc.). The mouse is rightly connected to my PC under Yosemite. Thanks for the support.

    All of a sudden the functions of my magic mouse do not fonction (scroll, secondairy click, smart zoom etc.). The mouse is rightly connected to my PC under Yosemite. Thanks for the support.

    Hi,
    Sorry I can't help you. I just wanted to let you know I have the same exact problem. It started three days ago and I've been going back and forth with creative support and nothing has worked. I am beginning to grow really distressed. I feel a little better now because after seeing that it's happening with someone else, it is most likely not the player. I am running windows 98 SE as well. I also have an AMD Duron processor. I have a new computer on the way with windows XP I really hope it works. But now I have a new problem. I listed it on the front page of this forum a few minutes ago. My player froze and now only boots up in rescue mode. I am getting so frustrated with my player. If you figure anything out will you be as kind as to send me a message on how you got your player working again? I would really appreciate it. Thanks.
    Nick
    Message Edited by nichols088 on <SPAN class=date_text>06-09-2005 <SPAN class=time_text>05:33 PM
    Message Edited by nichols088 on 06-09-2005 05:35 PM

Maybe you are looking for

  • Excel Spreadsheet as Data Source & Copying that Data to an Existing SharePoint List

    Hello, I have an Excel spreadsheet that I get daily and cut and paste into an existing SharePoint list. Is there a way to make that Excel spreadsheet a data source and copy the data to an existing SharePoint list with less manual involvement? Tools a

  • Minimum safety stock

    Hi, I maintained minimum safety stock as-50 in MRP2 view while creating material master, my client requirement is this minimum safety stock should not be issued at any cost, without enhancement from abap consultant i need to maintain this safety stoc

  • Firewire input interface not recognized by GB

    The external interface I am using for my microphone input appears in System Preferences.  The microphone works with ichat.  In GB, however, the only input that appears in the GB preferences is built-in mic. Suggestions?

  • ODBC Driver Install Problem.

    Hi, I am having a problem installing the Oracle ODBC driver from the Oracle 9i 9.2.0.1.0 client CD onto a Windows 2000 professional SP4 machine. The Universal installer says everything is installed but the driver does not appear the the Windows ODBC

  • How to differentiate a report in different enviroments

    hi, As far as i concern/know that a report irrespective it belongs to a particular environment it is data independent i can justify my statement here we go we'll have test data in development system , replication of own old data in quality for testin