Average visits per hour

Post Author: PatchesPete
CA Forum: Formula
I need to generate a report that shows the average number of visits by hour of the day for the first quarter of 2008 for a time period of 7 AM - 11 PM.  Each record consists of one visit and looks like this:
3/1/08 6:00
3/8/08 10:00
3/8/08 10:15
3/11/08 8:30
3/11/08 10:00
3/12/08 9:30
3/12/08 4:00
I created a separate formula for each hour of the day, similar to this:
if Hour()=7 then 1 else 0
Then did a SUM to get the results below:
7AM
8AM
9AM
10AM
11AM
12AM
1PM
2PM
3PM
4PM
5PM
6PM
7PM
8PM
9PM
10PM
11PM
43
54
53
38
43
31
36
26
35
16
15
13
19
3
0
0
0
My question is:  HOW DO I GET AN AVERAGE PER HOUR?

Post Author: PatchesPete
CA Forum: Formula
You are correct, but that's not what I need.  I guess my request wasn't very clear.I need to know the average by the hour for the first quarter of 2008.The formula I wrote produces an average by hour by the number of days in the range.  Example:  Using the formula Sum ({@7AM})/29 produces 43 total number of visits between 7 and 8 AM for the month of February, 2008 divided by the number of days in February, which is 29, resulting in 1.5 visits per day in the 7 - 8 AM time slotMy problem is, how do I calculate the number of days in the first quarter (91 days), second quarter (91 days),  third quarter (92 days), fourth quarter (92 days) without having to change my query each quarter to reflect the appropriate number of days?Hope that makes things a little clearer."Pete" 

Similar Messages

  • Please help, how to send mails faster / send more mails per hour

    hello,
    in my application i am using mail sender class i have created to send mail to the users to participate in a survey. following is the code for it. i would like to know if there is anything wrong in it coz it takes to much time to send the mails it is taking 2 minustes to send 6 mails i.e 360 mails per hour only.
    following is how i instantiate the mail sender class and then generate a http link string dynamically as it is different for all the user.
    //////////class where mail sender is instantiated////////////////////
    try
    setConnection();
    st=con.createStatement();
    rs=st.executeQuery("select * from "+CNAME+"_campaign");                         
    String SurveyT = new String();
    while(rs.next())
         SurveyT = rs.getString(2);
    rs.close();
    rs=st.executeQuery("select * from "+CNAME+"_user");     
    ss = new MailSender();
    while(rs.next())
         String userid = rs.getString("userid");
         String password = rs.getString("password");
    StringBuffer message = new StringBuffer(BodyText.getText().trim());
    if(SurveyT.equals("invitational") || SurveyT.equals("single"))
                                            message.append( "\n" + "http://"+IPadd.getText().trim()+"/"+CNAME+"/servlet/login?username="+userid+"&passw="+password);
                                            ss.send(FromField.getText().trim(),userid,SmtpServerID.getText().trim(),MailSub.getText().trim(),message.toString());
    else if(SurveyT.equals("general"))
    message.append( "\n" + "http://"+IPadd.getText().trim()+"/"+CNAME+"/Index.html");
    ss.send(FromField.getText().trim(),userid,SmtpServerID.getText().trim(),MailSub.getText().trim(),message.toString());
    st.close();
    this.dispose();
    catch(SQLException sqlex)
    JOptionPane.showMessageDialog(null,sqlex.getMessage());
    //Mail Sender class/////////////////
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import javax.swing.*;
    public class MailSender
         String sentAddr,fromAddr,smtpServer,body,subject;
         public MailSender()
         //function send to send the mail
    public void send(String from,String to,String smtps,String subj,String messagetext)
              fromAddr=new String(from);
              sentAddr=new String(to);
              smtpServer=new String(smtps);
              body=new String(messagetext);
              subject=new String(subj);
              try
                   Properties props = System.getProperties();
                   props.put("mail.smtp.host",smtpServer);
         Session session = Session.getDefaultInstance(props,null);
    Message msg = new MimeMessage(session);
                   msg.setFrom(new InternetAddress(fromAddr));
    msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(sentAddr,false));
         msg.setSubject(subject);
         msg.setText(body);
    msg.setHeader("Survey","MailCheck");
    msg.setSentDate(new Date());
         Transport.send(msg);
         catch(MessagingException mex)
              JOptionPane.showMessageDialog(null,mex.getMessage());
    }

    Lots of variables here....Also my maths says only 180 per hour.... i.e. three a minute.
    1) you are using a database to get info from. What is the average response time of the DB server? Looks like you are doing one SQL then reading the result table but does the initial SQL take a while?
    2) how much data are you passing on to the SMTP server and how fast/slow is the link to that SMTP server? Work out the absolute max amount of data you can transfer over the link then get your average message size and work out a VERY theoretical Max number of messages a minute. Note that real life might approach 80% of this taking TCP/IP and SMTP overheads into account.
    3) What sort of load is the SMTP server under? If it's busy you will be only getting a fraction of whatever bandwidth is available. Depending on its design it may be trying to deliver the first message you sent it while you are still pumping more messages down to it. SMTP servers may limit the number of connections per minute from another machine in order to defeat a denial of service attack. Your code makes a connection per email so this may have relevence here.
    4) Raw horsepower always helps. When I write stuff to do things like this there is no nice GUI screen etc. Just basic Java that if it has to will write a log if something goes wrong. Maybe just maybe a counter on STD out to show it is still actually doing something. Keep the number of classes used down to the bare minimum. In the old days we used to spend days paring code to the bone - a skill somewhat lost these days.
    Hope this gives you some help in finding the bottleneck.
    Cheers,
    SH

  • View to find Physical read and Write per hour

    HI,
    My oracle database is running with 11.2.0.3 and we are analysing the database. we would like to understand what the average load time per hour is for  a database under normal circumstances e.g. 5 TB /Hr ?
    What I want to know is, Is it possible to find the amount physical reads and writes happened per hour basis on database. Is there any view to find this ?
    Thanks,
    Kesav.

    1e36fe40-5d07-412e-8ed2-704c647ed7a7 wrote:
    HI,
    My oracle database is running with 11.2.0.3 and we are analysing the database. we would like to understand what the average load time per hour is for  a database under normal circumstances e.g. 5 TB /Hr ?
    What I want to know is, Is it possible to find the amount physical reads and writes happened per hour basis on database. Is there any view to find this ?
    Thanks,
    Kesav.
    number of READ operations?
    number of bytes read?
    SQL> desc v$IOSTAT_FILE
    Name                                      Null?    Type
    FILE_NO                                            NUMBER
    FILETYPE_ID                                        NUMBER
    FILETYPE_NAME                                      VARCHAR2(28)
    SMALL_READ_MEGABYTES                               NUMBER
    SMALL_WRITE_MEGABYTES                              NUMBER
    LARGE_READ_MEGABYTES                               NUMBER
    LARGE_WRITE_MEGABYTES                              NUMBER
    SMALL_READ_REQS                                    NUMBER
    SMALL_WRITE_REQS                                   NUMBER
    SMALL_SYNC_READ_REQS                               NUMBER
    LARGE_READ_REQS                                    NUMBER
    LARGE_WRITE_REQS                                   NUMBER
    SMALL_READ_SERVICETIME                             NUMBER
    SMALL_WRITE_SERVICETIME                            NUMBER
    SMALL_SYNC_READ_LATENCY                            NUMBER
    LARGE_READ_SERVICETIME                             NUMBER
    LARGE_WRITE_SERVICETIME                            NUMBER
    ASYNCH_IO                                          VARCHAR2(9)
    ACCESS_METHOD                                      VARCHAR2(11)
    RETRIES_ON_ERROR                                   NUMBER
    SQL>

  • Battery, 10% per hour?

    I have an iphone 4, have had it since about a month after they came out.  I was always unimpressed with the battery life but now it's gotten worse.  Now, I know I sit here and use it frequently, but 10% of battery life per hour seems a little extreme.  And that's just if I let it sit there.  If I'm using it heavily, then it's dead within 4-5 hours.  By heavily I mean manually checking email (two accounts, yahoo and gmail), checking facebook, a couple apps, I make a phone call about once a month, not kidding there.  I get phone calls throughout the day but I never answer them, let them go to voicemail.  I take pictures, probably one a day I'd say on average.  When my son plays a game or two, angry birds and cut the rope, for like 20-30 minutes, I've seen the battery drop like 15% in that time span.  I keep the brightness on full.  I hate how dim it looks otherwise.  I use wi-fi at home, bluetooth is off.  The battery has gone down by 3% just in the time it took to write this so far (10 minutes maybe?) and that's only because the phone has been active as I received a couple text messages. 
    I charge it to full every night and lately I've had to recharge in the middle of the day as well. 
    I have read many threads here and on other sites that say to recreate Exchange email accounts (I don't have any) restore as a new phone, and complete a full chartge cycle by letting the phone completely drain and then recharge it without interruption.  I've done all these things and yet the battery life remains terrible. 
    I see some comments from people saying they can go 2 to 3 days without having to recharge and it makes me wonder if they keep their phone in airplane mode lol.  I just think it's time for me to replace the battery, but before I do I wanted to check one more time to see if someone had any magic cures they could share.  Oh I'm on the latest firmware and on AT&T.
    Thanks.

    kanezfan wrote:
    Update, I've noticed that my usage and standby times show the same amount, currently at 2 hours and 43 minutes, my battery is now down to 78% and I have not used my phone much at all today, just letting it sit there.  I have killed everything that was running in the background and still, the usage shows the same amount for standby and usage times.  I do not believe this is a hardware issue, it is more likely a software issue.
    There is clearly something wrong. Note, however, that it is impossible to kill everything running in background. Killing apps in the Quick Launch ribbon does not necessarily kill the background process (it does for 3rd party apps, but not built in apps, which relaunch their background processes immediately). Some app queued data to be sent, and the send failed, but the app or the lower levels of the network protocol keeps trying to send anyway.
    As you mentioned, the most common app that can do this is the email app, especially with if you have an Exchange account, but any push account can do it (whether push is on or off). So can Ping, the Apple store apps and Game Center. And ANY app that sends data can queue it.

  • Q: Count concurrent sessions per hours in a specified interval

    Hi,
    I have this table wich contains SESSIONID, CREATEDATE, LASTCHECKDATE, EXPIREDATE, PARTNERID
    We need to make a query that would return the number of max concurent session per hours for the interval specified.
    For example, for last week, on a per hour bases, or day bases, the top concurent session for each hour or day depending on the report.
    can do the number of new session on each hour with this query;
    SELECT TO_CHAR(createdate, 'YYYY/MM/DD HH24') ||'h ' start_time, COUNT( SESSIONID ) new_sessions, name || ' {' || partnerid || '}' as Partner
    FROM uws
    WHERE expiredate IS NOT NULL
    and partnerid=25
    and TO_CHAR(createdate,'YYYY/MM') = '2010/05'
    group by TO_CHAR(createdate, 'YYYY/MM/DD HH24') ||'h ', name || ' {' || partnerid || '}'
    ORDER BY 1 DESC;
    I think I should use MAX(count(sessionid)) and probably some DECODE when c1 between createdate and lastcheckdate...
    This would need to run on sqlplus from a shell script if possible and even chart it on Google Charts.
    Any help appreciated, note that I am not an Oracle expert..
    Edited by: user11954725 on Jul 19, 2010 5:55 PM

    Thanks Frank,
    I think we are very close to the solution I am looking for now;
    Here is the script you gave me (with little modifications) and the output;
    WITH     all_hrs          AS
         SELECT     min_hr + ((LEVEL - 1) / 24)     AS period
         ,     min_hr + (LEVEL / 24)     AS next_period
         FROM     (
                   SELECT TRUNC (MIN (createdate), 'HH')     AS min_hr
                   ,     TRUNC (MAX (LASTHEARTBEATDATE), 'HH')     AS max_hr
                   FROM     userwebsession
    where createdate <= TO_DATE('07-MAY-2010 00.00.00','DD-MON-RR HH24.MI.SS')
    and LASTHEARTBEATDATE >= TO_DATE('07-MAY-2010 23.59.59','DD-MON-RR HH24.MI.SS')
         CONNECT BY     LEVEL <= 1 + (24 * (max_hr - min_hr))
    SELECT     TO_DATE(a.period,'DD-MON-YY hh24') "Period"
    ,     COUNT (u.userwebsessionid)     AS sessions
    FROM          all_hrs     a
    LEFT OUTER JOIN     userwebsession     u     ON     a.period     <= u.LASTHEARTBEATDATE
                        AND     u.createdate     <= a.next_period
    group by a.period
    ORDER BY a.period
                   SELECT TRUNC (MIN (createdate), 'HH')     AS min_hr
                   ,     TRUNC (MAX (LASTHEARTBEATDATE), 'HH')     AS max_hr
                   FROM     SPEAKESL.userwebsession
    where createdate <= TO_DATE('07-MAY-2010 00.00.00','DD-MON-RR HH24.MI.SS')
    and LASTHEARTBEATDATE >= TO_DATE('07-MAY-2010 23.59.59','DD-MON-RR HH24.MI.SS');
    produce output;
    Period SESSIONS
    19-APR-10 15
    19-APR-10 12
    19-APR-10 15
    19-APR-10 18
    19-APR-10 6
    19-APR-10 7
    19-APR-10 6
    19-APR-10 16
    19-APR-10 18
    19-APR-10 21
    19-APR-10 19
    19-APR-10 24
    19-APR-10 15
    19-APR-10 7
    19-APR-10 10
    19-APR-10 6
    19-APR-10 9
    19-APR-10 7
    19-APR-10 6
    20-APR-10 5
    20-APR-10 5
    20-APR-10 6
    20-APR-10 7
    20-APR-10 7
    20-APR-10 13
    20-APR-10 7
    20-APR-10 6
    20-APR-10 4
    20-APR-10 8
    20-APR-10 8
    20-APR-10 6
    20-APR-10 14
    20-APR-10 7
    20-APR-10 5
    20-APR-10 14
    20-APR-10 9
    20-APR-10 9
    20-APR-10 7
    20-APR-10 5
    20-APR-10 4
    20-APR-10 5
    20-APR-10 3
    20-APR-10 4
    21-APR-10 4
    21-APR-10 5
    21-APR-10 5
    21-APR-10 5
    21-APR-10 5
    21-APR-10 5
    21-APR-10 6
    21-APR-10 7
    21-APR-10 8
    21-APR-10 14
    21-APR-10 7
    21-APR-10 8
    21-APR-10 4
    21-APR-10 6
    21-APR-10 10
    21-APR-10 26
    21-APR-10 14
    21-APR-10 10
    21-APR-10 12
    21-APR-10 6
    21-APR-10 7
    21-APR-10 6
    21-APR-10 5
    21-APR-10 6
    22-APR-10 7
    22-APR-10 7
    22-APR-10 7
    22-APR-10 6
    22-APR-10 7
    22-APR-10 8
    22-APR-10 9
    22-APR-10 5
    22-APR-10 21
    22-APR-10 7
    22-APR-10 34
    22-APR-10 29
    22-APR-10 29
    22-APR-10 10
    22-APR-10 21
    22-APR-10 17
    22-APR-10 50
    22-APR-10 43
    22-APR-10 43
    22-APR-10 26
    22-APR-10 13
    22-APR-10 16
    22-APR-10 15
    22-APR-10 35
    23-APR-10 6
    23-APR-10 3
    23-APR-10 4
    23-APR-10 4
    23-APR-10 2
    23-APR-10 3
    23-APR-10 2
    23-APR-10 2
    23-APR-10 4
    23-APR-10 11
    23-APR-10 6
    23-APR-10 14
    23-APR-10 16
    23-APR-10 20
    23-APR-10 11
    23-APR-10 20
    23-APR-10 43
    23-APR-10 30
    23-APR-10 46
    23-APR-10 41
    23-APR-10 26
    23-APR-10 50
    23-APR-10 51
    23-APR-10 66
    24-APR-10 4
    24-APR-10 2
    24-APR-10 2
    24-APR-10 2
    24-APR-10 2
    24-APR-10 2
    24-APR-10 2
    24-APR-10 2
    24-APR-10 2
    24-APR-10 2
    24-APR-10 5
    24-APR-10 5
    24-APR-10 3
    24-APR-10 2
    24-APR-10 3
    24-APR-10 5
    24-APR-10 6
    24-APR-10 5
    24-APR-10 4
    24-APR-10 3
    24-APR-10 4
    24-APR-10 4
    24-APR-10 2
    24-APR-10 2
    25-APR-10 2
    25-APR-10 2
    25-APR-10 2
    25-APR-10 2
    25-APR-10 2
    25-APR-10 2
    25-APR-10 3
    25-APR-10 3
    25-APR-10 4
    25-APR-10 4
    25-APR-10 4
    25-APR-10 3
    25-APR-10 2
    25-APR-10 2
    25-APR-10 5
    25-APR-10 6
    25-APR-10 4
    25-APR-10 5
    25-APR-10 4
    25-APR-10 5
    25-APR-10 6
    25-APR-10 5
    25-APR-10 3
    25-APR-10 3
    09-MAY-10 7
    09-MAY-10 8
    09-MAY-10 8
    09-MAY-10 6
    09-MAY-10 8
    09-MAY-10 8
    09-MAY-10 5
    09-MAY-10 5
    09-MAY-10 5
    09-MAY-10 5
    09-MAY-10 5
    09-MAY-10 5
    09-MAY-10 5
    09-MAY-10 5
    09-MAY-10 5
    10-MAY-10 7
    10-MAY-10 6
    10-MAY-10 6
    10-MAY-10 7
    10-MAY-10 5
    10-MAY-10 5
    10-MAY-10 5
    10-MAY-10 5
    10-MAY-10 6
    10-MAY-10 12
    10-MAY-10 12
    10-MAY-10 20
    10-MAY-10 12
    10-MAY-10 13
    10-MAY-10 14
    10-MAY-10 17
    10-MAY-10 12
    10-MAY-10 15
    10-MAY-10 14
    10-MAY-10 12
    10-MAY-10 8
    10-MAY-10 8
    10-MAY-10 7
    10-MAY-10 7
    11-MAY-10 7
    11-MAY-10 7
    11-MAY-10 8
    11-MAY-10 8
    11-MAY-10 7
    11-MAY-10 30
    11-MAY-10 37
    11-MAY-10 43
    11-MAY-10 22
    11-MAY-10 14
    11-MAY-10 17
    11-MAY-10 19
    11-MAY-10 26
    11-MAY-10 20
    11-MAY-10 20
    11-MAY-10 30
    11-MAY-10 14
    11-MAY-10 18
    11-MAY-10 11
    11-MAY-10 12
    11-MAY-10 8
    11-MAY-10 8
    11-MAY-10 10
    11-MAY-10 8
    12-MAY-10 14
    12-MAY-10 12
    12-MAY-10 75
    12-MAY-10 51
    12-MAY-10 38
    12-MAY-10 39
    12-MAY-10 22
    12-MAY-10 17
    12-MAY-10 13
    12-MAY-10 12
    12-MAY-10 11
    12-MAY-10 17
    12-MAY-10 30
    12-MAY-10 28
    12-MAY-10 23
    12-MAY-10 20
    12-MAY-10 18
    12-MAY-10 12
    12-MAY-10 15
    12-MAY-10 16
    12-MAY-10 14
    12-MAY-10 28
    569 rows selected
    MIN_HR MAX_HR
    19-APR-10 12-MAY-10
    Now the output seem to produce the concurrent sessions as needed but the date range show is not exactly.
    I expect the output to display only for the range specified in parameter, which if for this example only one day.
    Probably if we ask for more that few days, we would like to display the MAX number of concurrent session for one day and the average (optional) also for that day and this for all days in the period.
    So for example based on the above output this next level report would output as follow (for period of 19-APR-10 to 27-APR-10;
    19-APR-10 24
    20-APR-10 14
    21-APR-10 26
    22-APR-10 50
    23-APR-10 66
    24-APR-10 6
    25-APR-10 6
    26-APR-10 105
    27-APR-10 44

  • How much data does the apple maps app use per hour ?

    hello,
    i would like to know, if somebody could give me a rough number of how much the Apple Maps app uses per hour for navigation ?

    Apple's Maps app uses vector graphics, so it doesn't have to download data everytime your view changes, & also has an offline mode...you can download quite a large area over WiFi & then use this cache to navigate.
    So, I really wouldn't worry too much about its data usage. Most tests I've read indicate it uses about 80% less data than Google Maps.

  • 12GB per hour of HD footage instead of 29GB?

    Hi,
    I recently switched over to HD camera (Sony HDR-HC1E). This is a DV tape cam.
    Im editing in imovie 6.0.4.
    I always back up my files by exporting via imovie "full quality" when i used to do this with SD content i would get a DV file as result, now on HD i get a .mov file.
    I used to get a 12GB file for a 60min movie. Now with HD i am getting 29GB per hour.
    I hear other people talking about 12GB per hour for HD content.
    Can anyone please tell me how this is possible?
    I am going through external hard drives at lightning speed!
    Thanks
    Dave

    Hi Dave
    There's actually a big difference between a DV stream (whether recorded to tape or file) and a .mov file.
    DV or HDV footage is recorded at 25Mbps - megabits per second. This translates to 90000Mb per hour, divide by 8 to convert bits to bytes, and you get 11.2GB/hour. That's constant, whether on the tape or saved as a DV file. Note that DV is pretty compressed.
    Now, when iMovie (or any other video conversion program) saves a .mov file, it's no longer a DV stream. It can be any of the codecs (video formats) that your program supports, and there are a wide range of codecs for both SD and HD. These different codecs will use different file sizes depending on their level of compression. (Just like mp3, a compressed audio codec, vs AIFF, an uncompressed codec.)
    You can choose to optimize video on import or choose a smaller format on export (large, rather than full size) which will reduce the frame size of your footage, which may be a good solution for you, depending on what you ultimately plan to do with the material. (Edit: actually, not with iMovie 6 - thanks, Karsten Newer versions of iMovie will help you there. )
    Matt
    Message was edited by: Matt Clifton

  • What setting is 'DVD quality' widescreen - ie about 3gb per hour?

    I have videod (isn't that a such a quaint 20th century word for the podcast age?) a conference and I want to archive the footage to store on a DVD for later reediting.
    The "full quality" setting is massive, I only have 90 mins, but a 20 min clip takes up over 10Gb
    The 'CD-rom quality' is just not not dvd quality.
    (I am using iMovie 06 btw, i will move onto 08 when it is finished)
    Ideally, I would just burn the whole lot raw with iDVD and import it again if i need to reedit - but (for copyright as opposed to technical reasons i suppose) we can't just put a dvd in the slot and rip it like we can an audio cd in iTunes. I have tried the workarounds - but none of them worked for me.
    Anyway, I digress: What setting is 'DVD quality' widescreen - ie about 3gb per hour?

    Hi there.
    *Keep the quality*
    0nce you have compressed data - you can't get the original quality back - so store as full quality as possible - and in several formats so there is always a backup.
    Media
    data cds don't hold that much - 700mb - so forget about them for quality productions and archiving
    dvd-roms hold much more - 4,700mb (you can get dual layer ones that double it)
    *'share' settings*
    Now, you have 2 options for saving the movie;
    1. as a file on a DVD-Rom (a compact .mov or a massive.dv)
    2. as a proper playable DVD (iDVD)
    If the "full quality" iM setting is too big a file for a dvd-rom (and you will be lucky to get 10 mins of footage in 4.7gb), then you could 'iDVD' it and that way you will get a good quality movie up to nearly 2 hours on a disc disc that can be played on most machines (and could even be ripped back into an editable form using third party software)
    Alternatively, save it using 'expert settings' listed above and you will probably get good enough results for a longer film without having to burn it as a playable (but uneditable) dvd.
    Bear in mind that unless you are using a pro camera, you may not notice the much difference with the higher settings.
    Good luck - seeing your work on the big screen is a blast!

  • Rows per hour

    Dear All,
    I have a table with 2 rows and one has varchar type data and the other is the time stamp (04/02/2013 19:44:40).
    Now I want to write a query to count number of rows per hour in the table with date ...strcutre is as follows :
    ddata varchar2(20)
    ddate date with timestamp ;
    Require the output as follows :
    March 28th 12 AM - 20
    March 28th 1 AM - 40
    March 28th 2 AM - 40
    where March 28th 12 AM is the date with time
    and 20 - number of rows in that date and in that hour..
    Please advise..

    Hi,
    936074 wrote:
    Dear All,
    I have a table with 2 rows and one has varchar type data and the other is the time stamp (04/02/2013 19:44:40).
    Now I want to write a query to count number of rows per hour in the table with date ...strcutre is as follows :
    Whenever you have a problem, post CREATE TABLE and INSERT statements for a little sample data, and the results you want from that data.
    >
    ddata varchar2(20)
    ddate date with timestamp ;What is this? DATE and TIMESTAMP are 2 different datatypes.
    If ddate is a DATE, then it is not a TIMESTAMP.
    If ddate is a TIMESTAMP, then it is not a DATE.
    Require the output as follows :
    March 28th 12 AM - 20
    March 28th 1 AM - 40
    March 28th 2 AM - 40
    where March 28th 12 AM is the date with time
    and 20 - number of rows in that date and in that hour..
    Please advise..Here's one way:
    SELECT    TRUNC (ddate, 'HH')           AS hour
    ,       COUNT (*)                AS cnt
    FROM       table_x
    GROUP BY  TRUNC (ddate, 'HH')
    ORDER BY  TRUNC (ddate, 'HH')     -- Or hour
    ;TRUNC (ddate) will return a DATE, regardless of whether ddate is a DATE or a TIMESTAMP.

  • How much is a GRC consultant paid per hour?

    I know that in USA, for FICO consultants the rate per hour is in the range of 100 -150 dollars per hour. Will a GRC consultant get more than this or less?
    There is a qualification called CISA. Is this GRC anyway realted to this?
    Is a GRC consultant involved in SOC compliance?What does he exactly do?

    Hi Suchita,
       This community meant for technical and BPX discussion and not to discuss hourly rates. You may find them from google search.
    Rgds,
    Asok

  • Cost Per hour, Costs per route not updating in S114 structure

    Dear PM Guru's,
    i am using MET unit system for vehicle consumption analysis. After completion of measurement documents and material issuance through IFCU, i checked the MCIZ report , but there i could not find the value of Costs per Hour, Costs per route information. I am requesting you all please guide me where i did the mistake either in "Configure measurement document updation" or calculation method?
    I am eagerly waiting for replies.
    regards
    JKM

    Its not possible to give any specific section where it might have gone wrong. Suggest you to check the complete configuration under Settings for Fleet Management. Also check the configuration in IMG - PM & CS - Information Systems - Configure Measurement document update

  • PK07 AC: Average consumption per time unit

    Dear guru ,
    in Kanban Calculation (PK07) with this below formula how the system determine the AC
    Average consumption per time unit ?
    6.quantity per kanban i*
    Quantity per kanban = RT * AC
    SF
    AK - C
    7.
    NK: Number of kanbans
    CONT: Quantity per kanban
    RT: Replenishment lead time per kanban
    AC: Average consumption per time unit (from dep.reqmts)
    SF: Safety factor (proposed value 1)
    C: Constant (proposed value 1)
    Thanks.

    Not answered.

  • Peak No. Of Requests/ Per Hour in BW

    Suppose my cube gives performance of 5 Sec for a given query to run.
    How does one estimate, assuming Bandwidth can scaleup, at what no. of peak requests (in per Hour or Per minute or Per sec) would the BW server show considerable performance degradation in terms of longer query runtime.
    How much of this can be addressed by caching? Are there situations when Cache would get corruped due to high number of request, each potentially with differnt set of variable inputs?

    RiverCrab wrote:
    WiFi doesn't drain anything in Sleep mode because WiFi is turned off in sleep mode. Something else is causing the heavy battery drain.
    As you said you don't have any email accounts it isn't email. Safari can drain the battery if left on a page that automatically refreshes.
    Location Services can drain the battery - if you see an arrow in the top bar near the right then there is an app running in background and using location services.
    Game Center can drain the battery even when it is closed.
    Streaming apps, social networking apps (facebook, yahoo, skype, etc) can also drain the battery in sleep mode.

  • Refresh portlet report more frequently than once per hour

    When you publish a report from discoverer in the portal, you can tell it to automatically refresh, but the most frequent refresh it allows is once per hour. Is there some way I can refresh a report more frequently than that? Can I use the scheduled workbook functionality to achieve this, since in there you can schedule it to run as frequently as once per minute.
    I'm using Discoverer 10.1.2.
    Thanks
    -Nissim

    These are two different schedulers...
    We are considering changing the UI to let the users specify a schedule frequency more frequent than once an hour. But that is in a future, as yet undecided release.
    For the time being, you can resort to hacks to refresh Discoverer portlers more frequently than an hour. Some information on the same is available on Metalink. I shall see if I can publish in the next few days a blog post on how to do that. Of course you have to realize that something like this is not encouraged or supported.
    Thanks
    Abhinav

  • Condition for charging tenant at per hour basis

    Hi Experts,
    I need to charge a fixed rental per hour from customer based on air-conditioner (AC) running.
    For example Rs. 2000 per hr will be charged where Rs. 2000 is constant charge but AC run by Cutomer varies in one month it may be 160 hrs, in other month it may be 200 hrs, so on.
    Therefore rent also varies i.e. first month Rs. 320,000 (2000160) and in second month Rs. 400,000 (2000200)
    Please provide the solution for the same.
    Regards,
    Manish

    Hi Manish,
    You can design your requirement in different ways, depends on the level of requirements.
    One way could be sales based settlement, maintain sales based condition type and sales rule with your fixed price (Rs.2000).
    And update sales reports for consumption (AC utilization) and run the settlement run.
    Hope it will helps you, let me know if you need any more in detail.
    regards,
    Srini

Maybe you are looking for