Record counts by hour,day - report

Record count, grouped by day, hour
Intended output:
DATE | 00:00 | 01:00 | 02:00 | .....
07-21-2011 | 100 | 200 | 300
07-22-2011 | 500 | 0 | 200
The below returns a version, but it doesn't account for when there are no records for a given hour.
I've created a successful script, but it involves too many subqueries, and is an abmonination
Any help would be awesome!
(any table with a date field will work)
with
hrly_ttls as
select to_char(sdate,'YYYY-MM-DD') as dte, to_char(sdate,'HH24') as hr,
count(*) as cnt from df_audit_batches
group by to_char(sdate,'YYYY-MM-DD'),to_char(sdate,'HH24')
select dte,
max(ltrim(sys_connect_by_path(cnt,' '),' ')) keep
(dense_rank last order by level) as Ttls
from (
select hrly_ttls.*, row_number() over(partition by dte order by hr) as rn
from hrly_ttls
start with rn = 1
connect by prior dte = dte
and prior rn = rn - 1
group by dte;
==> returns
DTE TTLS
2011-07-01     2 1 1 1
2011-07-02     1 2 1 1

Hi,
Welcome to the forum!
Whenever you post a question, please include CREATE TABLE and INSERT statements for some sample data. That way, people who want to help you can re-create the problem and test their ideas. Also post the results you want from that data. Simplify if possible. For example, if you need a query for all 24 hours in a day, you can post a question that only has data and results for maybe 3 hours. Adapting the result should be easy.
Always say which version of oracle you're using.
Since this is your first post, I'll post some sample data for you:
CREATE TABLE     df_audit_branches
(     sdate     DATE
INSERT INTO df_audit_branches (sdate) VALUES (TO_DATE ('21-Jul-2011 00:00', 'DD-Mon-YYYY HH24:MI'));
INSERT INTO df_audit_branches (sdate) VALUES (TO_DATE ('21-Jul-2011 00:01', 'DD-Mon-YYYY HH24:MI'));
INSERT INTO df_audit_branches (sdate) VALUES (TO_DATE ('21-Jul-2011 02:02', 'DD-Mon-YYYY HH24:MI'));
INSERT INTO df_audit_branches (sdate) VALUES (TO_DATE ('22-Jul-2011 01:40', 'DD-Mon-YYYY HH24:MI'));And the results you want from that data might look like this:
DAY         TXT
21-Jul-2011    2   0   1
22-Jul-2011    0   1   0In the real problem, of course, you would need 24 "columns" in txt, not just 3.
To include all hours, even if there is no data for a particular hour, do an outer join to a "table" (I used a sub-query, all_hours, not a real table) that has one row per hour.
Here's one way to do that:
WITH     got_cnt          AS
     SELECT       TRUNC (sdate)               AS day
     ,       TO_CHAR (sdate, 'HH24')     as hour
     ,       COUNT (*)               AS cnt
     FROM       df_audit_branches
     GROUP BY  TRUNC (sdate)
     ,       TO_CHAR (sdate, 'HH24')
,     all_hours     AS
     SELECT     LEVEL               AS n
     ,     TO_CHAR ( LEVEL - 1
               , 'FM00'
               )          AS hour
     FROM     dual
     CONNECT BY     LEVEL <= 3     -- or 24, for the real query
SELECT       c.day
,       REPLACE ( SYS_CONNECT_BY_PATH ( TO_CHAR ( NVL (c.cnt, 0)
                                , '999'
            )          AS txt
FROM            all_hours     h
LEFT OUTER JOIN     got_cnt          c       PARTITION BY (day)
                         ON     c.hour     = h.hour
WHERE     CONNECT_BY_ISLEAF     = 1
START WITH     h.n     = 1
CONNECT BY     h.n     = PRIOR h.n + 1
     AND     c.day     = PRIOR     c.day
ORDER BY  c.day
;This will work in Oracle 10.1 (and up).

Similar Messages

  • How to get the record count printed for the report in the Dashboards

    Hi,
    I would like to get the record count printed at the bottom of every dashboard report like:
    < 1 - 25 of 6300 > instead of < 1 - 25 >
    Any help is appreciated
    Regards
    B

    I have tried the following formula which identifies the lowest grain but it does not seem to give me correct result.. I am not getting the correct count. I am getting as 3.A work order can be updated only once at one point of time.hence the formula
    MAX(RCOUNT(CAST("SR Wo Fact"."Crm Wo Number" AS CHAR) ||CAST("SR Wo Fact"."PSC Timestamp" as char)))
    I tried only MAX(RCOUNT(1)), but I was able to get the record count as corect for Administrator but not for other users.
    Has anyone come across this scenario.
    Thanks Shravan
    Edited by: 786443 on Aug 19, 2010 10:22 AM

  • Record count per page , total record count per report in BI Publisher

    hi,
    In Oracle BI Publisher tool , can you please tell me how to display total record count of a report ? as well as how to display record count per page ?
    Thanks for your help
    Regards
    Gayathri

    check inbox. forwarded the updated template

  • Standard report which gives Record count of ODS, Cube and Source system.

    Hi-
    Is there any standard report which gives the record count of ODS, Cube and Source system?
    or
    If any one has ABAP program which takes care of record count pls let me know.
    Thanks in advance

    I don't understand. You need to check the data loads. What for do you want a list of ODS, Cubes and sources systems?
    You can use messages from process chains to monitor the data loads.
    You can also use an abap program inside teh process chains to save data into a table and then an abap report to see if everything went OK.
    But, thinking again, you may be able to use BW statistics to get some of the information you need. Check the help for BW statistics, it might give you an idea of what you can do.
    Regards,
    Diego

  • Report with all Data Targets in Production and Record Count

    Hi,
    I am planning to create new report to handle some production maintenance work.
    How do I create a report with list of each ODS and Cube and count of Active record count? Can I use any report in BW statistics and modify based on my requirements?
    And also "Last Activation Date" is required.
    Any suggestions? Please do let me know.
    Thanks
    Anand.

    Hi,
    The load might be taking too mucjh time as the system is busy.
    wait for some time (30 mins) and see if the load goes thru
    The load might have strucked up.
    Change the request to red and reload data.
    after doing initwith out data load, Run Delta.
    Cheers,
    Srinath.

  • SAP BO Report Execution time and Record count

    Hi All,
    We have a requirement to set the limits on report execution time and record count centrally. Can you please help me to identify where exactly we have to define the settings in CMC for BO4.
    Thanks in advance,
    Shalini

    Hi Shalini,
    Please follow these steps, also check in for any more details if any;
    Step 1: Launch CMC
    Step 2: Select Servers
    Step 3: Select Web Intelligence processing Server, right click and Goto Properties
    Step 4: Maximum List Of Values Size (entries) default value is 50000.
    Step 5: Increase this value if your "LOVS" greater than this value.
    Step 6: Save and close.
    Step 7: Restart the server.
    Hope this helps.
    - Ram

  • Alv report  (record counter)

    hiii
    dear all i written below code for record count but not getting no of records beyond 9 , it gives * ..
    data : wa_listheader1 type slis_listheader.
      data : Lin type i,
            LINCHAR type c.
      DESCRIBE TABLE ITab LINES LIN.
      LINCHAR = LIN.
      CLEAR wa_listheader1.
      wa_listheader1-TYP  = 'A'.
    LS_LINE-KEY  = ' '.
      CONCATENATE 'NO. OF RECORDS :' LINCHAR INTO wa_listheader1-INFO SEPARATED BY SPACE .
      APPEND wa_listheader1 TO it_listheader.
    suggest any required change....

    Change the length of LINCHAR ...
    data : wa_listheader1 type slis_listheader.
    data : Lin type i,
    LINCHAR(3) type c.

  • Invalid record count - grey screen- Target Mode Cures

    Hi there,
    I have a common problem: I was doing nothing particular that I remember: No fancy file uploads, doanloads, creation, erasing - nothing special:
    Anyway after a customary week, or few days of leaving the macbook permanently on, I think "let's give it a rest".
    Then switch back on:
    - Grey screen, spinning grey progress wheel fine.
    - Takes a while. Strange. After say a minute - it just switches off wordlessly.
    - Reset PRAM: No solution. Take a look with single-user startup in console: Files are all there, OK. Disk not dead.
    - Start up from OS X 10.5 disk:
    Permissions repair fine. Good.
    Verify disk: FAIL! +*Invalid Record Count.Volume check failed.*+
    Next: *Try target disk mode to back up essentials* - that works fine: I now have Time Machine AND a smaller important essentials backup.
    But finally, here's the surprise: Just for kicks, I *shut the macbook down, try a reboot - and it works!*
    But I note that root system files are unchanged since the problem occurred: ".hotfiles.btree" for example (I don't know what that is but suspect it's relevant).
    Then: I tried restarting again - and back to square one, it won't boot.
    Do the "Target disk" firewire mode trick again, and browse a few folders: And it boots (slowly).
    If I just leave the Macbook on permanently - everything seems fine. Not even sluggish.
    So:
    - Why can connecting a disk with an incorrect file system in target disk make the system forget about these problems when booting?
    - Why does the problem return on a successive reboot?
    - Is it related to some system files being ignored if booting straight after a target mode session?
    - What is ".hotfiles.btree", and should it not exist ?
    And the big one:
    - +Can extended Applecare, wot cost me loads of money, help me?+

    Hi Cornelius:
    Having been a faithful Apple-groupie for a while, and despite some problems over the years (hard drive failing, screen going, etc.) this is the first time I'm disappointed with them, because theor Micromat Applecare deal is a ripoff:
    You fork out for Applecare extension: All you get is something that say "Yep, you've got a problem. Now go and buy techtoolpro".
    That is, the TechTool Deluxe is practically useless. Argh.
    Worse: They keep that rather quiet. If you run TechTool deluxe, and it fails: It points you to the Techtool site to
    "download the TechTool Deluxe software with diagnostic and repair capabilities".
    You think "Aha, right, I need an update, or a DMG rather than just the executable".
    Download another 1.25Gb.
    So you try again: Same thing.
    The chiselling little crooks, to quote Ken Livingstone, won't even come out and say "Buy TechTool Pro to fix it". The website as reported above is wrong.
    Result: I'm not happy with them. And I'll never buy anything off Micromat.
    In the meantime, I've got a bootable backup thanks to CC-Cloner (excellent, I'll send him some money), and I'm waiting until I don't have any critical deadlines to allow myself time to restore a daily bootable backup.
    The dodgy files seem to be the Sun Developper Java suite according to CC Cloner.

  • Employee Working Continuous Hours Exception Report

    Dear Sir,
    I am tasked to develop a Employee Continuous Hours Exception Report. An employee is allowed to work 24 hours in a day (2 shift) but must take the next day as rest day. I would like out to find out the employees that worked more than 24 hours in a Continuous.
    Refer attached image as a sample
    I would only like to pick the records highlight above in the image, because this is an example of the working more than 24 hours continuously.
    If annyone can help me with SQL Script to produce the above report.
    Marsh Narewec

    Dear Visakh,
    I just realized that the data of  the image presented above is wrong. The data should have been like this,
    As you can see, the date is also shown in TimeFrom and TimeTo fields. Now with this change in data here is the script to create the similar table with data. Appreciate if you can use this table to assist we developing the sql stored procedure.
    USE [PNGLIVE]
    GO
    /****** Object: Table [dbo].[TmpMarshRoster] Script Date: 06/26/2014 18:28:42 ******/
    DROP TABLE [dbo].[TmpMarshRoster]
    GO
    /****** Object: Table [dbo].[TmpMarshRoster] Script Date: 06/26/2014 18:28:42 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE [dbo].[TmpMarshRoster](
    [EmployeeNumber] [dbo].[udtEmployeeNumber] NOT NULL,
    [EmployeeName] [nvarchar](101) NOT NULL,
    [DutyDate] [datetime] NOT NULL,
    [TimeFrom] [datetime] NOT NULL,
    [TimeTo] [datetime] NOT NULL
    ) ON [PRIMARY]
    GO
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A31E00000000 AS DateTime), CAST(0x0000A31E0062E080 AS DateTime), CAST(0x0000A31E01391C40 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A31F00000000 AS DateTime), CAST(0x0000A31F01391C40 AS DateTime), CAST(0x0000A3200083D600 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A32000000000 AS DateTime), CAST(0x0000A32001391C40 AS DateTime), CAST(0x0000A3210083D600 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A32200000000 AS DateTime), CAST(0x0000A322007D3E80 AS DateTime), CAST(0x0000A322009AE840 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A32300000000 AS DateTime), CAST(0x0000A3230062E080 AS DateTime), CAST(0x0000A32301391C40 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A32400000000 AS DateTime), CAST(0x0000A3240062E080 AS DateTime), CAST(0x0000A32401391C40 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A32500000000 AS DateTime), CAST(0x0000A3250062E080 AS DateTime), CAST(0x0000A32501391C40 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A32600000000 AS DateTime), CAST(0x0000A3260062E080 AS DateTime), CAST(0x0000A32601391C40 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A32700000000 AS DateTime), CAST(0x0000A32701391C40 AS DateTime), CAST(0x0000A3280083D600 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A32800000000 AS DateTime), CAST(0x0000A32801391C40 AS DateTime), CAST(0x0000A3290083D600 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A32B00000000 AS DateTime), CAST(0x0000A32B0062E080 AS DateTime), CAST(0x0000A32B01391C40 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A32C00000000 AS DateTime), CAST(0x0000A32C0062E080 AS DateTime), CAST(0x0000A32C01391C40 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A32D00000000 AS DateTime), CAST(0x0000A32D0062E080 AS DateTime), CAST(0x0000A32D01391C40 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A32E00000000 AS DateTime), CAST(0x0000A32E0062E080 AS DateTime), CAST(0x0000A32E01391C40 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A32F00000000 AS DateTime), CAST(0x0000A32F01391C40 AS DateTime), CAST(0x0000A3300083D600 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A33000000000 AS DateTime), CAST(0x0000A33001391C40 AS DateTime), CAST(0x0000A3310083D600 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A33300000000 AS DateTime), CAST(0x0000A3330062E080 AS DateTime), CAST(0x0000A33301391C40 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A33400000000 AS DateTime), CAST(0x0000A3340062E080 AS DateTime), CAST(0x0000A33401391C40 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A33500000000 AS DateTime), CAST(0x0000A3350062E080 AS DateTime), CAST(0x0000A33501391C40 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A33600000000 AS DateTime), CAST(0x0000A3360062E080 AS DateTime), CAST(0x0000A33601391C40 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A33700000000 AS DateTime), CAST(0x0000A33701391C40 AS DateTime), CAST(0x0000A3380083D600 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A33800000000 AS DateTime), CAST(0x0000A33801391C40 AS DateTime), CAST(0x0000A3390083D600 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014041', N'Albert MARI', CAST(0x0000A33C00000000 AS DateTime), CAST(0x0000A33C0062E080 AS DateTime), CAST(0x0000A33C01391C40 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A31E00000000 AS DateTime), CAST(0x0000A31E0062E080 AS DateTime), CAST(0x0000A31E0128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A31E00000000 AS DateTime), CAST(0x0000A31E0128A180 AS DateTime), CAST(0x0000A31F0062E080 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A31F00000000 AS DateTime), CAST(0x0000A31F0062E080 AS DateTime), CAST(0x0000A31F0128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A32000000000 AS DateTime), CAST(0x0000A3200062E080 AS DateTime), CAST(0x0000A3200128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A32100000000 AS DateTime), CAST(0x0000A3210062E080 AS DateTime), CAST(0x0000A3210128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A32200000000 AS DateTime), CAST(0x0000A3220062E080 AS DateTime), CAST(0x0000A3220128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A32300000000 AS DateTime), CAST(0x0000A3230062E080 AS DateTime), CAST(0x0000A3230128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A32400000000 AS DateTime), CAST(0x0000A3240062E080 AS DateTime), CAST(0x0000A3240128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A32500000000 AS DateTime), CAST(0x0000A3250062E080 AS DateTime), CAST(0x0000A3250128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A32700000000 AS DateTime), CAST(0x0000A3270062E080 AS DateTime), CAST(0x0000A3270128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A32800000000 AS DateTime), CAST(0x0000A3280062E080 AS DateTime), CAST(0x0000A3280128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A32900000000 AS DateTime), CAST(0x0000A3290062E080 AS DateTime), CAST(0x0000A3290128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A32A00000000 AS DateTime), CAST(0x0000A32A0062E080 AS DateTime), CAST(0x0000A32A0128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A32B00000000 AS DateTime), CAST(0x0000A32B0062E080 AS DateTime), CAST(0x0000A32B0128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A32C00000000 AS DateTime), CAST(0x0000A32C0062E080 AS DateTime), CAST(0x0000A32C0128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A32D00000000 AS DateTime), CAST(0x0000A32D0062E080 AS DateTime), CAST(0x0000A32D0128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A32E00000000 AS DateTime), CAST(0x0000A32E0062E080 AS DateTime), CAST(0x0000A32E0128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A32F00000000 AS DateTime), CAST(0x0000A32F0062E080 AS DateTime), CAST(0x0000A32F0128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A33000000000 AS DateTime), CAST(0x0000A3300128A180 AS DateTime), CAST(0x0000A3310062E080 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A33100000000 AS DateTime), CAST(0x0000A3310062E080 AS DateTime), CAST(0x0000A3310128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A33200000000 AS DateTime), CAST(0x0000A3320062E080 AS DateTime), CAST(0x0000A3320128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A33300000000 AS DateTime), CAST(0x0000A3330062E080 AS DateTime), CAST(0x0000A3330128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A33400000000 AS DateTime), CAST(0x0000A3340062E080 AS DateTime), CAST(0x0000A3340128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A33500000000 AS DateTime), CAST(0x0000A3350062E080 AS DateTime), CAST(0x0000A3350128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A33600000000 AS DateTime), CAST(0x0000A3360062E080 AS DateTime), CAST(0x0000A3360128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A33700000000 AS DateTime), CAST(0x0000A3370062E080 AS DateTime), CAST(0x0000A3370128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A33800000000 AS DateTime), CAST(0x0000A3380062E080 AS DateTime), CAST(0x0000A3380128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A33900000000 AS DateTime), CAST(0x0000A3390062E080 AS DateTime), CAST(0x0000A3390128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A33A00000000 AS DateTime), CAST(0x0000A33A0062E080 AS DateTime), CAST(0x0000A33A0128A180 AS DateTime))
    INSERT [dbo].[TmpMarshRoster] ([EmployeeNumber], [EmployeeName], [DutyDate], [TimeFrom], [TimeTo]) VALUES (N'014714', N'Nason Regepba', CAST(0x0000A33C00000000 AS DateTime), CAST(0x0000A33C0062E080 AS DateTime), CAST(0x0000A33C0128A180 AS DateTime))
    Marsh Narewec

  • My phone keeps ringing at all hours day and night

    My house phone keeps ringing at all hours day and night.  It only rings once or twice.  If I pick it up the line is dead.  I think it might be from skype because I noticed a strange California area code phone number once and a friend said that was a phony number that skype uses to send out calls.  Can I find out who keeps calling me?  This is telephone harassment!

    I think you can try contacting your telephone service provider first for possibly more specific/accurate information.  Then if it is indeed a Skype number/call, you can submit a report to Skype.
    IF YOU FOUND OUR POST USEFUL THEN PLEASE GIVE "KUDOS". IF IT HELPED TO FIX YOUR ISSUE PLEASE MARK IT AS A "SOLUTION" TO HELP OTHERS. THANKS!
    ALTERNATIVE SKYPE DOWNLOAD LINKS | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUSPICIOS CALLS AND MESSAGES
    SEE MORE TIPS, TRICKS, TUTORIALS AND UPDATES in
    | skypefordummies.blogspot.com | 

  • Data Load : Number of records count

    Hi Experts,
              I want to document number of records transferred to BW during an infopackage execution.
              I want to automate the process by running a report in background which will fetch a data from SAP tables about number of records been transfered by all my InfoPackage .
    I would like to know how should I proceed with.
             I want to know some System tables which contains same data as that of RSMO transaction displays to us.
    Kindly help with valuable replies.

    HI,
    inorder to get the record counts report you need to create a report based on below tables
    rsseldone, rsreqdone, rsldpiot, rsmonfact
    Check the below link which explain in detail with the report code as well.
    [Data load Quick Stats|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/90215bba-9a46-2a10-07a7-c14e97bdb764]
    This doc also explains how to trigger a mail with the details to all.
    Regards
    KP

  • How to find Maximum Record Count in a particular section

    Hi ALL
    My report has  3 detail sections. I am showing different set of data in each section.
    Example:
    Details a
    Details b
    Details c
    In the Details c section  I have 5 columns.
    I want to find out MAXIMUM RECORD COUNT in  only Details c.
    Actually I have done a running total on column1 field which gives me the records number in that section only. But I am not able to find the MAXIMUM record count.
    Rtotal   Colum1   Column 2 Column3
    1          Data1     Data2      Data3
    2          Data1     Data2      Data3
    3          Data1     Data2      Data3
    4          Data1     Data2      Data3
    Now I need the Maximum record count=4
    Thanks.

    If I have understood correctly you want to count the amount of records in each section.
    In this case, go to "Insert > Summary", choose your ID field, and choose "Count" in "Calculate this summary:". You can put the summary in your group footer.
    If you want the maximum (the highest number value in that column), you can choose "Maximum" instead of "Count".

  • This window service has timer for update record once in a day at 5 pm.

    Hi Guys Please help me.
    Actully i create a window service. This window service has timer for update record once in a day at 5 pm.
    I have write a code but it is not working fin
    Here is my code.
    App.Config File:-
    <appSettings>  
        <add key="IsTrace" value="YES"/>
        <add key="SourceServerPath" value="Server=DATASERVER\SQL2008R2;database=WDSBHN;User ID=Wireless;pwd=chetu@123"/>
        <add key="ArchiveServerPath" value="Server=CHETUIWK091\SQL2008R2;database=Demo;User ID=sa;pwd=Chetu@123"/>
        <add key="ReportHour" value="22"/>
        <add key="ReportMinut" value="01"/>
        <add key="ReportSecond" value="20"/>
        <add key="ReportMilisecond" value="230"/>
        <add key="DailyTimer" value="tmrProductionDataTransfer"/>
        <add key="MonthlyTimer" value="tmrProductionCleanUp"/>
        <add key="ActionParameter" value="WDS-DataTransfer"/>
      </appSettings>   
    Vb.Net Code:-
    Protected Overrides Sub OnStart(ByVal args() As String)
            ' Add code here to start your service. This method should set things
            ' in motion so your service can do its work.
            Try
                LoggingTracing.WriteTrace("DataTransfer Service START " & Now.ToLongDateString & " " & Now.ToLongTimeString())
                '***Get the Time of service run
                Dim svcRunTime As System.DateTime = Configuration.ConfigurationManager.AppSettings("ServiceRunTime")
                '***differance of these two time
                Dim ts As TimeSpan = DateTime.Now.Subtract(svcRunTime)
                '***production data transfer
                tmrProductionDataTransfer.Enabled = True
                tmrProductionDataTransfer.Interval = 1000
                tmrProductionDataTransfer.Start()
            Catch ex As Exception
                LoggingTracing.WriteError(ex.ToString())
            End Try
        End Sub
    Private Sub tmrProductionDataTransfer_Elapsed(sender As Object, e As Timers.ElapsedEventArgs) Handles tmrProductionDataTransfer.Elapsed
            Try
                Dim time As Date = Date.Now
                Dim currHour As Integer
                Dim currMinute As Integer
                Dim currnSecond As Integer
                Dim reportHour As Integer
                Dim reportMinute As Integer
                Dim reportSecond As Integer
                Dim reportMiliSecond As Integer
                Dim actionParameter As String = Configuration.ConfigurationManager.AppSettings("ActionParameter")
                Dim actionTimerName As String = Configuration.ConfigurationManager.AppSettings("DailyTimer")
                currHour = time.Hour
                currMinute = time.Minute
                currnSecond = time.Second
                reportHour = Convert.ToInt32(Configuration.ConfigurationManager.AppSettings("ReportHour"))
                reportMinute = Convert.ToInt32(Configuration.ConfigurationManager.AppSettings("ReportMinut"))
                reportSecond = Convert.ToInt32(Configuration.ConfigurationManager.AppSettings("ReportSecond"))
                reportMiliSecond = Convert.ToInt32(Configuration.ConfigurationManager.AppSettings("ReportMilisecond"))
                If currHour = reportHour AndAlso currMinute = reportMinute AndAlso currnSecond = reportSecond Then
                    ObjProductionDataTransfer.CopyDataToArchiveServerDayWiseDL(Configuration.ConfigurationManager.AppSettings("SourceServerPath"), Configuration.ConfigurationManager.AppSettings("ArchiveServerPath"),
    actionTimerName, time, actionParameter)
                End If
            Catch ex As Exception
                LoggingTracing.WriteError(ex.ToString())
            End Try
        End Sub
    It is running at 5 pm , but run 3 times, for that records has updated 3 time 
    How i can resolve it, If any problem in this code please give me the write direction or code. And this thing i have been searching for 3 days , but stile i didn't get any solution
    sonesh

    Sonesh,
    Sorry but you have posted to a forum that deals exclusively with questions/issues about customizing and programming Microsoft Project, a planning and scheduling application. I suggest you delete this post and find a more appropriate forum.
    John

  • Control Minimum No.of Records in an XML Publisher Report

    Hi
    I need to set the minimum no.of records in a XML Publisher Report.
    Please help me on this.
    Regards
    Nakul.V

    hi Vikash,
    using table RSDODSO...
    REPORT  ZCOUNT_ODS_2.
    tables : RSDODSO.
    data   : l_totrec type P,
             l_count type i,
             l_ODSOBJECT like RSDODSO-ODSOBJECT,
             l_ods like RSDODSO-ODSOBJECT.
    l_count = 1.
    select ODSOBJECT into l_ODSOBJECT
    from RSDODSO where OBJVERS = 'A'.
    business content
        if l_ODSOBJECT+0(1) = '0'.
          concatenate '/bi0/a' l_ODSOBJECT+1(29)  '00'
          into l_ods.
        else.
          concatenate '/bic/a' l_ODSOBJECT '00'
          into l_ods.
        endif.
        select count(*) into l_totrec
        from (l_ods).
           write :/ l_count.
           write l_ods.
           write l_totrec.
           l_count = l_count + 1.
    endselect.

  • Count( ) function in BIP Report

    Hello,
    Can someone please help me with my count( ) function in BIP reports? I have this code in my RTF template below that only count 1 per ssImageType
    <?xdofx:if (ssStatus='Closed') and (ssGroup='EDS OPS') then count((/ssAction=/ssImageType))?><?end-if?>
    The undesired result is coming up below:
    Image Type A = 1
    Image Type A = 1
    Image Type A = 1
    Image Type B = 1
    Where we wanted it to come up as
    Image Type A = 3
    Image Type B = 1
    Image Type C = 0
    Any help would be greatly appreciated.
    Thank you

    What is the item that you want to count? I don't understand what you are trying to do here: count((/ssAction=/ssImageType))?
    If status is closed and ssGroup = EDS OPS, and ssAction = ssImageType, then you want to count the number of records?
    If you want to, send me the rtf and xml file to [email protected] and I can take a look. Send me the exact specification..
    Thanks,
    Bipuser

Maybe you are looking for

  • HP Laserjet 5200tn Print Quality Issue

    Hi I am looking for some help with my HP LaserJet 5200tn. The problems all started back when I was getting a printer error 51.2 turned the printer off and on for a while to clear the error. Like the Tech manual says. This went on for a week showing b

  • New to Imac,music file into itunes

    Hi,Transferred my itunes folder from pc into new imac, using dvd,added to library,i drag file into itunes and it does nothing, sorry very new to this

  • Where has ''shuffle"gone on music app?

    After latest update i seem unable to find the 'shuffle' facility.  Cant find it under 'more' or under settings. Nothing more aggravating than hearing same song repeatedly. Any help would be appreciated

  • Can iPAD bluetooth like MacBook Pro to establish a PAN through iPhone?

    For my MacBook Pro, I can feel free to establish PAN through BlueTooth to my iPhone, which has enabled Tethering for internet sharing. I would like to know whether iPad can also support it so that iPad can connect internet through iPhone BlueTooth Te

  • Many to Many relationship betwee dimension and fact tanle

    Hello Gurus, I have a little question about many to many realtionship between fact and dimension table. The situation is as follows. Consider there is a fact table F1 and two dimension tables D1 and D2. D1 is joined to F1 with 1 to many relationship.