List all hours in a day

Hello, i would like to perform this query :
select
from (
select
to_date('29/08/2006 ' || (rownum - 1) || ':00:00', 'DD/MM/YYYY HH24:MI:SS') tranche_horaire
from sys.col$
But I think this is not a good way, could you help me to make this better please ?
Thanks

Do you think below oneis a better idea?
SQL> select to_char(trunc(sysdate) + rownum/24, 'DD-MM-YYYY HH24:MI:SS')
  2  from user_objects
  3  where rownum <= 24
  4  /
TO_CHAR(TRUNC(SYSDA
29-08-2006 01:00:00
29-08-2006 02:00:00
29-08-2006 03:00:00
29-08-2006 04:00:00
29-08-2006 05:00:00
29-08-2006 06:00:00
29-08-2006 07:00:00
29-08-2006 08:00:00
29-08-2006 09:00:00
29-08-2006 10:00:00
29-08-2006 11:00:00
29-08-2006 12:00:00
29-08-2006 13:00:00
29-08-2006 14:00:00
29-08-2006 15:00:00
29-08-2006 16:00:00
29-08-2006 17:00:00
29-08-2006 18:00:00
29-08-2006 19:00:00
29-08-2006 20:00:00
29-08-2006 21:00:00
29-08-2006 22:00:00
29-08-2006 23:00:00
30-08-2006 00:00:00
24 rows selected.
SQL> Cheers
Sarma.

Similar Messages

  • 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 | 

  • Query for all hours in a month?

    Hello,
    I was hoping someone might be able to assist. I need to query for all the hours in a user specified date range (generally a month). For example,
    a query such as:
    select all hr_end from dual where start_date between '01-feb-2010' and '28-feb-2010'
    that returns:
    feb 01 2010 01:00
    feb 01 2010 02:00
    feb 01 2010 03:00
    feb 28 2010 23:00
    feb 28 2010 24:00
    Ideally, I want to be able to run this query within a WITH clause such that I can reference the temporary table/ list of hours in a subsequent select statement quickly. Something like:
    With
    all_hrs_in_month AS
    select .....
    where start_date between '01-mar-2010' and '31-mar-2010'
    I've looked around for similar questions, but have only found ones for all the 'days' in a month using level, connect by, row_num, for which I'm honestly not too familiar with and wasn't clear as to how I could modify to my needs.
    Greatly appreciate your help with this request.
    - j
    Edited by: user12942939 on Apr 5, 2010 12:04 PM

    Hi,
    Welcome to the forum!
    WITH     got_parameters  AS
         SELECT     TO_DATE ('01-mar-2010 00:00', 'dd-mon-yyyy hh24:mi')     AS start_date
         ,     TO_DATE ('31-mar-2010 23:00', 'dd-mon-yyyy hh24:mi')     AS end_date
         FROM     dual
    ,     all_hrs          AS
         SELECT     start_date + ( (LEVEL - 1)
                        / 24
                        )     AS hr
         FROM    got_parameters
         CONNECT BY     LEVEL <= 1 + ( 24
                                   * (end_date - start_date)
    SELECT       TO_CHAR (hr, 'DD-Mon-YYYY HH24:MI')     AS h
    FROM       all_hrs
    ORDER BY  hr
    ;Output:
    H
    01-Mar-2010 00:00
    01-Mar-2010 01:00
    01-Mar-2010 02:00
    01-Mar-2010 03:00
    31-Mar-2010 22:00
    31-Mar-2010 23:00Notice that start_date and end_date don't have to span then entire month; they don't even have to be in the same month.
    If you'd rather specify just one parameter (such as a single string containing the month and year):
    WITH     got_parameters  AS
         SELECT     TRUNC ( TO_DATE (:p_month, 'mon-yyyy')
                    , 'MONTH'
                    )          AS start_date
         ,     TRUNC ( ADD_MONTHS ( TO_DATE (:p_month, 'mon-yyyy')
                                 , 1
                    , 'MONTH'
                    )          AS end_date
         FROM     dual
    ,     all_hrs          AS
         SELECT     start_date + ( (LEVEL - 1)
                        / 24
                        )     AS hr
         FROM    got_parameters
         CONNECT BY     LEVEL <= ( 24          -- NOTE: Not adding 1 here
                               * (end_date - start_date)
    SELECT       TO_CHAR (hr, 'DD-Mon-YYYY HH24:MI')     AS h
    FROM       all_hrs
    ORDER BY  hr
    How It Works
    SELECT  LEVEL  AS n
    FROM    dual
    CONNECT BY  LEVEL <= x
    ;Produces a result set consiting of the integers 1, 2, 3, ..., x.
    There's nothing magical about the dual table; you can use any table AS LONG AS THE TABLE HAS ONLY ONE ROW .
    The other examples you saw probably just added this to a starting date, to get successive days, since, in Oracle date arithmetic, dt+n is a DATE n days after dt.
    Your case is slightly more complicated, because you want to add hours, not days. Since an hour is 1/24 of a day, we multiply by 24 to find how many integers to genereate, and divide by 24 when adding that number to the base date.
    Edited by: Frank Kulash on Apr 5, 2010 3:07 PM

  • Itunes wont list all songs on ipod, only some of them

    My itunes doesn’t list all the songs on my ipod, only some of them. (Only the ones uploaded after a certain date, when I think I forgot to eject my ipod one day).
    The ipod definitely has all the albums I've ever uploaded on it. I know because I've tried looking on my friends’ computer and his DOES show all songs on my ipod.
    Sounds like a PC problem, not an ipod problem, right? So I tried re-installing itunes, but that doesn’t fix it.
    It’s not a bit deal, but it just means I can’t delete certain albums from my ipod.

    How exactly are you trying to view this info.
    Select the iPod as the Source. Do not select any of the playlists on the iPod, just select the iPod itself.
    Any reason you are manually managing the iPod?

  • When i go to the app store to update the one app that needs to be updated, the screen is blank.  It used to list all the apps that need updating and have a button called update all.  Now nothing.  Just a blank screen.

    when i go to the app store to update the one app that needs to be updated, the screen is blank.  It used to list all the apps that need updating and have a button called update all.  Now nothing.  Just a blank screen.  How can I fix this?

    There's been a problem with this all day.  Seems to be a server problem  -  wait a day and try again, or use itunes on the computer to update, that works.

  • My daughter's phone racks up data usage every 12 hours, twice a day, even though she isn't using it. Anybody know why this would be happening or how to track it/stop it?

    My daughter's phone racks up data usage every 12 hours, twice a day, even though she isn't using it. Anybody know why this would be happening or how to track it/stop it?

        Its all good, TimN8128! Mrhelper is corret with regards to making sure that mobile data is turned off when on WiFi or when not connected to WiFi, if you do not want the phone to access data services to update or refresh app services. These applications can all be configured by going to Settings and reviewing all apps that appear in that area. You can also configure a bit further by going to Settings>Cellular.
    NicandroN_VZW
    Follow us on twitter @VZWSupport

  • There is no "add tab or + tab" and no "list all tabs" button. I'm also missing the add-on bar that is supposed to be at the bottom. I'd love to try all the features but it's hard to do without these options.

    The first day I downloaded Firefox 4, I had the "+" tab at the end of the tabs but after the first day, it disappeared so to open new tabs, I have to go to the Firefox tab on the left or use ctrl+t to open new tabs.
    The "list all tabs" button appears sporadically and today is completely unavailable.
    The add-on bar has never been available.
    The "feedback" button appeared the first day or so then disappeared, never to appear again!

    Create a new profile exclusively for the Firefox 4 version and create a desktop shortcut with -P "profile" appended to the target to launch that profile.
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • How to list all filename in excuteable jar file?

    Hi there,
    i've been googling around for hours, but found no good answer :(
    i want listing all file name in my excuteable jar file
    Firstly, i use
    File f = new File("/sounds");
    String[] filenames = f.list();
    and use these filenames to load some resouces from url
    //ex
    URL url = getClass().getResource("/sounds/"+filenames);
    No problem occurs when i run it normally
    but when I put it in excuteable jar file, NullPointerException appears
    i think it's because : "File f = new File("/sounds");" doesn't work in jar file (somehow, i don't know why too)
    is there any alternative way to listing all filename in this situation?
    thanks in advance

    There are jar handling classes in the standard library under java.util.jar. I think JarFile is the one you want.
    Hower it's not good practice to list jar contents in order to read resources. It's better to have some kind of resource file in the jar which lists your sounds or whatever. A simple text file with one file name per line suffices.

  • Is there a way to list all .DS_Store files for selective deletion?

    I routinely run VirusBarrier X6 antivirus software. Every time I do, it gets hung up on a single .DS_Store file for days on end, and I have no way to ascertain where the file is located. I understand that .DS_Store files are hidden and in every folder, so I was wondering if there was a way to list all of them via Spotlight or a Terminal command line. Whenever VirusBarrier has been hung up on a system file in the past, it's been freakishly large. I figured if I could list and sort all of the .DS_Store files, it might help me to pinpoint the one responsible for the hang-up. I know about the Terminal command to show all hidden files, but I do not know how to view them all together in a sortable list by size.
    I am also aware of the Terminal command that deletes all .DS_Store files on your computer, but I've read that it may lead to catastrophic results. I'm not looking to cripple my computer over a virus software hang-up.
    Thank you.

    I'm not looking to cripple my computer over a virus software hang-up.
    The computer is already crippled. Remove the Intego product, which is worse than useless and worse than the imaginary "viruses" would be if they really existed, which they don't, by following the instructions on this page. If you have a different version, the procedure may be different.
    Back up all data before making any changes.

  • Download all roles Individually and list all the SAP standard roles

    Hi ,
    I have two questions .
    1. I want o download all the roles individually in SAP.
    2. I want to list all the SAP standard roles whose profile is generated.
    Can anyone help me . to achieve this

    Dear,
    I am no sure what kind of problem you have faced that requires revert back. Which took 2 days. If it's for mass role revert back then mass role download should work. If it few selective role then change history should help you out.
    Anyway I might pull this out of the topic.
    Even you download mass role in a single file then also if you want then can upload a single role only with 2-3 mins spending on replace function in notepad!!
    Let say you have taken 1000 role in a single file and want to upload a specific role only. Open the file (copy of the file) in a notepad. Now replace(Ctrlh) LOADED_AGRS with nothing. Find(Ctrlf) the role you want to upload. In begining of that line paste LOADED_AGRS
    Above file will upload the specific role only.
    Regards,
    Arpan Paik

  • How to list all directory quotas on an OES NSS Volume ??

    Hi
    I need to list all the directory quotas on an OES2 NSS volume, and haven't succeded yet!
    I've tried to extract the info by inspecting /_admin/Manage_NSS/Volume/<volname>/DirInfo.xml, but it's always incomplete, as the file seems to have a 'fixed length' of 1024K.
    Is there any way to:
    a) completelly copy the file somewhere without the 1024K restriction
    b) any other util that could do the job
    Thanks!
    IB

    ibayarri,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • The UNIX tool that lists all available IP ports is called ...

    (1) Sorry. I can't remember. What's the utility that will show you all the IP ports your ISP has open for use? I ran it a few days ago but can't seem to `apropos' it into existence.
    (2) Also, is there another way to find out?
    (3) I'm asking because every time I use eMule it I get assigned a "LOW-ID" which it says is "because you're behind a firewall or router."
    Thanks.

    Thanks, but I mean the utility that lists all the available PORT NUMBERS: like 25, 80, 8080, 4000, etc.
    aMule is big on ports like: 4661, 4242, 6543, 4500, 4000, and 1111.
    Anyone know the name of the app or utility that lists the open port-numbers?

  • When drag date hierarchy into excel, it list all years , is there anyway to suppress?

    hi , I've created a cube with fact tables and a few dim tables. One of dim is DimDate and I've created a hierarchy year-month-day,
    pretty simple. When I drag this hierarchy to measure sales Amount, it lists all years from 1900 till 2599...  As a matter of fact,
    this cube only contains data of 2014.. is there anyway to only show those data with data?  
    It must be a property setting inside SSAS which I am not aware of.
    thanks
     Hui
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Hi Cat_ca,
    According to your description, Joson's suggestion is exactly right. We can apply custom filters to control the way that rows are displayed. Rows that do not meet the filtering criteria are hidden. You can filter by one or more columns. Please refer to the
    link below.
    Filter Data in a Table
    Besides, we can apply filters when you import data to control the rows that are loaded into a PowerPivot table. For more information on filtering during import, please refer to the link:
    Change the Rows that Are Imported from a Data Source.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • I recently bought the 27" IMac. I have to force shut it down, the menu shut down doesn't work, and most of the time it will start back up on it's own several hours or even days later. Any ideas?

    I recently bought the 27" IMac. I have to force shut it down, the menu shut down doesn't work, and most of the time it will start back up on it's own several hours or even days later. Any ideas?

    Note: No iMac PPC is 27".   PPC is for the iMacs that were new until the beginning of 2006.   They are all Intel now.
    I've requested a moderator move your thread.  No action is needed on your part.

  • Snow Leopard finder doesn't list all files on Windows 7 volumes

    From my Macbook Pro (10.6.8), I can connect to my Mac Pro, while it is running Windows 7 in Boot Camp, in order to access the Mac Pro's 6 volumes (1 Boot Camp, 5 Mac volumes). This is using SMB via Finder's 'Connect to server…' on an Airport network.
    However, Finder never displays all the files and folders on any of the Mac volumes it connects to through Windows 7. It seems to show approximately the first 18-9 files and folders, and then nothing. The same applies when I open a nested folder — it doesn't list all of its contents.
    Any ideas as to what's causing this and how I can fix it? I have searched all over but can't find any answers yet, so I'm hoping someone here has seen this before.

    Thanks for the reply, but I do have the Restore Windows box checked (see below). And the Resume features info (cnet link) only addresses how to turn the feature off, either selectively or globally. I'm simply looking for the functionality that I had with Snow Leopard and now seems to be absent. Maybe it's a bug in my Finder.

Maybe you are looking for