[SOLVED] -- to_char (:A) = '192025ZMAR03' (in a query) doesn't work

For custom query of a DATE (database) DATETIME (form) field
to_char (:A) > '192025ZMAR03' or to_char (:A) <> '192025ZMAR03' or
to_char (:A) <= '192025ZMAR03' works, BUT to_char (:A) = '192025ZMAR03' is not working :(
Any ideas?
iAS version is 10.1.2.0.2 , running on Linux. Related format mask is defined in the related forms column properties.
Thank you
Message was edited by:
zaferaktan
Message was edited by:
zaferaktan

BUT to_char (:A) = '192025ZMAR03' is not workingIt is not working for either of two reasons:
1. The data in the database column contains a nonzero seconds time element. You are not providing one, so unless the rows have seconds set to exactly zero, the date and time are not equal.
2. Your sessions default date format for your forms session is not DDHH24MI"Z"MONRR
Since you do not give it a format to use, Oracle is using the default date format, which is usually DD-MON-YY.
If you want to ignore the seconds in the time element, you need to add TRUNC(:A,'MI') to your condition, which truncates to the minute.
To use both the correct datetime format and ignore the seconds, use this:
to_char (trunc(:A,'MI'),'DDHH24MI"Z"MONRR') = '192025ZMAR03'However, you should NOT be converting the database data to character before doing the comparison. If you do, and you use the > or < operators, any day of the month > 19 will compare greater than your value, even 200159ZJAN03.
The correct method would be this:
trunc(:A,'MI') = to_date('192025ZMAR03','DDHH24MI"Z"MONRR')

Similar Messages

  • SQL query doesn't work in VB program

    Hi:
    The following SQL query doesn't work into a VB program, I'm using Oracle OLEDB to established connection to the DB, ... the query returns 0 rows ...
    When I run this same query from any SQL Plus, works well (returning me something like 119 rows) ...
    Any clue or hint ??
    Thanks in advanced
    Angel Castro
    SELECT OPERADOR, ID_ALIMENTADOR, RB_FSC, NUM_CTROL, COND_OPERA, TRANSITORIO, PENDIENTES, ANORMAL, EDO_REAL, IDENTIFICADOR, CAUSA
    FROM HISTORICO_OPERACION
    WHERE (FECHA BETWEEN '20-AUG-2004' AND '5-NOV-2004')
    AND (HORA BETWEEN '10:00:00' AND '16:00:00')
    ORDER BY ID_ALIMENTADOR ASC;

    Is the column FECHA of datatype DATE?
    Are you running the query with the constant date looking like strings ('20-AUG-2004' in your post, for example) as-is from the VB program?
    If not, are you binding the parameters correctly?
    What is the setting of your NLS_DATE_FORMAT parameter?
    What happens if you do a
    ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY'from your VB program before running the query?

  • The query doesn't work

    Hi kind people!
    I have udf  TEST on the picture. The query on the picture I have connected to the field Test and conected to field description too. But with the field Description the query doesn't work. U_Producer is the name of another field. Why does not it work?

    Hi Gordon!
    From the right I have UDF for choosing the spare parts of auto.  I want to add a spare part, for example to item master data (OITM). I enter every field step by step 1 - 4 by choosing frome use tables linked in every field. I choose fielf 1 (Brand) for example TOYOTA and in the use table of 2(Model) field i see only values that belong to TOYOTA that to say corolla, carina, vista and so on.  But to find any component  exactly i put on the loupe in the field 5 and see a table where all types of auto parts in the world but they are filtered with parametrs in 1-4 fields. I chhose needed component and get in the 5 field any code of a choosed part. Then i d liked to link the table of filed 5 to field Description too and to filter component with code in field 5 in order to get item description from the use table. I used the one method of filtering in all fields Here i see that i can to filter values using use fields but I don't use it in standart field description, although the usual selection of elements of any use table works. As a result a see that the problem that doesn't work the selection and filtration in the field description but it works in in UDF.

  • [Solved] xmodmap bug? Remapping Caps Lock doesn't work

    When I program I like to swap these keys:
    Esc <-> Tab
    Ctrl <-> Caps Lock
    In ~/.xmodmap, I have specified these re-mappings:
    keycode 66 = Control_L
    keycode 37 = Caps_Lock
    keycode 23 = Escape
    keycode 9 = Tab
    The Escape and Tab keys swaps, no problem, but instead of Caps_Lock and Control_L swapping, both those keys becomes Caps_Lock.
    Whatever I try to do, the Control keys doesn't get assigned to Caps_Lock(keycode 66). If I leave the keycode 66 = , the key is un-assigned, but when I assign Control_L or Control_R, it just doesn't work. But, if I assign some other key, for example, keycode 66 = Tab, it gets assigned, no problem.
    Its like xmodmap just doesn't want Caps Lock and Control keys to be swapped. Really frustrating. Any help/pointers would be really helpful.
    Last edited by Gits (2012-04-12 07:09:37)

    Solved: http://unix.stackexchange.com/questions … oesnt-work

  • Multiple conditions in Query doesn't work

    Hi all,
    I've made a query pointing on a Multiprovider wich 's made of two main dimension ( multiple infoproviders ) :
    contract and pricing and on the other hand  Sales and Revenues.
    In my Query, one condition's concerned by a contract & pricing key figures ( Number of pricing condition > 0 ), and another one is about a Minimum Turnover Sales & Revenues key Figures restriction( by a prompt ).
    This doesn't match, Some rows are missing, and while a condition is active , the other one can't be..
    If any one meet this kind of problem before ?
    Thanks and sorry for my bad english..

    Hi,
    I already try to create another key figure wich made like this :
    Number of condition * Turnover
    and made a condition on this result.
    But the main problem is  if the contract doesn't have Turnover, it will not shown the rows with condition ..( the condition is on the single value 'number of document ) and if I put anotehr condition with number of condition > 0, it still doesn't work..
    thanks for help.

  • [SOLVED]Custom DSDT not loading - OEM battery doesn't work - Sony Vaio

    EDITING ORIGINAL POST TO POST SOLUTION so I don't do a massive bump
    Installed windows and ran the BIOS flasher that came with the battery. Didn't work until I changed a line in the plaintext configuration file (config.ini or something) it comes with. Changed "Capacity: 20" to "Capacity: -10". This changed the battery charge requirement from 20% to negative ten percent (any negative number will do), allowing the program to run and flash the BIOS. Didn't realize I could do that, but it fixed  the problem 100%.
    #### BEGIN ORIGINAL POST: ################################
    Hey guys,
    I'm a bit of a linux noob, but I've spent many hours this week trying to fix this issue on my own and have learned a lot about making custom kernels, hardware stuff, ACPI, and ABS. However, nothing I've done has worked and I've hit a wall. For reference, I'm on a Sony Vaio VGN-FZ4000 with linux-3.0 base kernel, gnome3/gdm. The battery is made in china and doesn't list a manufacturer, just model number BPS8, 52000mAh.
    [Backstory]
    So I recently got an OEM battery to replace the broken original, which hasn't worked since before I installed arch (though it worked with an Arch install I did a couple years ago). When I first plugged it in, the gnome battery symbol popped up listing the battery at 0% with an exclamation icon. I unplugged from AC power and the laptop still ran, but the battery monitor just said it was at 0% and 'Estimating' remaining time. I figured this was a glitch with gnome or just because it was this battery's first cycle so I let it run down until it hard-crashed. Then I plugged back into AC and tried to turn on the computer, but it wouldn't do anything until I removed the battery.
    Looking into the problem I discovered this was due to the ACPI firmware table DSDT being compiled for Windows, which has, shall we say, fewer restrictions on sanity than the Intel ASL compiler used for UNIX systems. Sure enough I extracted /sys/firmware/acpi/tables/DSDT to find that its section about the battery contained the entry 'Zero' for Battery Technology, which translates to "non-rechargeable", rather than 'One', which makes it chargeable. acpitool confirmed this; my system thought the battery was non-rechargeable and was constantly discharging it. Needless to say I've only been putting it in temporarily to test solutions since.
    [/backstory]
    [tl;dr] DSDT firmware contains malformed battery description, now I can't get my system to run with a custom DSDT. [/tl;dr]
    Attempted solutions:
    [1]
    Extract, modify, recompile DSDT and include it with the kernel compilation .config options
    CONIFG_ACPI_CUSTOM_DSDT=y
    CONFIG_ACPI_CUSTOM_DSDT_FILE="/usr/src/custom_dsdt.hex
    CONIFG_STANDALONE=n
    as suggested here, a page linked to by the arch wiki page on DSDT.
    I followed the instructions but no matter what this has generated errors during the kernel compilation, sometimes due to every line containing unexpected \231 (or other numbers) characters, sometimes finding some error in the DSDT file and then claiming that the driver it was compiling (ol.c somewhere in the drivers/acpi section I believe) had references to undefined functions all over the place. I CANNOT compile with a custom DSDT specified.
    [2]
    Place recompiled DSDT in /lib/initcpio/custom.dsdt and add 'dsdt' to the HOOKS in mkinitcpio (and rebuild the initramfs-linux-*.img, of course). Another version of this included recompiling the kernel with CONFIG_STANDALONE disabled.
    In neither of these situations has the running DSDT ever been anything but the BIOS-supplied one and not once has the battery shown any different behavior.
    acpitool and $ cat /proc/acpi/battery/BAT0/info have consistently claimed the information specified in the BIOS-supplied DSDT; the battery is non-rechargeable and is discharging at an unknown rate. Sometimes acpi will even report that the battery has zero capacity.
    The arch wiki does say mkinitcpio doesn't support the dsdt hook as of 2.6.30, but [1] didn't work either and mkinitcpio -H dsdt still told me to try this so I did.
    [3]
    The final solution I have tried has been to do [2] but to recompile the kernel with the legacy support for battery and ac adapter stuff disabled. I tried this because it was suggested in the kernel.log;
    Sep  13 11:51:03 localhost kernel: [   11.740059] ACPI: Deprecated procfs I/F for AC is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
    Sep  13 11:51:03 localhost kernel: [   11.753434] ACPI: AC Adapter [ADP1] (on-line)
    The corresponding line now reads
    ACPI: AC Adapter [ADP1] (on-line)
    (The same goes for the battery BAT0)
    but all this does is remove the battery/ and adp1/ folders from /proc/acpi/ and break acpitool functionality. The log still doesn't mention the dsdt hook, either.
    [4]
    The old way to do this was to use the acpi-dsdt-initrd-patch-* patch, but that hasn't been updated for modern kernels, presumably because of the new "functionality" from mkiniticpio. The current kernel .config doesn't include any options for ACPI initrd/initramfs support or reading a DSDT from initramfs, which is the functionality provided by this patch.
    This covers all the methods I've been able to find on the internet and I'm at a loss for what to do. Am I doing something wrong in [1]? Under what conditions will the compiler fail/succeed with a CONFIG_ACPI_CUSTOM_DSDT_FILE?
    When I recompile I fix the 'Zero' definition and a couple compiler errors and warnings. The errors come from section length definitions, which read as 0x00000000 rather than the appropriate max-min value so I fix those, and the warnings come from _T_* methods belonging to the compiler, so I refactor the code to remove the initial underscores. The last warning comes from an isolated And statement that's within brackets (compiler complains it doesn't do anything), but if I remove that the compiler fails hard.
    Thanks to anyone who's read this far.  Please let me know if you have any ideas how to get my system to use a customized DSDT.
    Last edited by paraffin (2011-09-29 23:20:30)

    Thanks for the offer, Radioactive man However, I'm actually compiling a customized kernel with the linux-ck and -sony patches, so your packages won't help. (The custom kernel works fine and I've tested this battery behavior on the the regular, -ck, and -sony kernels as well)
    Anyway, so I tried another compile with
    CONFIG_PREVENT_FIRMWARE_BUILD=n in addition to the options listed in [1] and that time it compiled.
    Unfortunately it still didn't load the DSDT!
    I did catch a quick little error message that turned up in kernel.log though;
    /var/log/kernel.log:Sep 15 11:50:24 localhost kernel: [    0.925780] acerhdf: unknown (unsupported) BIOS version Sony Corporation/VGN-FZ4000E/R2110J7, please report, aborting!
    acerhdf is a fan controller module for the Aspire One, and perhaps I left that in the kernel config and it's preventing the custom DSDT from loading, even though the acerhdf module never gets loaded itself, nor is it in my rc.conf or anything else... If that was the cause of all this, I'm gonna be angry...
    Anyway, this message does not appear with my latest kernel build because I took off the custom DSDT option, hoping to be able to use ACPI_CUSTOM_METHOD=y, which supposedly allows one to inject a custom AML method into a debug fs. It wouldn't have worked anyway, as it doesn't let you modify Device sections, but even with a dummy method insertion it didn't give my root modification privileges as it was supposed to...
    Will try recompiling AGAIN with this CONFIG_ACERHDF=n (it's simply 'not set' in my current .config), while also enabling the custom kernel etc. If this doesn't work I have no idea what I'll do.
    Anyway, thanks for your help and time:

  • [solved] Amarok 2.3.1: streaming/webradio doesn't work anymore

    I updated to Amarok 2.3.1 and now music streams/webradio doesn't work anymore. Anyone else experiencing this? Someone know, how I can get rid of this?
    EDIT/SOLUTION: Switched phonon-backend from gstreamer to xine and now it works again.
    Last edited by ChemBro (2010-06-08 10:38:13)

    sultanoswing wrote:
    Yes.
    I had to manually download the .asx file (e.g. wget http://www.newstalkzb.co.nz/audioasx.as … ass=48812).
    Then open the downloaded .asx file with a text editor.
    Find the following information e.g. "mms://wms-trn-all.streaming.net.nz/trn-newstalk-zb-akl".
    This is the proper link that amarok can and will play. A bit of a faff, but it works for me.
    I've always had to do it this way
    I guess i was following the old maxim "it's not a bug, it's a feature"

  • [Solved] Localtime is messed up, and pacman doesn't work anymore

    Hi everyone,
    I'm quite new to Arch Linux but I've succeded so far in installing the base system, setting up my wifi card (wasn't easy) and installing xfce4. When I first installed everything seemed to work fine (wifi, dropbox, pacman, etc.) but I noticed that my time doesn't reflect the current local time. I've selected America/Montreal in rc.conf and through "Orage Globaltime" in xfce4 but both return the UTC instead of the localtime. Also, when I try to get the UTC from Orage, it returns my localtime instead (Montreal)...
    So there's definitely something wrong there. I've then had a look at the forums/wiki and found that a network synchronisation should be used to correct the issue (such as ntp) but now pacman can't connect to anything. It returns something like this when I try to install/update/search:
    $ sudo pacman -Syu
    Password:
    :: Synchronizing package databases...
    error: failed retrieving file 'core.db' from mirror.us.leaseweb.net : Connection time-out
    ^C (keeps on getting time-outs if I don't interrupt)
    Some info on my system:
    General info: as stated above, internet over wifi (wlan0) works, pacman times-out and the local time is off.
    $ uname -a
    Linux giga-arch 3.5.3-1-ARCH #1 SMP PREEMPT Sun Aug 26 08:15:06 UTC 2012 i686 GNU/Linux ---(today's Sept 3, ~10:35am)---
    $ cat rc.conf
    DAEMONS=(syslog-ng network crond)
    TIMEZONE="America/Montreal"
    $ ip addr
    3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
        link/ether 84:c9:b2:00:41:e3 brd ff:ff:ff:ff:ff:ff
        inet 192.168.0.179/24 brd 192.168.0.255 scope global wlan0
        inet6 fe80::86c9:b2ff:fe00:41e3/64 scope link
            valid_lft forever preferred_lft forever
    $ cat /var/log/pacman.log
    [2012-09-02 16:31] starting full system upgrade
    [2012-09-02 18:16] Running 'pacman -S ntop'
    [2012-09-02 18:17] installed rrdtool (1.4.7-2)
    [2012-09-02 18:17] installed geoip-database (20120808-1)
    [2012-09-02 18:17] installed geoip (1.4.8-2)
    [2012-09-02 18:17] ==> Before running the daemon script for the first time, you need to run
    [2012-09-02 18:17]     ntop as the root user to set an administrator password.
    [2012-09-02 18:17] ==> If you attempt to run ntop as a daemon without setting a password, a
    [2012-09-02 18:17]     FATAL ERROR message is generated and ntop stops.
    [2012-09-02 18:17] installed ntop (5.0-2)               <------------ At this point pacman worked, but the time wasn't right (it was ~22:17)
    [2012-09-03 04:43] Running 'pacman -Syu ntp'      <------------ From this point on pacman would time-out continually
    [2012-09-03 04:43] synchronizing package lists
    [2012-09-03 04:45] Running 'pacman -S ntp'
    [2012-09-03 04:51] Running 'pacman -Syu'
    [2012-09-03 04:51] synchronizing package lists
    [2012-09-03 04:51] Running 'pacman -Syu'
    [2012-09-03 04:51] synchronizing package lists
    [2012-09-03 06:00] Running 'pacman -Syu'
    [2012-09-03 06:00] synchronizing package lists
    [2012-09-03 06:30] Running 'pacman -Syu'
    [2012-09-03 06:30] synchronizing package lists
    $ ls -lhA /etc | grep localtime
    lrwxrwxrwx 1 root root   36 Sep  3 04:34 localtime -> /usr/share/zoneinfo/America/Montreal
    My first guess was that the localtime offset was preventing me from accessing pacman's repositories, but since it worked yesterday (when the time was already corrupt) it seems otherwize. Now I'm quite lost, especially since no one seems to report every pacman repository being down... could anyone please help me solve this problem?
    Thanks!
    Last edited by miek (2012-09-03 20:28:44)

    WonderWoofy wrote:I think you may find relevant information here.  I ahve seem many of these threads in the forums lately.  Are you dual booting w/ another operating system... in particular, one that uses localtime for the hardware clock (and there is only one that does this).
    Thanks I'll look at that entry. Still I'd like to point out that this page clearly says that the timezone is to be set in rc.conf, which is a bit confusing. I must've followed this guide to get to my current configuration. I am dual booting with multiple other systems (xubuntu, win7, puppy, crunchbang) so from what I've read win7 might be the problem, but I haven't started it since i installed arch and my time has been off from the start.
    Should I simply use NTP now that pacman is working again?
    Thanks
    Last edited by miek (2012-09-03 17:41:56)

  • Form on a SQL Query - doesn't work with SELECT * - bug or feature ?

    When I do this,
    Create Page -> Page with Component -> Form -> Form on a SQL Query -> SELECT * FROM EMP
    I do not get any items displayed and it creates a simple HTML region / page. Do we have to necessarily specify the column names ?
    Iam looking at a way to see if any addition of columns in the table does not involve IT intervention in recreating the form.
    When we try to create with Form on a SQL Query, then shouldn't it be similar to the Report where the same thing works, if I give SELECT function_returning_columns() from DUAL even then the same thing happens where it creates an ITEM called functions_returning_columns() it creates HTML region
    I asked a related question with no answer :-( in
    Dynamic Creation of Items in Runtime through Application UI

    Hi Marc,
    Thanks. I just tried something like this. Taking the EMP table example, (it doesn't matter which table), I created a region based on a Pl/Sql function returning SQL query
    ( I selected the vertical report template including nulls to display it like a form ) :
    DECLARE
    v_sql VARCHAR2(3000) ;
    mn_idx NUMBER := 1 ;
    BEGIN
    v_sql := 'SELECT ' ;
    FOR recs IN (SELECT * FROM ALL_TAB_COLUMNS WHERE TABLE_NAME = 'EMP' ORDER BY COLUMN_ID)
    LOOP
    v_sql := v_sql || 'HTMLDB_ITEM.TEXT(' || mn_idx || ',' ||
    recs.column_name || ') ' || recs.column_name || ', ' ;
    mn_idx := mn_idx + 1 ;
    END LOOP ;
    v_sql := SUBSTR(v_sql, 1, LENGTH(v_sql) -2) ;
    v_sql := v_sql || ' FROM EMP WHERE EMPNO = 7369 ORDER BY 1 ' ;
    RETURN v_sql ;
    END ;
    This allowed me to do my updates etc.., Then I created a button called 'Apply' and a process called 'update_changes' on button click and defined this:
    DECLARE
    v_sql varchar2(1000) ;
    mn_ctr NUMBER := 1 ;
    BEGIN
    v_sql := 'BEGIN UPDATE EMP SET ' ;
    FOR recs IN (select COLUMN_ID, COLUMN_NAME, DATA_TYPE
    from all_tab_columns where table_name = 'EMP'
    ORDER BY COLUMN_ID) loop
    -- Make changes here if required- this is assuming 9 columns --
    v_sql := v_sql || recs.column_name || ' = HTMLDB_APPLICATION.G_F0' || mn_ctr || '(1),' ;
    mn_ctr := mn_ctr + 1;
    end loop ;
    v_sql := substr(v_sql, 1, length(v_sql) - 1) ;
    v_sql := v_sql || ' WHERE EMPNO = 7369; END ;' ;
    execute immediate (v_sql) ;
    END ;
    Since this is for example, I didn't include code for Checksum and hardcoded empno = condition and have provision for 9 columns. I made some changes and tried saving it and I was able to do it.
    I altered the table to add a column / drop a column and when I relogin, Iam able to see the changes.
    Can you tell me if there could be any drawbacks in this approach ?.

  • WITH Clause query doesn't work in Oracle Reports.

    Hi Gurus,
    I'm using a WITH clause query and need to build a report using the same query.
    But when i'm trying to build a report, query is giving error as "WITH clause table or view doesn't exists".
    But the same query perfectly works in sql prompt.
    Oracle Reports doesn't supports WITH clause query?
    Please suggest.
    Thanks,
    Onkar

    I ran into a similar problem before and worked around it by moving the query to a pipelined function in the database as described at WITH clause unexpectedly causes ORA-00942 in Reports Builder
    Hope this helps.

  • Query doesn't work.

    I am declarin a cursor like this inside a pl\sql editor in Oracle Forms 6i:
    cursor customer_services is select * from Customers inner join Services on Customers.ServiceID=Services.ServiceID.
    And when i compile the followin error appears:
    Error 103:
    Encountered the symbol Join when expecting one of the following:
    If i remove the inner join the query works.I mean it doesn't accept joins.

    select * from Customers, Services where Customers.ServiceID(+)=Services.ServiceID That's an outer join.

  • Query doesn't work in APD, Error: column store error: fail to create scenario: [340 2048

    Hi Experts,
    We got a problem here.
    We have a query ran without any problems in RSRT. But when I try to put it as data sources(infoprovider) in APD.
    I got following error:
    column store error: fail to create scenario: [340 2048
    We are in BW731006 & ABAP731006.
    Any advise?
    Thanks in advance!
    Tengran

    Hi,
    Can you check this part in error mentioned by clicking as highlighted in red box. It will give you a correct idea about the issue ::
    Also share the detailed error with us as well.
    Best Regards,
    Arpit

  • Query doesn't work on my applicatio.

    Hi everyone,
    I have a trick query on my application, it goes something like this:
    I have a Shuttle Item, let's call it :P7_ID, with a dynamic action that everytime the shuttle change
    a page submit is triggered. Then I have this report, let's call it, employee Report, that uses the shuttle
    values to do it's query. The shuttle has this values that can be selected :1,2,3,4,5 and etc...
    The query of the report is this: Select * from employee where Id_employee in (replace(:P7_ID,':',','));
    I use the replace command to format the returning value of the shuttle as 1,2,3, for example, because
    when you select more than one value in the shuttle, it concatenates the values with a ':'.
    The query is returning "report error: ORA-01722: invalid number", probably because apex
    returns the value of the shuttle for the query as a string.
    It is possible to fix this problem, or do you guys have an better idea to do this query?
    Your help is very appreciated.
    Regards, Leandro Freitas.

    Hi,
    Here is document Working with Multiple Select List Item. It apply also to shuttle.
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldapp_item.htm#CEGDBEHF
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • SQL Query doesn't work coccrectly

    The table includes list of month and years.
    When I write
    SELECT MONTH,YEAR FROM MONTH_DETAILS ORDER BY YEAR DESC,MONTH DESC;
    it works correcty and returns
    MONTH YEAR
    7 2009
    6 2009
    5 2009
    4 2009
    3 2009
    2 2009
    1 2009
    12 2008
    11 2008
    But when I want to return only the first one(month=7 and year=2009) and change query like this
    SELECT MONTH,YEAR FROM MONTH_DETAILS WHERE ROWNUM=1 ORDER BY YEAR DESC,MONTH DESC;
    it returns
    MONTH YEAR
    2 2009
    what is the problem?
    Both month and year fields are defined as numbers.

    Your query should be
    SELECT MONTH
          ,YEAR
    FROM (
          SELECT MONTH
                ,YEAR
                ,ROWNUM row_num
            FROM MONTH_DETAILS
           WHERE ORDER BY YEAR DESC,MONTH DESC
    WHERE row_num  = 1; Regards
    Arun

  • Warranty lookup batch query doesn't work

    Hi
    I encounter a problem with warranty lookup batch query here :
    http://csp.lenovo.com/ibapp/il/WarrantyLookupBatch.jsp
    Every time i try to access this tool i get this error :
    An error occurred while processing your request.
    Reference #97.b1ef54b8.1422368820.2637a55b
    best regard

    hi
    Am i the only one who have this problem ?
    from this page :
    http://support.lenovo.com/fr/fr/warrantylookup
    I fellow the link : "Executer la requête par lots"
    Then I reach this page : http://csp.lenovo.com/ibapp/il/WarrantyLookupBatch.jsp
    with this error message :
    An error occurred while processing your request.
    Reference #97.95fa56b8.1422434472.25843ff  (Edit : => it seem that this value change)
    Can someone try this to confirm the problem from LENOVO or from me?
    best regard

Maybe you are looking for

  • Help on  Setting logical Levels  in Fact tables and on Dimension tables

    Hi all Can any body provide any blogs or any king of material on what exactly is levelling . Like after creating the Dimensional hierarchies we need to set the logical levels for the LTS of fact tabels ri8 .So what is the difference between setting l

  • Multiple iOS devices on same apple id

    I have a an iPad and two iPhones on the same apple ID. Unfortunately iMessage and face time show I am taking with myself. Is there a way to separate the communication to sub accounts or by device?  I would like to keep control of the apple ids as a c

  • How can I insert a code to switch between channels?

    I've got a HP4263A LCR meter which is being used with an ER-18 device to get multiple channel data acquisition, when I go to getting started to trigger the device, but this VI do not have an icon to change the channel how can I insert a code to switc

  • Urgent . report server.

    Hi, every think is going correct. but when i try to execute the reports demo at the URL --> http://9iashost:7778/repdemo/examples/Tools/runrepIAS.html and after sign in SSO the server give me this error !!!! for the tow links "Test a JSP Web Report .

  • ACE 4710 and DSCP marking

    I'm trying to set DSCP flags in traffic from ACE 4710 to clients. Unfortunatly it doesn't seem to work this way: class-map type http loadbalance match-any URL-AF21   2 match http url /aaa/.*   4 match http url /bbb/.* policy-map type loadbalance http