Computing average for the time

Can any one to help to get the average for the time
For example
create table time_avg (time date);
insert into time_avg (select trunc(sysdate,'hh')+5/24/60 from dual);
insert into time_avg (select trunc(sysdate,'hh')+10/24/60 from dual);
insert into time_avg (select trunc(sysdate,'hh')+15/24/60 from dual);
insert into time_avg (select trunc(sysdate,'hh')+20/24/60 from dual);
select to_char(time,'hh24miss') from time_avg;
TO_CHA
140500
141000
141500
142000
I want to get the average for the above .

SQL> INSERT INTO time_avg
  2  SELECT SYSDATE-ROWNUM-1-(rownum/24)
  3  FROM all_objects
  4  WHERE rownum<=10;
10 rows created.
SQL> ALTER SESSION SET NLS_DATE_FORMAT='DD-mon-YYYY HH24:MI:SS';
Session altered.
SQL> select * from time_avg;
TIME
10-may-2006 11:10:22
09-may-2006 10:10:22
08-may-2006 09:10:22
07-may-2006 08:10:22
06-may-2006 07:10:22
05-may-2006 06:10:22
04-may-2006 05:10:22
03-may-2006 04:10:22
02-may-2006 03:10:22
01-may-2006 02:10:22
10 rows selected.
SQL> SELECT to_char(trunc(sysdate)+(avg(to_number(to_char(time,'sssss'))))/86400,'hh24:mi:ss')
  2  FROM time_avg
  3  /
TO_CHAR(
06:40:22---------------
Anwar

Similar Messages

  • I locked my iPad and I don't want to wait for the time limit.  How can I reset it?

    My brothers locked my iPad and I can't wait for the time limit to unlock it.  Is there a way to reset it?

    If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup).
    If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.
    You may have to force iPad into Recovery Mode
    http://support.apple.com/kb/ht1808

  • Can I use my 2TB WD My Book Essential for the Time Machine feature on the MacBook as well as two other Windows computers (one running 7 and one with Vista)?

    Can I use my 2TB WD My Book Essential for the Time Machine feature on the MacBook as well as to store information from two other Windows computers (one running 7 and one with Vista)?

    Yes you can but you need to partition the drive into at least 2 separate drives.
    To do that you need to use a Windows PC to do the first partitioning. Say you split the drive into two partitions each 1TB (or close to 1TB) each.
    Partition fand format both partitions on a Win PC as one NTFS and the other FAT32.
    Then move it to the Mac and Reformat the FAT32 partition Mac Extended (Journaled) with a GUID Partition Table.
    I have that same drive and that is what I did originally with it. I now have it just for the Mac as I have other externals for the Win systems.
    Good Luck.

  • 180 GB of my 639-GB Macintosh hard drive is used. 320 GB of my 498-GB Tie Capsule is used. Only one backup ("now") exists for the Time Capsule, which can no longer backup because of "insufficient space". How come? What is wrong?"

    180 GB of my 639-GB Macintosh hard drive is used. 320 GB of my 498-GB Tie Capsule is used. Only one backup ("now") exists for the Time Capsule, which can no longer backup because of "insufficient space". How come? What is wrong?"

    Thank you William for your most helpful response. I shall deal first with your three comments:
    Not being tech savvy, I would not have been able to make that call myself but it sure makes sense.
    I have updated my profiles as you suggest.  Excellent tip.
    This guidance is good.  Being new to Apple Support Communities, I did not find the field a labeling and guidance to be clear, a point you make.  Now I know, I shall do as you say and will use the small slim box as a header to the full message/question, which will place in the larger box below.
    Secondly, I come to your question: Did anything change on your Mac recently, such as replacing the disk or main logic board?
    The answer is “yes”.  Two events have happened both of which concerned the Time Capsule:
    The telephone company, with which I have access to the Internet and I have my email account, installed a new modum.  After the technician left I had to try and get the Time Capsule and WiFi working again which ended with my having to call Apple for technical assistance.  The Apple technician walked me through a number of procedural steps which effectively re-set up the Time Capsule. 
    Access to the Internet failed and the telephone company reset the modum.  I had to call Apple again.  This time the technician did not reset the Time Capsule but walked me through a number of steps tha included renaming the “site”  (not the Time Capsule).
    Another piece of information that may be relevant is that the MacBook Pro uses the Time Capsule for backup.  Everything appears to be in order.  When I enter the Time Capsule for this laptop I have backups going back for a long time.
    Also, I do a weekly backup of the two computers onto another external hard drive using the Time Machine software.  So I have another backup of both computers.

  • If my iPhone was stolen and i want to reactive an old phone using that same number for the time being while i waited to see if I could get my iPhone back, would the iPhone still work while i was using a re-activated old phone of mine?

    If my iPhone was stolen and i want to reactive an old phone using that same number for the time being while i waited to see if I could get my iPhone back, would the iPhone still work while i was using a re-activated old phone of mine?

    If a new SIM is activated on the same account for the same number, any existing SIMs for that number are deactivated.
    Why exactly would you care if the SIM in the missing device still works or not?

  • My imac is running mountain lion and last night i downloaded maverick. in midst of installing it it said a powerPC app microsoft word would not work so i canceled the install for the time being. my questions is  if i choose to finish installing maverick

    my imac is running mountain lion and last night i downloaded maverick. in midst of installing it, it said a powerPC app microsoft word would not work so i canceled the install for the time being. my questions is  if i choose to finish installing maverick does that mean i will nevver be able to access word documents stored on my desktop? or do the word docs automatically convert to pages or what? i am so confused. would i be better off just sticking with mountain lion and send the maverick install to the trash? hoping someone will be able to answer my question though i am afraid the response is likely to be just stick with mountain lion so you can keep using word. i had been looking forward to maverick but it seems pretty drastic to not have access to microsoft word anymore by switching to maverick. hope someone has an answer so i can have the best of both worlds so to speak!

    thanks for your response Csound1 on the peninsula ... if i go ahead and install maverick and then download LibreOffice or OpenOffice will i then be able to access old microsoft word saved documents on my deskstop through those two free alternatives? i am not that knowledgeable about these things so i am not sure if you are saying i will just be able to use libreoffice or openoffice for creating new documents or whether i can access the saved microsoft docs? are they transferred to OO or LO or what and if editing of the old word docs is needed can i do that through the OO and LO programs or apps (see i am not even sure if i am using the correct vocabulary!) hope you can answer this as quick as the first question, so i can decide to stick with mountain lion and trash the maverick install or proceed with maverick install and hoppe that my microsoft word docs are still accessible through OO or LO or adding to myquestion will pages on maverick be able to open the old word documents? thanks again!

  • Trouble installing Creative Cloud Desktop. After running the installer  the dock the opens up is blank with a blue dotted loading emblem and will not do anything?????. New member here, thanks for the time.

    After running the installer  the dock the opens up is blank with a blue dotted loading emblem and will not do anything?????. I attempted to quit the install and restart but it produced the same result.  New member here, thanks for the time.

    Avanmanandfriends please see Creative Cloud app doesn't open and hangs on spinning progress wheel - http://helpx.adobe.com/creative-cloud/kb/creative-cloud-app-doesnt-open.html which discusses how to resolve your current error.

  • What is the range for the Time Capsule

    Good day for you all,
    Can anyone help me on the following:
    1. What is effective the range for the Time Capsule if there are 2 walls 6" thick each obstacle the way?
    2. Can I backup my data to my Time Capsule anywhere in the world using the Internet?
    3. Can I use the Time Capsule to backup data on my iphone, ipad and ipod?
    Regards

    waleedfromabu-dhabi wrote:
    Good day for you all,
    Can anyone help me on the following:
    1. What is effective the range for the Time Capsule if there are 2 walls 6" thick each obstacle the way?
    It is not that simple.. are the walls hollow or solid concrete..?? it is not the thickness of the walls.. but the thickness of material and angle of penetration.. remember wierless is a dead straight line.. Tx to Rx.. so a 30deg angle through concrete is a lot more material than just 6" steel reinforcing is really bad.. at an angle it maybe hard for the wireless to see a gap.
    Through standard plasterboard.. rockboard in US I think. walls, with no insulation.. about 15% signal drop on each.. the TC should work ok in standard size house over single floor at least at 2.4ghz .. but the speed will drop as you get further away. Difficult to say more.. that is why apple make the extreme and express and TC can all extend wireless from each other. But all this is only 2.4ghz. 
    5ghz you will be lucky to get signal through two walls.
    2. Can I backup my data to my Time Capsule anywhere in the world using the Internet?
    You can access the TC by using BTMM via iCloud in certain circumstances.. we would not recommend backups over internet.. the possiblity of corrupting the whole backup is too high. Just use a 2.5" portable drive.. ML can backup TM to different targets..
    3. Can I use the Time Capsule to backup data on my iphone, ipad and ipod?
    Not directly.. they do not work with TC.. they work with iTunes.. and you automatically backup to itunes locally or cloud.. then Time Machine backs up the iTunes.
    You can access the file and store files on the TC if you use a file browser app. But this is not the intended method of operation of any of those devices.

  • How can create room in icloud for the time machine on the mac

    I don't like to be carrying a time capsule around. Just need some space in the icloud for the Time Machine. Is that too hard to do?

    vcngu wrote:
    Backing up a Macpro in icloud shouldn't be rocket science or is it?
    No, it is very simple really, iCloud does not back up from Time Machine, or any other OSX program come to that. iCloud IS NOT an OSX backup system.

  • I just recently picked up an 07 macbook for the time being till i can get a new one, right now its running os x 10.5.8, where can i find 10.6 as the next step to upgrade or can i skip 10.6?

    Hey guys so i just recently piced up an 07 macbook for the time being till i can afford to buy a new one.  Right now its running os x 10.5.8. Basically ive read tht you can not skip any updates, is this right? I know 10.6 is the next step up upgrade wise, and i cant seem to find it on the internet anywhere? Pls help me.  Can i skip 10.6 and upgrade higher right away or wht?  Wht do i need to do and where can i find the updates?

    OS X 10.6 comes in the form of a physical CD. You could start by calling your local Apple store and seeing if they still have any.

  • HT4970 I have chosen not to use iCloud for the time being, and cannot get the Reminders i input on my Mac to replicate to my iphone and iPad?  any help is appreciated.

    I have chosen not to use iCloud for the time being since the syncing was inconsistently working with the calender and contacts;  and cannot get the Reminders on my Mac to sync/replicate onto my ios device, neither iphone nor ipad.  Help is appreciated in respect to Reminders.  Thank you.

    ok, thanks.  couple other questions...
    1. will it sync to my reminders on my MAC too if i enter via icloud?  if not, what's the reason for  having the reminder list available on my Mac if it can't sync? 
    2. I have 2 different email accounts, one with a .mac address and another with .msn.  both can be accessed via icloud.  i ran a test using my msn acct as the signin and it logged the reminder onto both the iphone and ipad fine.
    however, when i try with my mac address, it only shows up on my iphone, which list reminders under icloud(which worked on both devices and then under mac which worked only on the iphone, not ipad.  any idea why that might be happening?
    thanks for your help.

  • I'm in need for a thunderbolt display before December.  My old Imac is like new (don't want to invest in a new Imac yet).  Can I connect the thund-D to the old Imac via USB for the time being?

    I'm in need for a thunderbolt display before December.  My old Imac is like new (don't want to invest in a new Imac yet).  Can I connect the thund-D to the old Imac via USB for the time being?

    Their are some display adaptors you can get. I have an older Mac Pro with DVI but my monitor is a Thunderbolt Display. This used to be around $250. It is way cheaper now.
    http://www.bhphotovideo.com/bnh/controller/home?O=&sku=810627&Q=&is=REG&A=detail s

  • I ruined my Samsung Galaxy s4 (water damage) I have a Samsung Galaxy s3 I wanna use for the time being cuz I need a phone NOW...how do I do it?

    I ruined my Samsung Galaxy s4 (water damage) I have a Samsung Galaxy s3 I wanna use for the time being cuz I need a phone NOW...how do I do it?
    Anybody know where I can start with this?  I was just gonna call in and ask a tec but duh...I don't have a working phone?  Is there a link with step by step instructions?

    It worked!  I did put my SIM card into my replacement phone and Sha-Zamh lol!   There are ez instructions as well when I logged into my Verizon acct.   I clicked on  "My device" then "switch my device" and followed just a few simple steps, with the final being switchin the SIM card, like you suggested.  I think  Verizon has to know what I was doing.  In order for this to be a success I needed to obtain my "something something number" which is located on my phone (the one I was switching over to)   Anyway, I appreciate your help, it led me right to where I needed to be, Thanks!

  • What is the default ip address for the Time Capsule and Airport Extreme?

    What is the default ip address for the Time Capsule and Airport Extreme?

    Open Airport Utility to find out the real IP address of the network connection. DHCP addresses are assigned by the router in the range chosen in Airport Utility.

  • What is the font Apple uses for the time and date on the lock screen in iOS 7?

    I can't find the answer on Google. What is the font Apple uses for the time and date on the lock screen in iOS 7?

    This font. It's weird, it looks different when viewing the screenshot on my iMac, than it does on my iPod touch. Probably because of the retina screen of the iPod.

Maybe you are looking for