To store time only in the table and get it to the report in Apex

Hi,
I am very very new to Apex.
I get a txt file with around 57 columns(comma seperated). In apex we import this and insert it into a database table (csv into table) and then generate a reports out of this table using procedure/packages. we have different fields in this extract which gives different dates and times ( thats right dates and time comes seperate in seperate columns). I would like to insert this dates and times seperately into the table. thats is, getting a table as an exact image of the extract we receive.What data type do I choose to save just the time.
I can only see 'date' data type where I can have both date and time. But can't find anything just for time.
The main use of this time(s) saved seperately in the table is , I can then easily display it in reports.
The report the users want has got fields like transport start time, duty start time etc..
If you can't save time seperately in the database table, then can somebody suggest a way of saving it in table (in the method available)and then getting the time seperated out into the report.
Currently the users use macro on excel to get this reports and formatting a cell to 'time' is simple.
Any suggestions welcome.
Regards
Liza

Varad,
I have been trying to get this date-time issue in different areas in my application.
From csv to table its working (once I got dates in the extract adjusted to '02mar2009' format).
Now I have manipulation to do on this datetime.
Say I have datetime1, to get datetime2 I have to get datetime1 and reduce some minutes.
I got the time part into l_temp after reducing the minutes.
datetime2 :=to_date(sysdate || l_temp,'dd-mon-yyyy hh24mi');
It gives an error saying 'literals doesn't match format string' (both at sql command and PL/SQL in apex
I even tried datetime2 :=to_date(to_char(sysdate,'dd-mon-yyyy') || l_temp,'dd-mon-yyyy hh24mi');
gets the same error in apex but this works fine in sql command.
But if I put datetime2 :=to_date('02mar09' || l_temp,'dd-mon-yyyy hh24mi');
Do you know why? Can you suggest something?
Obviously, I can't hard code it. I have read the date from table1 and write it to table 2 with after this manipulation.
Any suggestion?
regards
Liza
Edited by: liza on Mar 3, 2009 5:13 PM

Similar Messages

  • My ibook is frozen on one page. How do I close the ibook and get back to the main library?

    My ibook is frozen on one page. How do I close the ibook and get back to the main library?

    This is the iPod touch forum. You seem to have an iBook problem and can't understnd your problem with that.
    I do not understand what you mean by page and what you mean by library.

  • Unable to descripe the table and unable to drop the table

    Hi,
    I have a temp table that we use like staging table to import the data in to the main table through some scheduled procedures.And that will dropped every day and will be created through the script.
    Some how while I am trying to drop the table manually got hanged, There after I could not find that table in dba_objects, dba_tables or any where.
    But Now I am unable to create that table manually(Keep on running the create command with out giving any error), Even I am not getting any error (keep on running )if I give drop/desc of table.
    Can you please any one help on this ? Is it some where got stored the table in DB or do we any option to repair the table ?
    SQL> select OWNER,OBJECT_NAME,OBJECT_TYPE,STATUS from dba_objects where OBJECT_NAME like 'TEMP%';
    no rows selected
    SQL> desc temp
    Thank in advance.

    Hi,
    if this table drops then it moved DBA_RECYCLEBIN table. and also original name of its changed automatically by oracle.
    For example :
    SQL> create table tst (col varchar2(10), row_chng_dt date);
    Table created.
    SQL> insert into tst values ('Version1', sysdate);
    1 row created.
    SQL> select * from tst ;
    COL        ROW_CHNG
    Version1   16:10:03
    If the RECYCLEBIN initialization parameter is set to ON (the default in 10g), then dropping this table will place it in the recyclebin:
    SQL> drop table tst;
    Table dropped.
    SQL> select object_name, original_name, type, can_undrop as "UND", can_purge as "PUR", droptime
      2  from recyclebin
    SQL> /
    OBJECT_NAME                    ORIGINAL_NAME TYPE  UND PUR DROPTIME
    BIN$HGnc55/7rRPgQPeM/qQoRw==$0 TST           TABLE YES YES 2013-10-08:16:10:12
    All that happened to the table when we dropped it was that it got renamed. The table data is still there and can be queried just like a normal table:
    SQL> alter session set nls_date_format='HH24:MI:SS' ;
    Session altered.
    SQL> select * from "BIN$HGnc55/7rRPgQPeM/qQoRw==$0" ;
    COL        ROW_CHNG
    Version1   16:10:03
    Since the table data is still there, it's very easy to "undrop" the table. This operation is known as a "flashback drop". The command is FLASHBACK TABLE... TO BEFORE DROP, and it simply renames the BIN$... table to its original name:
    SQL> flashback table tst to before drop;
    Flashback complete.
    SQL> select * from tst ;
    COL        ROW_CHNG
    Version1   16:10:03
    SQL> select * from recyclebin ;
    no rows selected
    It's important to know that after you've dropped a table, it has only been renamed; the table segments are still sitting there in your tablespace, unchanged, taking up space. This space still counts against your user tablespace quotas, as well as filling up the tablespace. It will not be reclaimed until you get the table out of the recyclebin. You can remove an object from the recyclebin by restoring it, or by purging it from the recyclebin.
    SQL> select object_name, original_name, type, can_undrop as "UND", can_purge as "PUR", droptime
      2  from recyclebin
    SQL> /
    OBJECT_NAME                    ORIGINAL_NAME TYPE                      UND PUR DROPTIME
    BIN$HGnc55/7rRPgQPeM/qQoRw==$0 TST           TABLE                     YES YES 2006-09-01:16:10:12
    SQL> purge table "BIN$HGnc55/7rRPgQPeM/qQoRw==$0" ;
    Table purged.
    SQL> select * from recyclebin ;
    no rows selected
    Thank you
    And check this link:
    http://www.orafaq.com/node/968
    http://docs.oracle.com/cd/B28359_01/server.111/b28310/tables011.htm
    Thank you

  • I have no sound in Firefox, but sound does work everywhere else. The mixer on Win7 is not showing a firefox volume option. Where do I go to fix the issue and get sound on the browser, can't find any menu's for this fix.

    New system, just setting up. Trouble shot hardware and everything works fine, just can't get any sound on the browser and have no obvious volume control for Firefox. All other volumes are at full

    Hey! well funny enough, After doing a Semi format (That cool function that WIN 8 has to refresh your PC) .. I could hear sounds,!!!! Yay super happy!! .... so I continued to download all my programs once again....and then today, I went to watch a movie trailler.... and I had no sound... again... but obviolusy once the Razer synapse installed, It must have something wrong with it and its not letting me hear stuff!! and I know this becasue I borrowed a headset, a Turtel Beach x12 and now I can hear stuff all the time!! YAY! .. Ive been switching between one and the other, and the Kraken dont work! Lol
    Thanks everyone for reading and helping! :D

  • HOW WE CAN DO TRIAL AND ERROR METHOD TO FIND THE TABLES AND FIELDS?

    HOW WE CAN DO TRIAL AND ERROR METHOD TO FIND THE TABLES AND FIELDS FOR ENHANCING THE AUTOMATIC SERIAL NUMBER PROFILE///

    Hi
    You can find user-exit for that. In user exit function you can use all import parameter. Set debugging in include program and you can see all import parameter.
    Regards,
    M Sajid

  • List of SQL tables and attributes used in SSRS reports

    Hi,
    I have around 450-500 reports deployed in SSRS reporting server.
    All these reports are built on SQL from multiple databases, and these databases are having unnecessary tables and attributes.
    My requirement is to clean the unused tables and attributes from the databases. For this, I need the list of SQL tables and attributes used in these 450-500 SSRS reports.
    Is there any way to get this data?
    Regards,
    RK

    Hi RK,
    According to your description, you want to get a list of the tables and attributes used in all reports.
    In your scenario, you can query the ReportServer.dbo.Catalog table to get Report name, data source name, dataset name, and query used in the dataset with query below:
    WITH XMLNAMESPACES ( DEFAULT 'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition', 'http://schemas.microsoft.com/SQLServer/reporting/reportdesigner' AS rd )
    SELECT ReportName = name
    ,DataSetName = x.value('(@Name)[1]', 'VARCHAR(250)')
    ,DataSourceName = x.value('(Query/DataSourceName)[1]','VARCHAR(250)')
    ,CommandText = x.value('(Query/CommandText)[1]','VARCHAR(250)')
    ,Fields = df.value('(@Name)[1]','VARCHAR(250)')
    ,DataField = df.value('(DataField)[1]','VARCHAR(250)')
    ,DataType = df.value('(rd:TypeName)[1]','VARCHAR(250)')
    --,ConnectionString = x.value('(ConnectionProperties/ConnectString)[1]','VARCHAR(250)')
    FROM ( SELECT C.Name,CONVERT(XML,CONVERT(VARBINARY(MAX),C.Content)) AS reportXML
    FROM ReportServer.dbo.Catalog C
    WHERE C.Content is not null
    AND C.Type = 2
    ) a
    CROSS APPLY reportXML.nodes('/Report/DataSets/DataSet') r ( x )
    CROSS APPLY x.nodes('Fields/Field') f(df)
    ORDER BY name
    For more information, please refer to this similar thread:
    Extract metadata from report server database
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • HT5137 my app is stuck on one page of the ibook I was reading. How do I close my ibook and get back to the main library?

    My app is stuck on one page of the ibook I was reading. How do I close the ibook and get back to the main library?

    A number of extensions can cause that problem, you'll need to do a little troubleshooting to find out which extension is causing that to happen for you.
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Applications are mentioned free, but when we start downloading one dollar is charged in my credit card, but only for the first time when i switch on and use it for the first time one dollar is charged. and from next application it is free. why?

    Applications are mentioned free, but when we start downloading one dollar is charged in my credit card, but only for the first time when i switch on and use it for the first time one dollar is charged. and from next application it is free. why?

    Kindly inform any email id or toll free number to contact apple for your below answer, Mr.King_Penguin
    About receiving my credit card being debited for Free App Store Application downloads,
    It should be within a few days, but it might vary a bit by bank/provider :
    I am in India, if the bank don't refunds , what to do?
    Rajagopal.pngr :-  It is only a holding charge, it is not a permanent charge. If it isn't refunded within a few days or so (and it quite possibly won't be over a weekend) then you can query the charge with Apple.

  • I live in the UAE and i dont have the face time app on my iphone 5 and it's not showing in the settings list as well only face time mentioned in the notification center , my friends in the same area are using face time normally any advice?

    i live in the UAE and i dont have the face time app on my iphone 5 and it's not showing in the settings list as well only face time mentioned in the notification center , my friends in the same area are using face time normally any advice?

    Doesn't matter.  That store is likely selling illegit iphones, brought oin from somewhere else.
    The fact remains the UAE government does not allow Facetime on iphones legitimately sold there.

  • Iv downloaded the 0845 wizard from the App Store. Registered my details and it has been working. But for some reason it won't let me log in and keep saying failed every time I try to use it. Iv deleted and re-downloaded the app and it still says the same?

    Iv downloaded the 0845 wizard from the App Store. Registered my details and it has been working. But for some reason it won't let me log in and keep saying failed every time I try to use it. Iv deleted and re-downloaded the app and it still says the same?

    I would say to start by looking on their web site... unfortunately, that appears to be dead.
    Based on the horrible ratings on the App Store (1 star for the current version), I'm not surprised it doesn't work well.

  • ADOBE: How to print a table only on uneven pages and a text on the back?

    Hi, I am looking for a clear document on how to use pagination and the Odd and Even pages.
    We need to print a table over several pages, but the table should only appear on Odd pages. The even pages should be skipped. On the even (back) pages we need to print "Terms and Conditions". Is that possible? Can it be done without scripting?
    We are using ADOBE version 8.1
    In the file properties, double sided is switched on, and version set to 8.1 and higher.
    I created two Master pages, a FrontPage with ContentArea1and a BackPage with ContentArea2.
    FrontPage is used for uneven pages, BackPage is used for the even pages. The masterpages are printed correctly (alternating properly).
    One page was created for the table, totals etc.:
    ITEMS: contains item data (table with header and footer). Place is "On Odd Page". After "Goto page BackPage", so there is always one page with the text. And if the table needs to be paginated it goes to BackPage with overflow leader "Conditions".
    What should happen is that on the front pages the item table is printed. If there are too many lines then it should continue on page number 3 then 5 etc. All the even pages should display text only.
    What actually happens is that the item table also gets printed in the content area for the Condition text...
    The best I could achieve is to decrease the contenta area of the back page. To force pagination. But still it prints one table record in the (very small) content area of the back page before paginating to the next page (front page again). If it only would not do that, it would be fine.
    Cheers,
    Edwin.

    Fixed it... After a lot of creating, deleting, playing around with pagination and the inevitable cursing...
    I have created 5 pages:
    1. FirstPage
         - Odd/Even: Odd (Front) Pages
         - Placement: First page (In page set)
    2. FrontPage (For Odd pages)
         - Odd/Even: Odd/Front Pages
         - Placement: Rest of Pages
    3. BackPage (For Even pages)
         - Odd/Even: Even (Back) Pages
         - Placement: Rest of Pages
    4. LastPage
         - Odd/Even: No Odd/Even Restrictions
         - Placement: Last page (In page set)
    5. DummyPage
         - Odd/Even: Blank pages
    The 'Terms and conditions' are located on the BackPage and LastPage (as a text).
    The table that is printed is (of course) located on a normal page (flowed subform).
    Pagination tab: Placement = Following previous, and After = "Continue filling parent". No overflow... Basically, it's all default.
    The table lines will now start on the first page and if there are more lines than can be printed on this page, it will continue in the next content area. That will be on the FrontPage.
    The trick is that each master page must have a content area (mandatory). Except for Blank pages, but these cannot be used... Blank pages would only be used once, after the first page.
    What I discovered is that you can drag a content area away from the Master page and attach it to a different master page.
    Logically, if there is no content area on a page, then data cannot be printed there. So, I created a Dummypage. On this page I dumped the content areas from the LastPage and the BackPage. As a result, content cannot be printed anymore on the back of pages. Only the standard text (a text field) is printed there. When the data from the table is overflowing, it will automatically overflow from the FirstPage to the next content area. Which is located on the FrontPages only.
    The DummyPage is NOT used anywhere.
    The result is that the records can only be printed on the content areas that exist on the First and Front pages. The back pages are now skipped.
    Duplex printing is now working correctly, and the text is printed on the back of all the pages.
    Cheers,
    Edwin.

  • As soon as I keep the iPhone (iPhone 5) on the desk the network goes off and when I swipe it then only it starts searching for the network and get it in 30 seconds.  If someone is calling me during that time it says mobile is either switched off or outsid

    As soon as I keep the iPhone (iPhone 5) on the desk the network goes off and when I swipe it then only it starts searching for the network and get it in 30 seconds.
    If someone is calling me during that time it says mobile is either switched off or outside the coverage area.
    Please help

    You may need to force it into recovery mode. See here: https://discussions.apple.com/message/17766427#17766427

  • Can anyone recommend a duplicate file finder application for OS10.6 systems?  All the apps I find on the App Store are only for 10.7 and later.  I don't know how to filter a search by operating system (if this is even possible).

    Can anyone recommend a duplicate file finder application for OS10.6 systems?  All the apps I find on the App Store are only for 10.7 and later.  I don't know how to filter a search on the App Store by operating system (if this is even possible).  I currently have a MacBook running OS10.6.8.   If you can recommend an app,  please post the URL.     Would appreciate any helpful suggestions....  
    <Email Edited By Host>

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Click the Clear Display icon in the toolbar. Then try the action that you're having trouble with again. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • The keyboard on my macbook air has stopped working. It was fine at lunch time now the up and down arrows move the page and the left and right take me into dashboard and out. The keys beep if pressed the only way to type is to use bluetooth keyboard.

    The keyboard on my macbook air has stopped working. It was fine at lunch time now the up and down arrows move the page and the left and right take me into dashboard and out. The keys beep if pressed the only way to type is to use bluetooth keyboard.please help

    "If none of the keys work, your computer may be showing a low battery alert that you can’t see.
    Connect your computer to an electric outlet or an external keyboard to see the alert".
    http://support.apple.com/kb/PH10680
    http://support.apple.com/kb/ts1381
    Reset PRAM.  http://support.apple.com/kb/PH4405
    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the method for:
    "Resetting SMC on portables with a battery you should not remove on your own".
    Best.

  • After reopening dreamweaver files, the table and its contents are not shown in design view

    I got a problem with deisgn view which has stucked me for the whole week. I've designed a webpage with dreamweaver CS4. After reopening this webpage, I got problem to see the tables and images inserted in dreamweaver (the sliced images from fireworks works well). Somehow this problem only existed in design view, but NOT is browswer view/ live view.  I thought it is the setting problem, but I tried to reopen the webpage I designed earlier... got no problem in either design or live view. I also tried starting over another new file, same problem existed (tables/images do not show in design view) I am really confused. Any thoughts?
    I've already done my research everywhere, but cannot find solution.

    Thank you so much... it works...
    I should come here earlier... wasted lots of time !! 

Maybe you are looking for