Time filter for a daily report

Hi All,
I have a report that needs to run at 5:05 am every morning for the following filter range :-
Trunc(sysdate)-1 07:00 - Trunc(sysdate) 05:00
The Date_Despatch column and Time_Despatch column exist as 2 separate columns in the database.
How can I achieve the same ? Please help !!
Thanks !!

Will the above logic work for this scenario ?No, in that case you'll need to concat the date part from date_despatch en the time part from time_despatch together using to_char+desired format, and then turn that result (which is a string now) into a date again so you can compare that date to sysdate.
Something like:
untested
where  to_date(to_char(date_despatch, 'dd-mm-yyyy')
||' '||to_char(time_despatch, 'hh24:mi:ss'), 'dd-mm-yyyy hh24:mi:ss') between trunc(sysdate)-1+7/24 and trunc(sysdate)+5/24

Similar Messages

  • Load time issue for the Crystal Reports

    Hello All
    My reports take painstakingly longer time to load and display due to the number of records it has to display (~10000 records)
    Currently i use the loop approach to provide the logon info for all the reports/subreports. This is the place where i presume it is taking time.
                     crTables = crReportDocument.Database.Tables
                    ' Loop through each table in the report
                    For Each crTable In crTables
                        crLogOnInfo = crTable.LogOnInfo
                        ' Set the connection information for the table in the report.
                        crLogOnInfo.ConnectionInfo.ServerName = DB_SERVER_NAME
                        crLogOnInfo.ConnectionInfo.DatabaseName = DB_NAME
                        crLogOnInfo.ConnectionInfo.UserID = DB_USER
                        crLogOnInfo.ConnectionInfo.Password = DB_PASSWORD
                        Log("set login info to main table " & crTable.Name & " location " & crTable.Location)
                        crTable.ApplyLogOnInfo(crLogOnInfo)
                    Next
    Can i use the following approach instead to provide the same functionality to avoid such nasty loops??
    crReportDocument.DataSourceConnections[0].SetConnection(DB_SERVER_NAME, DB_NAME, DB_USER, DB_PASSWORD);
    crReportDocument.Refresh();
    Thanks in advance
    Srivatsa
    Edited by: Srivatsa Haridas on Nov 10, 2008 11:02 AM

    You need the "loop part" - at least I'd be way more comfortable if you use it. From my experience, you have a more robust app when you loop through the tables.
    reason I asked about subreports; if a subreport is inthe detail section and you have a 1000 records in the detail, and the subreport runs per record, you are essentially running 1000 + 1 reports. Obviously this will take a significant amount of time. As it is even 10 to 15 subreports is quite significant as you are running the subreports plus the main report... Possibly the best way for you to compare the speed is not run the report in a CR designer.(e.g.; what I am asking is; OK, the report is slow. Compared to what?) As you are using CR 10.2, I'd recommend downloading an eval of either CR XI r2 or CR 2008 and see how the reports perform there. If the performance in the designer is slow, it will not get any faster at runtime.
    The evals can be downloaded from here:
    http://www.businessobjects.com/products/reporting/crystalreports/eval.asp
    Also will the below line work for my subreports too ?
    crReportDocument.DataSourceConnections(0).SetConnection(DB_SERVER_NAME, DB_NAME, DB_USER, DB_PASSWORD)
    - it will, as long as the subreports are using the same connection type as your main report. However I really would not get hung up on loop v.s. no loop. As a matter of fact, this subreport database logon uses loop s as well and it is the recommended way of connecting the subreports:
    'Log on subreport
    crSubreportDocument = crReportDocument.OpenSubreport("Ron")
    crConnectionInfo = New ConnectionInfo
    With crConnectionInfo
    .ServerName = "Rcon1"
    .DatabaseName = "Northwind"
    .UserID = "tech"
    .Password = "tech"
    End With
    crDatabase = crSubreportDocument.Database
    crTables = crDatabase.Tables
    For Each crTable In crTables
    crTableLogOnInfo = crTable.LogOnInfo
    crTableLogOnInfo.ConnectionInfo = crConnectionInfo
    crTable.ApplyLogOnInfo(crTableLogOnInfo)
    Next
    Ludek
    Regards

  • No data for daily report sent from my PC

    Since a clean install of Windows 7 Ultimate on my PC, no data is being sent to the Cisco server from my PC. Previously I was running the RC version of Windows 7 Ultimate on this PC, with the same router and configuration, and no problems in being able to access a full daily report. I was using Outpost Security Suite Pro, which allowed the data to be sent, but am now using the native Windows  firewall, configured to allow NM outward communications.
    I asked Support to assist with configuring the Windows  firewall, but they were unable to assist, as they did not know how to do this- I would have thought that as NM is Windows 7-compatible, this information would have been available to them.
    My netbook is running Windows 7 Ultimate RC, with OUtpost Security Suite Pro, and does send the data for the daily report, when using my home wireless network and the same router, so I suspect that the Windows 7 firewall is causing the problem with the PC.
    Can anyone advise me on the specifics of configuring the Windows 7 firewall to allow NM to send the necessary data so that I can get the daily report?
    Running Network Magic version -5.5..9195.0-Pure. ADSL-2 connection; Netcomm Router NB6Plus4W;PC connection to router wired; PCI Adaptor card; VIPRE Antivirus and Antispware (disabling this made no difference)

    ambergris77 wrote:
    Since a clean install of Windows 7 Ultimate on my PC, no data is being sent to the Cisco server from my PC. Previously I was running the RC version of Windows 7 Ultimate on this PC, with the same router and configuration, and no problems in being able to access a full daily report. I was using Outpost Security Suite Pro, which allowed the data to be sent, but am now using the native Windows  firewall, configured to allow NM outward communications.
    I asked Support to assist with configuring the Windows  firewall, but they were unable to assist, as they did not know how to do this- I would have thought that as NM is Windows 7-compatible, this information would have been available to them.
    My netbook is running Windows 7 Ultimate RC, with OUtpost Security Suite Pro, and does send the data for the daily report, when using my home wireless network and the same router, so I suspect that the Windows 7 firewall is causing the problem with the PC.
    Can anyone advise me on the specifics of configuring the Windows 7 firewall to allow NM to send the necessary data so that I can get the daily report?
    Running Network Magic version -5.5..9195.0-Pure. ADSL-2 connection; Netcomm Router NB6Plus4W;PC connection to router wired; PCI Adaptor card; VIPRE Antivirus and Antispware (disabling this made no difference)
    Hi ambergris77,
    First only one Software can be turned on within the operating system, otherwise you have problems. Also Network Magic needs Full Access, not just Outward Access.
    thecreator - Running Network Magic version -5.5..9195.0-Pure0 on Windows XP Home Edition SP 3
    Running Network Magic version -5.5.9195.0-Pure0 on Wireless Computer with McAfee Personal Firewall Build 11.5.131 Wireless Computer has D-Link DWA-552 connecting to D-Link DIR-655 A3 Router.

  • Correction for Daily Report Log Web Service

    In the August 29th iTunes U Administrator email, there was a mistake in the example for the Daily Report Log Web Service.
    The example showed:
    http://deimos.apple.com/WebObjects/Core.woa/API/GetDailyReportLogs/example.edu?S tartDate=2007-07-01&EndDate=2007-07-17&destination=example.edu&username=ADMIN&ac cesskeys=Administrator@urn:mace:itunesu.com:sites:example.edu&emailaddress=foo@b ar.com&displayname=test&expiration=1186086577&signature=4443ac48a8ae1a0c50dbfb35 f201b6d0db14b16d
    There are extraneous form value pairs in the above example. The POST form values required to get a daily report are:
    StartDate (EndDate is optional) - format YYYY-MM-DD
    credentials
    identity
    signature
    An example of a correct request:
    http://deimos.apple.com/WebObjects/Core.woa/API/GetDailyReportLogs/example.edu?S tartDate=2007-09-12&EndDate=2007-09-13&credentials=Administrator@urn:mace:itunes u.com:sites:example.edu&identity=%22JaneDoe%22+%3Cjdoe%40example.edu%3E+%28jdoe%29%5B42%5D&signature=38bda70d9aa6975ae8756754034feb6e3c794aca4b21665f6dc85d2ed42d4 f6b

    Currently displaying audit log reports in REST or API is not supported by Microsoft. SharePoint online in Office 365 just supports saving an audit log report as a Microsoft Excel 2012 Preview workbook.
    You can refer the following post :
    http://community.office365.com/en-us/f/172/t/164047.aspx

  • As a part of my Daily Reporting Activity; i have to send 35 SMS everyday. Can someone suggest me which software is suitable for my usage as it's tedious job to forward the same sms report 35 times. I am using  IPhone 3GS -32 GB. Sincerly req your reply

    As a part of my Daily Reporting Activity; i have to send 35 SMS everyday. Can someone suggest me which software is suitable for my usage as it's tedious job to forward the same sms report 35 times. I am using  IPhone 3GS -32 GB. I am using service of Vodafone, Mumbai. & when i first time sent 35 SMS (having habit of Nokia to send group SMS at the click of one button) my IPhone sent 35 MMS.

    Found something for you that might be useful:
    http://itunes.apple.com/us/app/igroup-sms/id377378452?mt=8

  • Does anyone have a daily report for system status?

    Basically, I am looking for an automated daily report to give me the status of jobs and workflows.  I am having a hard time finding the talbes and relationships for all the jobs, workflows, and tasks in the CMDB.
    Once I know where to find all the pieces, I can take it from there.

    Sounds like a job for OpsMgr. 
    - Get on the floor, do that dinosaur

  • Daily Report for e-mail alerts sent to via subscription

    Hi All,
    Good Day!!!,
    We have multiple subscription in SCOM 2012 SP1.
    we need to generate a daily report stating that this many Alert sent to this subscriber group and this many are closed .
    Ex: We have [email protected] is the subscriber and for this subscriber we have created 3 subscription for send notifications.
    In a native mode we can able to export alerts details by group or objects. but we need a report based on subscription.
    Thanks in advance.
    Thanks & Regards, Kesa_Kara

    Hi,
    Please refer to the links below:
    OpsMgr 2012:  Configure notifications
    http://blogs.technet.com/b/kevinholman/archive/2012/04/28/opsmgr-2012-configure-notifications.aspx
    Best Practices: E-mail Notification Subscriptions
    http://www.opsconfig.com/?p=574
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How to create @prompt filter at universe level for my Webi reports

    Dear all,
    I am using BO XI 3.1 SP3 with SAP BW 7.0.
    I have created an open[big] query based on a multiprovider for my OLAP universe.
    OBJECTIVE: to create LOV prompts for Calender year, for my webi reports, which takes 2010 as input then offsets the input year and then shows Gross sales for the prompt year [2010], 2009 & 2008.
    ISSUE: if 2010 is selected in webi prompt filter, then it doesn't display any data for any other year, lets say gross sales for 2009.
    ALTERNATIVE: i tried to create a prompt filter in the universe with this syntax,
    <FILTER KEY="@Select(Calendar year\Calendar year).[TECH_NAME]"><CONDITION OPERATORCONDITION="InList"><CONSTANT TECH_NAME="@Prompt('Enter year','N',,Mono,Free,Not_Persistent)"/></CONDITION></FILTER>
    it worked fine. but i also want to create a measure or dimension which subtracts 1 from the above filter and return a result with a previous year.
    e.g
    PROMPT: 2010
    PROMPT-1: 2009
    Universe structure
    [TIME]                         class
      [Calender year]        class
         [Calender year]     dimension  ( type:string)
    Please guide me with correct procedure and syntax.

    masood44 ,
    I think you should just prompt for year and capture and use the selection at the webi report  level.
    say you have calendar year(convert it into numeric) prompt at webi level. say user selects 2010 capture it in a variable var1:userresponse('enter year'). then create a variABLE (var2)  with formula :
    if(isPromptAnswered('enter year')='yes';([year] where year inlist(var1;var1-1;var1-2);null)
    build your report with var2 and gross income
    Thanks,
    Karthik
    Edited by: kbharadwaj79 on Jun 2, 2011 5:34 PM

  • LMS 4.2.4 - Creating daily report for checking mac-adress list (IP hone) existing on the network

    Hi,
    we would like to  create a daily report for checking  (by user-tracking function) mac-address list on the network.
    I try to use “report designer” on “report” dashboard without any success. Could you help us to provide or create a method for applying a report job every day for checking our mac-address list
      Thanks in advance.

    you can do the following
    1. -create a quick report  {Reports > Inventory > User Tracking > Quick Report}
    2.export the last report which I suggested and filter the MAC address you are interested in
    3. you can create a Custom report  {Reports > Report Designer > User Tracking > Custom Reports } as per your need.
    Thanks-
    Afroz
    *** Ratings Encourages Contributors ****

  • How to create a daily report for sales order

    hi
    how to create a daily report for sales order. what fields it must consists of. what are the tables it need?

    Hi
    You have to use the sales order tables VBAK,VBAP and VBEP
    So keep date field on selection screen
    and treat this date as Order creation data audat field in VBAK.
    based on this fetch the data from VBAK and VBAP  with the following fields like
    VBELN, KUNNR,NETWR,POSNR, MATNR,ARKTX,KWMENG,WAERS  etc and display in the report
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Daily report for user sessions in oracle10g database

    I would like to genarate the daily report for user sessions in oracle10g database
    daily report of how many of sessions present in oracle database for each user

    Thanks for link ( I know you always post the oracle document link here)
    But I am expecting scripts( someting like logon trigger and logg off trigger) to genarate the user session report.

  • I get no audio for the Daily Show and Colbert Report

    I am using the most recent Adobe Flash Player 11.4.402.265 with Windows 7, 64-bit, which works for all videos except those for The Daily Show and the Colbert Report, which have no audio.
    The Daily Show and Colbert Report play in Google Chrome, but not in Firefox.

    Sometimes it's jest THEM! But be sure to check PLUGINS. The Shockwave and Java applications may need 'PLUGIN UPDATE' for newer versions. Suggest a check for any outdated PLUGIN UPDATE found from the Mozilla Firefox Toolbar 'Help' Menu > 'Firefox Help' > [lower right margin displays link to more info to review and 'UPDATE PLUGIN's!

  • Interactive report filter for date not working correctly

    Hi,
    I am having an interactive report. I tried to give a filter for a column(created_on) as created on>29-oct-2009 17:17
    but i am getting the row containing created on as *29-oct-2009 17:17* in the report result. How can i correct this
    problem
    Thanks,
    TJ

    Hi,
    I think it is because seconds.
    So it is 29-oct-2009 17:17:00 and your record is e.g. 29-oct-2009 17:17:02
    br, Jari
    Edit
    You can use trunc function in your select so that it round date to minutes
    TRUNC(created_on,'MI') AS created_onBr, Jari
    Edited by: jarola on Nov 5, 2009 3:02 PM

  • How to show the processing time taken for a BPEL process in BAM report.

    Hi All,
    I have the data as below in the Data object. I would like to show the time taken for each order to complete in the report.
    instance Id     order Id     product Name     product Code     price     status     instance Time      updaterName
    1360010     ord004     Guitar     prod003     2000     requested     9/22/2008 12:12:11 PM     Invoke_InsertSalesOrder
    1360010     ord004     Guitar     prod003     2000     Approved     9/22/2008 12:15:11 PM     Invoke_OrderStatusUpdate
    This data comes from simple BPEL process where sensors are configured at the start and end of BPEL process. Also have a human task activity in between to create the time difference.
    In Enterprise link design studio, I tried to calculate the time difference using expression calculator and store it as calculated field. But that doesn't seems to work because when I execute the plan, second sensor data reaches only after human approval whereas first sensor data would be waiting for calculation and ultimately nothing comes into data object.
    How and where the calculation be done to show the processing time in the report. Please someone throw some light on this.
    Regards
    Jude.
    Edited by: user600726 on Sep 30, 2008 1:30 AM

    I would suggest modifying your data object so that the data can all be in a single row and use the sensor at the end of the process to upsert (update) the row created by the sensor at the start of the process. The time difference between two fields in the same row is then an easy calculation on a BAM report -- No EL plan should be needed.

  • Can somebody give some real time questions for alv report

    hi guru
    can somebody give some real time questions for alv report.
    answers also.
    regards
    subhasis.

    hi,
    The ALV is a set of function modules and classes and their methods which are added to program code. Developers can use the functionality of the ALV in creating new reports,  saving time which might otherwise have been spent on report enhancement
    The common features of report are column    alignment, sorting, filtering, subtotals, totals etc. <b>To implement these, a lot of coding and logic is to be put. To avoid that we can use a concept called ABAP List Viewer (ALV).</b>
    Using ALV, we can have three types of reports:
       1. Simple Report
       2. Block Report
       3. Hierarchical Sequential Report
    <b>Reward useful points</b>
    Siva

Maybe you are looking for

  • Can not copy data within a realtime cube due to combination issues

    Hello all, I want to use a planning function on a realtime cube in order to copy data from from Co_area CO1 into Co_Area CO2. The Co_Are and the profit center are part of the realtime cube, but not the nav attribute of the profit center. When I test/

  • JVM Using more than -Mx Memmory and RSS

    Hi All, Used -Xms256m -Xmx512m parameters for weblogic Admin server 10.0.1.0, 9.2.2, but the server is using more than the value specified and it is not happening for weblogic version 10.3, This was found while cross checking with ps and prstat. and

  • To activate

    i have an iphone 4s but when i try to activate this phone (your iphon could not be activated because the activtion server is tem* my imeiis  012940005535516

  • Cannnot Print PDF documents

    Since upgrading to Mac O SX Lion 10.7.2, I can no longer print a PDF documents (not from an e-mail attachment or from a file folder).  I get the spinning beachball and must force quit preview (not responding).  I have uninstalled and reinstalled my p

  • Community forums on apple mobile devices

    Hi, The new forums do not seem to be very accessible from ipad/iphone interfaces. Trying to drill into details of questions/answers does not seem to work at all - you just get the top level pages displayed again - can the forum be enhanced to support