Problem with order by Date

Apex 3.2

I have a report based on a collection, but the ranking of start_date and end_date does not work.

Select

C002 start_date,

C003 end_date,

-start_date to_char (to_date (c002, 'dd.mm.yyyy'), 'dd.mm.yyyy'),

-End_date to_char (to_date (c003, 'dd.mm.yyyy'), 'dd.mm.yyyy'),

C004 conversion_factor,

SI.apskey SMI,

SI.longdescr Description

to apex_collections, if udm_si

where si.siid = c001

and collection_name = "SMI_INSERT_COL."

I tried

C002 start_date,

C003 end_date

and put exact in the formatting of column

I tried

start_date to_char (to_date (c002, 'dd.mm.yyyy'), 'dd.mm.yyyy'),

-End_date to_char (to_date (c003, 'dd.mm.yyyy'), 'dd.mm.yyyy'),

with no formatting of column

I also tried

start_date to_char ("c002, ' dd.mm.yyyy")

but I get an error

error report:

ORA-01722: invalid number

Gus

Some previous threads please refer to "-" the origin of this. Try to split the "-"s: ".

' ': apex_item.display_and_save (2, c002)

Tags: Database

Similar Questions

  • Problem with order submit data record for Reporting ATG

    Hi, r. j. Nunes

    I am facing problems with the connection to present newspapers for ATG of the report. The logs for RegistrationFileLogger, SiteVisitFileLogger, UserFileLogger, SegmentFileLogger were successfully getting generated but unable to see the logs for OrderFileLogger during shipment of the order.

    I understand that the/atg/reporting/datacollection/trade/SubmitOrderEventListener of the listener must be notified so that the listeners of corresponding data is called in the order:

    SubmitOrderEventListener-> OrderLogEntryQueueSink-> OrderLogEntryGenerator-> OrderFileLogger

    and newspapers would be written.

    But I'm not able to determine which component notifies the SubmitOrderEventListener by submitting an order.


    Is - this SendFulfillmentMessage component? But SendFulfillmentMessage sends the message to the localdms topic: / local/realization/LocalSubmitOrder on the port of OrderSubmitPort which as component SubmitOrderEventListener listen the subject localdms: / local/realization/LocalSubmitOrder on the DEFAULT port?


    Could someone please clarify.

    Thank you

    Saud

    Hello

    Pipelinelink = "sendFulfillmentMessage" name has been commented to our commercepipeline.xml that we did not use OOTB Presse. Once I removed the comment, sent messages and newspapers to submit order got generated.

    Thank you

    Saud

  • Problem with order by clause

    Hai all,

    I have problem with order by clause,

    My query is

    "Select number from table1 order number CSA.

    and the output as

    1
    10
    12
    13
    15
    17
    19
    2
    20
    21
    22
    .
    ........

    But if we give the order that it should display below the only good?

    1
    2
    10
    12
    13
    15
    17
    19
    20
    21
    22 ........

    Help me please why it is not displayed as she. and how to make the statement to display as in the second case. Thanks in advance.

    Kind regards
    Uraja

    In your table, the column is VARCHAR2 data type.

    It is a string, even if it is to store numeric values, it will get condemn as strings

    Try the below

    select your_column from table1 order by to_number(your_column) asc 
    

    Published by: JAC on November 19, 2012 16:35

  • Problem with the CLOB data type.

    Greetings,

    I am facing a problem with the CLOB data type. I know that the CLOB data type is 4 GB (I use Oracle 9i). But in the Pl Sql procedure, I can only store 34305 size for a CLOB variable character data.

    This is the test script that I am trying to run.

    DECLARE
    -Local variables here*.
    I have INTEGER;
    C_1 CLOB.
    BEGIN
    FOR Rec IN (SELECT
    *
    ACCORDING TO THE TABLE)
    LOOP
    C_1: = c_1 | Rec.Clo_1;
    END LOOP;
    EXCEPTION
    WHILE OTHERS THEN
    Dbms_Output.put_line (SQLERRM);
    END;


    Here variable C_1 range value 34305 good character regardless of type CLOB. Now the above script fails if query my buckle - huge number of return values. It is throwing the exception "error during transfer of files ORA-06502: PL/SQL: digital error or value."

    He would be grateful if someone can help me on this.

    Thank you.

    You are probably better off using DBMS_LOB.append, instead of the concatenation of varchar2 (|).

    And... take off your when-other Manager exceptions, please...

  • Problem with order of clip

    This is a question and request for suggestions.
    I'm very new to using first Pro CS4 using VideoStudio for a long time. But due to a mutitude of bug and constant crashes, I just let fall on her and made the transition to the first.

    I begin to develop projects of AVCHD clips. My camera creates each scene as a file. With VideoStudio I had to use TSmuxeR to merge them into a single clip, otherwise it would just fall more take hours (literally) to start because she wanted to check each hook. When you have hunderds in a project it is a problem.

    Prime Minister handles this much better doing things in the background, but I had some problems with clips are reordered. Maybe my approach is all wrong and I'm open to suggestions.

    For example, I break the clips in segments that relate to a topic and put in a bin. So, in a project, I would have 700 clips into 10 bins with 50 to 100 clips in each location. And I might have a dozen projects which constitute a 'production '. But when I import clips (IE windows) the last clip always happens to be the first imported. It is a common windows problem which I do not know how to move. In any case, when it gets imported I then rearrange clips. Clips from your device name is a time code date as 20100514082312.mts which is unique and you can order by date very easily, but it is really hard to read.

    The problem that I seem to have if I take a bin (that' it'sbeen sort) and drag it to the timeline, the last clip gets always inserted first. I guess that the Prime Minister is to remember the order that the clips had import and not how I trie in the bins.

    Because I tend to move things around a lot, it is a concern to keep deting first clips and then put on the end of the sequence, etc..

    Is there a way to get around this? As do enforcement in the stick of bins, or order the clips by name in the time line or maybe bring imported in the correct order in the first place?

    Or is the way I'm doing this all wrong. I admit it's hard to give up the way I did things in VideoStudio which could impose some bad habits.

    There is something else you can try - select the media and to automate for the timeline. You can tell it to not add transitions and do not overlap, and there are options to overlay the clips in the order of sorting or the order of selection. Try to select clips in the order of your choice.

    If there is something else in the trash you want, like a sequence, you may need to select all, uncheck what you want and then automate.

  • Problems with registration of data in a FPGA project.

    I have problems trying to save data that I receive on my CompactRIO. I can get the data off of it, trace and display, but I can't seem to save to a file with a recording of VI. Try to solve this problem, I did a VI outside our project that runs the simple task of saving a table provided in a .csv file. Outside the project, this works fine, but when I add this VI project is when I get problems. If I provide a path outside the project, he invites me to the path, in the project, this guest never appears, but I get an error indicating that the user has canceled the operation. I found that this error is the same as you would get if you closed the guest to use the X rather than hitting the Cancel button. If I provide a path in VI, I get no error, but nothing happens and nothing is recorded. Another interesting thing happens when I move this file to the project. When I go to run it, I get a prompt asking you to save Message String.vi Format because it has unsaved changes, and when I ask him to list the unsaved changes, he said that the VI has been recompiled. When I take the VI on the project and run it, it says he has recompiled again and must still be saved. It's really frustrating when such a simple task will not work for any help that you could give is appreciated.

    Will be

    He will never be able to save the file on your PC, only on the controller it self.

    Then use FTP to transfer the files to your PC.

    Or you could do a host PC VI that gets the data from the controller, and then stores the data on the PC.

    To transfer the data, you can use TCP or shared variables.

  • problem with the backup data in text file

    Hello

    The problem I am facing wihile, saving the data in the text file is that everytime when I'm slecting the path of the façade, data that are recorded are added with the previous data, not only in the new text, the new data set is saved but also, is there any previuos run for the program , the corresponding data is also present in this text file.

    However, when I change the same ''(file path) to 'constant' in the control block diagram, and then add the path of the file, it doesn't have this problem. Basically, changing the "file path" constant in the diagram of control block (so that it is displayed in the front panel) is at the origin of the problem.

    Help, please!

    Thank you

    Your shift on the loop Register For is not initialized. It will keep the value of the string since the last time that he performed. That initialize and it should solve your problem.

  • Problem with registration of data in the txt file

    Hello

    I have 2009 Labview, Labview real-time 2009 and cRIO 3.3.0. I also NEITHER cRIO-9024 more cRIO-9112 chassis and modules.

    I would like to save the data measured modules in the txt files, but I want to do in a period of time to time desire. For example, I want to save data of measurements of 60 seconds and repeat every one hour. I of the project (in the file attachment vi) and normally it works fine but I noticed that the recording of the data is not correct. I mean it seams to save what was in the memory before. That's the problem with Windows XP I have check with another computer with Vista and it seems to be ok. It seems that on XP the buffer (refnum?)  is not clear and it retains the previous values.

    Can someone explain to me why it happened and how I can obey Windows XP? Or maybe there are techniques to clear the memory buffer/refnum for rescue?

    Thanks for any help.

    Kind regards

    Kamil


  • BlackBerry Q5 big problem with BB Q5 data - IP ADDRESS REJECTED. :( :(

    Hi all!! I have a blackberry Q5, the version of the 10.2.1.2102 software... It is the best blackberry smartphone I've ever had! but since one week, I have a very big problem with my BB Q5: if I want to surf the internet, with data from my phone (not in WIFI mode but with the data of the phone (4G, 3 g +)), I can not go on any website, but the only thing I watch is a white screen with this message "ERROR HTTP 403.6 ": the IP address of the client has been rejected"...! What can I do? I'm really desperate! I called my provider (SFR), they told me that my connection is ok, I'm not a problem with them, and this is my phone... HELP ME PLEASE!  

    Hello!!! Just to say that finally, after several attempts, I have solved my problem: there was a problem with my service provider SFR with my phone! I regret bringing this up on the forum, but when you call the customer service you think they know their work... but fortunately for us if we have the blackberry is because we are not so ignorant on the connections, network and telephone line! : D have a nice day blackberry users!   

  • Problem with sharing of data specific to the application via BBM 10.2

    Hello - I am having a problem of data sharing applications with BBM 10.2-specific. I take the advice of some comments here, and it seems to work on 10.1. I can receive the file on 10.2, but when I try to share on the same device that I get this:

    InvocationWrapper::onQueryFinished: no matching result from Menu Service for query
       mimeType=""
       uri=QUrl("file:///accounts/1000/shared/misc/My App Data.myapp")
       data= ""
       metadata= QMap()
       perimeter= 0
       action= "bb.action.SHARE"
       target= "sys.bbm.sharehandler"
       invokerIncluded= false
    InvocationPrivate::onQueryResolved: no result matching query, no armed signal sent.
    

    It is the call that I use, which works on 10.1 but not 10.2:

    Invocation {
       id: invokeBBM
       query {
          InvokeQuery {
             id: invokeBBMQuery
             uri: "file:///accounts/1000/shared/misc/My App Data.myapp"
             invokeTargetId: "sys.bbm.sharehandler"
             invokeActionId: "bb.action.SHARE"
          }
       }
    }
    

    I also tried it with a "text/plain" MIME type and a few other variations, same result. If something has changed in point 10.2?

    (And while I'm asking, any reason why I can't use the data instead of a file uri? I need to convert the data in JSON, save the file, share the file, send, receive, save the file on the receiver, then open it, read it, and convert it back. Seems a little roundabout, if I could share the JSON data. "(And this is the only reason that my application requires permissions of shared files)."

    Thank you!

    It is a problem with the current version of BlackBerry Dev 10.2 Alpha.  You can call C++ BBM, but citing QML does not work.

  • Problem with order?

    I had some problems with a po recipes.
    I create a purchase order, but I can´t see it in some organizations. the ship of the organization is the main element of the organization.

    Sorry, I'm not a functional person so I can't offer much help.

    You have consulted the documentation? -http://docs.oracle.com/cd/B53825_08/current/html/doclist.html#Purchasing_p

    If you still have the same problem, then you can save a SR.

    Thank you
    Hussein

  • Problem with Order by

    Hello everyone

    I am an Oracle Developer, and I have a problem with an order by clause.

    I have a column varchar2 with numeric values and alfanumeric
    For example, I have the following values in the column that I applied the order of: 1,2,3, A, B, C

    When I do next
    Select column_ord From my_table Order by ASC column_ord;
    The result is:
    A, B, C, 1, 2, 3

    With the following:
    Select column_ord From my_table Order by column_ord desc;
    The result is:
    3,2,1, C, B, A

    I Don t udestand this result, because I think that the result should be as follows:
    Select column_ord From my_table Order by ASC column_ord;
    The result is:
    1,2,3, A, B, C


    I work with Oralce 10 g ver: 10.2.0.1. and I tried this in Toad and sql * more

    Appreciate the help, greetings
    Miguel att.

    Published by: Miguel Balderas on 30/03/2011-14:04

    Hi Miguel,.

    Check your session nls_sort setting in this selection: SELECT * FROM v$ nls_parameters;

    For your desirable result, try this: ALTER SESSION SET NLS_SORT = "BINARY";

    Santiago González

  • Problem with "Query" parameter data pump

    Hello guys,.

    My information in the table are less than
    Name of the schema: CT_COM
    Table name: order_session
    The current size of the table = ~ 75
    Total number of rows in the table: 3847904-> select count (*) from CT_COM.order_session;
    Total number of lines with condition: 734042 (orders over 1 January 08)-> select count (*) from CT_COM.order_session where updated_date < = 31 December 07 ';


    Now, I'm taking an export in which I want to capture all the orders that are placed before 1 January 08. Here's the query I use on a DB of RHEL server. I 10.2.0.3 db on this server.

    expdp "" / as sysdba "" logfile = FULL_TABLE:order_session_upto_dec_31_07.log query = CT_COM.order_session dumpfile=FULL_TABLE:order_session_upto_dec_31_07_%U.dmp:------"" where updated_date------<------= \'31-DEC-07\'\ ' filesize = 2 G job_name = order_session_upto_dec_31_07 "

    Export: Release 10.2.0.3.0 - Production on Wednesday, August 4, 2010 16:11

    Copyright (c) 2003, 2005, Oracle. All rights reserved.

    Connected to: Oracle Database 10g Release 10.2.0.3.0 - Production
    Departure 'SYS '. "' ORDER_SESSION_UPTO_DEC_31_07 ': ' / * AS SYSDBA' dumpfile=FULL_TABLE:order_session_upto_dec_31_07_%U.dmp logfile = FULL_TABLE:order_session_upto_dec_31_07.log query = CT_COM.order_session:" "where updated_date < = 31 December 07 ' ' filesize = 2 G job_name = order_session_upto_dec_31_07"
    Current estimation using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Table main 'SYS '. "' ORDER_SESSION_UPTO_DEC_31_07 ' properly load/unloaded
    ******************************************************************************
    Empty the files together for SYS. ORDER_SESSION_UPTO_DEC_31_07 is:
    /Backup/export/tables/order_session_upto_dec_31_07_01.dmp
    Job 'SYS '. "" ORDER_SESSION_UPTO_DEC_31_07 "carried out at 16:11:31

    Query runs fine without error. However if you look at the output above it exports all lines. I keep seeing Total estimation using BLOCKS method: 0 KB. -What did I do wrong?

    I even tried the same scenerio with table scott.emp and I see the same behavior. Did I miss something in my where clause or is this a bug?

    Expdp $ Linux-223: (bonus) "" / as sysdba "" dumpfile=full_table:a%U.dmp logfile = FULL_TABLE:a.log query = scott.emp:------"' where sal------> 2000------' filesize = 2 G job_name = b.job"

    Export: Release 10.2.0.4.0 - Production on Wednesday, August 4, 2010 15:11:31

    Copyright (c) 2003, 2007, Oracle. All rights reserved.

    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
    With partitioning, OLAP, Data Mining and Real Application Testing options
    Departure 'SYS '. "' B ': ' / * AS SYSDBA' dumpfile=full_table:a%U.dmp logfile = FULL_TABLE:a.log query = scott.emp:" where sal > 2000 "filesize = 2 G job_name = b.job
    Current estimation using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Table main 'SYS '. "' B ' properly load/unloaded
    ******************************************************************************
    Empty the files together for SYS. B is:
    /tmp/A01.dmp
    Job 'SYS '. "' B ' managed to 15:12:46


    Any help will be appreciated.


    -MM

    Published by: UserMM on August 4, 2010 14:48

    It has nothing to do with your request, it has to do with the rest of your order expdp. You specify a schema on the table, or you specified an export scheme so default datapump is the schema to run the task. As you export the work as "sys" it will only export objects belonged to sys. Since datapump does not export the sys objects, nothing get exported. You want to add

    schemas = CT_COM

    or

    tables = CT_COM.order_session

    Thank you

    Dean

  • problem with order 40470 themes from adobe for muse

    Hi, I have a problem with a template I received topic of adobe, nr.40470. the problem is that when I preview the page in the browser, the text is on the right side of the chassis. I deleted and reinstalled the model several times but still the same error

    Hi A and C,

    Try to increase the size of the TextBox for a better analysis and share a link to your site.

    Kind regards

    Akshay

  • Problem with a field date

    Hello


    I have a pl/sql page, which is the result of a statement select under certain conditions.

    One of the conditions is like:

    AND between MyColumn (: P1_MyDateItem - 7,: P1_MyDateItem)

    but as soon as I include an addition or a subtraction (: P1_datefield - 7), I get ORA-06550: line 18, column 28: PL/SQL: ORA-00932: inconsistent data types: expected DATE got the NUMBER

    How can I solve this error?


    In addition,
    I'm moving the date field to a second page in a hidden field. In a similar scenario as described above, how can I manipulate the date by using the hidden field. That is to say. in my tests, I think that it converts a little the 'date' to 'char 'format? '. can I also make the same 'Date-7' manipulation but this time using a hidden field to the place?

    Thank you

    FabioBui wrote:
    but as soon as I include an addition or a subtraction (: P1_datefield - 7), I get ORA-06550: line 18, column 28: PL/SQL: ORA-00932: inconsistent data types: expected DATE got the NUMBER

    How can I solve this error?

    Try to convert it first to a date

    to_date(:P1_datefield, )-7
    

    I'm moving the date field to a second page in a hidden field. In a similar scenario as described above, how can I manipulate the date by using the hidden field. That is to say. in my tests, I think that it converts a little the 'date' to 'char 'format? '. can I also make the same 'Date-7' manipulation but this time using a hidden field to the place?

    Yes, if that's what you want to do. A date field is just a text area, made more pleasant with the jQuery date picker.

    If date picker:

    on an item hidden

    only difference being the type of display.

    Don't forget to convert a date in your pl/sql code.

Maybe you are looking for