Query to get all minutes in last one hour

Dear All,
I am trying to write a query that returns every minute in last one hour.
Like now, if the time is 4:15
The query returns;
3:14
3:15
4:11
4:12
4:13
4:14
4:15
Please suggest a logic.
Thank you so much.
Regards, Imran

You can also add or subtract INTERVAL literals to or from a DATE, for example:
SYSDATE - INTERVAL '5' MINUTE
The result is a DATE.
Frank @ Getting the hour,seconds and minutes of a date data
Regrads
Girish Sharma

Similar Messages

  • Query to get all ports assigned and used by EBS instance.

    Hi,
    Can some one pleaase help to get
    Query to get all ports assigned and used by EBS instance.
    Help is appreaciated.
    Regards,
    Milan

    MILAN RATHOD wrote:
    Hi,
    Can some one pleaase help to get
    Query to get all ports assigned and used by EBS instance.
    Help is appreaciated.
    Regards,
    MilanIn addition to the thread referenced above by Helios, please check the context files and (Oracle E-Business Suite R12 Configuration in a DMZ [ID 380490.1] -- F. List of Ports to Open in a DMZ Configuration).
    Thanks,
    Hussein

  • How to get all the values in one column of a JTable

    How to get all the values in one column of a JTable as a Collection of String.
    I don;t want to write a for loop to say getValueAt(row, 1) eg for 2nd column.

    I don;t want to write a for loop to say getValueAt(row, 1) eg for 2nd column. You could always write a custom TableModel that stores the data in the format you want it. It would probably be about 50 lines of code. Or you could write a loop in 3 lines of code. I'll let you decide which approach you want to take.

  • How do i get all my music in one library file?

    My entire iTunes library is on an external hard drive "A". Due to my Powermac G5 dying, I had to set up iTunes on my Macbook Pro. I used Senuti to transfer all my music and content from my iPod to a different external drive I will call "B". Once that was set up, I erased and synced my iPod again. Everything is fine with the iPod and my Apple TV. In the iTunes preferences, I clicked Advanced and changed where I wanted my library to reside. I selected the new location which is drive "B".
    My question now is that when I click on my iTunes Music folder, I am only showing 269 items which is a mixture of music and video content. I have well over 1,300 songs not to mention 87 music videos and 60 podcast videos. So when I did a search to see where a lot of my songs were located, I was surprised that it was showing the songs were being housed on external drive "A" even though I set it up that I want drive "B" to be where my library file should be. So as a test, I disconnected drive "A" then opened iTunes and tried to play a certain song and it said it couldn't play the song because the original file could not be found. When I reconnected the drive, it played just fine.
    So what do I need to do to get all my music on one hard drive, for me that would be drive "B"? Do I need to follow the steps in the article below to make that happen? I have no problem with having a back up of my library, I just want all my music in one place in the location I have specified and keep the back up on the other drive so I won't have to keep it connected to the computer.
    Thanks
    http://support.apple.com/kb/HT1449?viewlocale=en_US

    Nevermind...I did what it said to do in the article and it worked!

  • Oracle query to get all occurences of a text in a string

    Hi
    Does anybody know how to write a query to get all occurences of a text in a string in different rows of the table
    For eg:
    I have a string <aa>bb</aa><aa>cc</aa><aa>ddd</aa>
    I have to find every occurence of <aa> and get the data between <aa> and </aa>
    So the output should be
    bb
    cc
    ddd
    I think this can be done by using a regular expression but I dont know how.
    Can anyone help me?
    Thanks in advance.

    user2360027 wrote:
    BluShadow,
    The query gives correct results if i only have <aa></aa>
    What if i have <ff></ff>?
    Example:
    <aa>bb</aa><aa>cc</aa><aa>ddd</aa><ff>dsd</ff>
    I want to have the following (dsd should not be there in the result)
    bb
    cc
    dddThis is a new requirement and not what you asked for in your original post. Perhaps you should tell us exactly what you are trying to achieve and what database version you are using to save us guessing.
    To crokitta,
    This version will deal with multiple rows..
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select '<aa>bb</aa><aa>cc</aa><aa>ddd</aa>' as x from dual union all
      2             select '<aa>xx</aa><aa>yy</aa>' from dual)
      3  -- end of test data
      4  select x, vals
      5  from (
      6    select x, regexp_replace(REGEXP_SUBSTR (x, '>[^<]+', 1, lvl),'[<>]') as vals
      7    from t
      8        ,(select level lvl from dual connect by level <= (select max(length(regexp_replace(x,'[^>]*'))/2) from t))
      9    )
    10  where vals is not null
    11* order by 1,2
    SQL> /
    X                                  VALS
    <aa>bb</aa><aa>cc</aa><aa>ddd</aa> bb
    <aa>bb</aa><aa>cc</aa><aa>ddd</aa> cc
    <aa>bb</aa><aa>cc</aa><aa>ddd</aa> ddd
    <aa>xx</aa><aa>yy</aa>             xx
    <aa>xx</aa><aa>yy</aa>             yy
    SQL>

  • SQL Query to get All AD Groups and its users in Active Directory

    Hi,
       Is there any query to get all AD groups and its user in an instance of a SQL server?

    Check this blog.
    http://www.mikefal.net/2011/04/18/monday-scripts-%E2%80%93-xp_logininfo/
    It will give you more than what is required. If you dont want the extra information,then you can try this.. I took the query and removed the bits that you might not require.
    declare @winlogins table
    (acct_name sysname,
    acct_type varchar(10),
    act_priv varchar(10),
    login_name sysname,
    perm_path sysname)
    declare @group sysname
    declare recscan cursor for
    select name from sys.server_principals
    where type = 'G' and name not like 'NT%'
    open recscan
    fetch next from recscan into @group
    while @@FETCH_STATUS = 0
    begin
    insert into @winlogins
    exec xp_logininfo @group,'members'
    fetch next from recscan into @group
    end
    close recscan
    deallocate recscan
    select
    u.name,
    u.type_desc,
    wl.login_name,
    wl.acct_type
    from sys.server_principals u
    inner join @winlogins wl on u.name = wl.perm_path
    where u.type = 'G'
    order by u.name,wl.login_name
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Query for getting all function and procedure inside the packages

    hi All
    Please provide me Query for getting all function and procedure inside the packages
    thanks

    As Todd said, you can use user_arguments data dictionary or you can join user_objects and user_procedures like below to get the name of the packaged function and procedure names.
    If you are looking for the packaged procedures and functions source then use user_source data dictionary
    select a.object_name,a.procedure_name from user_procedures a,
                  user_objects b
    where a.object_name is not null
    and a.procedure_name is not null
    and b.object_type='PACKAGE'        
    and a.object_name=b.object_name

  • How do i get all my songs of one album together under one album artwork

    how do i get all my songs of one album together under one album artwork  some are ok and some are all over the place

    If the songs in your library are not all in the iTunes Music folder you can consolidate them (Choose File > Library > Consolidate Library). When you consolidate, any songs in the iTunes Library that are not in the iTunes Music Folder are copied to the Music Folder and the Library is updated to point to those new files. Files already in the iTunes Music Folder have no changes made to them: Consolidating your library - Windows

  • Ever since I got the new update 5.1 my iPod's been dying faster. It used to last for at least 3 hours, now it won't even last one hour and dies for no reason(even when it's in sleep mode, and not in use) What's wrong with it? Is it the update? lagging too

    Ever since I got the new update 5.1 my iPod's been dying faster, even after I charge it. It used to last for at least 3 hours, now it won't even last one hour and dies for no reason (even when it's in sleep mode, and not in use) What's wrong with it? Is it the update? It's lagging as well..

    Some Users have Reported that a  Restore as New  has helped Resolve issues...
    Backup and Set Up as New Device
    http://support.apple.com/kb/HT4137

  • Need to create report query to get latest open and last closed period for given application

    Hi All,
    I need to create a report query to get below result displayed in report output.
    1)   -   Application name
    2)   -    Ledger name
    -o/  -Operating Unit
    3)   -  Last Closed Period
    4)   -  Current Open Period
    5)   -  Date Closed – Last Closed Period
    6)   -  Date Open – Current Open Period
    I tr I tried to create the query below is the same. Please let me know if it looks fine.
    SELECT *
      FROM (SELECT fav.application_name ,
                   hou.name Operating_Unit_Name,
                   gl.name Ledger_name,
                   gl.latest_opened_period_name,
                   gps.period_name Period_Name,
                   DECODE(gps.closing_status, 'O', 'Open', 'C', 'Closed') status,
                   gps.last_update_date Last_status_modified_date
              FROM gl_period_statuses gps,
                   gl_sets_of_books   gsob,
                   fnd_application_vl fav,
                   hr_operating_units hou,
                   gl_ledgers         gl
             WHERE gps.period_name = gps.period_name
               AND gps.closing_status ='C'
               AND fav.application_short_name =
                   NVL('&p_application_short_name', fav.application_short_name)
               AND gps.application_id = fav.application_id
               AND gsob.set_of_books_id = gps.set_of_books_id
               AND hou.set_of_books_id = gps.set_of_books_id
               AND gl.ledger_id = gsob.set_of_books_id
               AND hou.organization_id=NVL('&p_operating_unit',hou.organization_id)
               AND gl.ledger_id=NVL('&p_ledger_id',gl.ledger_id) 
             ORDER BY gps.last_update_date desc )WHERE ROWNUM = 1 
    UNION ALL
    SELECT *
      FROM (SELECT fav.application_name Application_Name,
                   hou.name Operating_Unit_Name,
                   gl.name Ledger_name,
                   gl.latest_opened_period_name,
                   gps.period_name Period_Name,
                   DECODE(gps.closing_status, 'O', 'Open', 'C', 'Closed') status,
                   gps.last_update_date Last_status_modified_date
              FROM gl_period_statuses gps,
                   gl_sets_of_books   gsob,
                   fnd_application_vl fav,
                   hr_operating_units hou,
                   gl_ledgers         gl
             WHERE gps.period_name = gps.period_name
               AND gps.closing_status = 'O'
               AND fav.application_short_name =
                   NVL('&p_application_short_name', fav.application_short_name)
               AND gps.application_id = fav.application_id
               AND gsob.set_of_books_id = gps.set_of_books_id
               AND hou.set_of_books_id = gps.set_of_books_id
               AND gl.ledger_id = gsob.set_of_books_id
               AND hou.organization_id=NVL('&p_operating_unit',hou.organization_id)
               AND gl.ledger_id=NVL('&p_ledger_id',gl.ledger_id) 
             ORDER BY gps.last_update_date desc)
             WHERE ROWNUM = 1

    It is within the table I believe (I'm not a DBA or a developer) since I created a BLOB column and then used the file browse feature to allow users to attach a resume to the table in order to be able to perform a search of the attached documents.
    I'm just having a hard time pointing the link in the search results report to the document in the blob column.
    The information on that page is great if you're trying to create a link to the document on the initial report.
    But I created a query using Oracle Text to run a report that does a boolean search of the attached word documents in the table.
    When it displays the search results, it doesn't create a link to the document and I can't figure out how to do it.
    Here's a link the the instructions I used to create the initial search report with Oracle Text, mind you I only created the index and query, I didn't add in all the link data since they're using documents on websites and I'm using documents in a table.
    http://www.oracle.com/technology/products/database/application_express/pdf/apex_text_application_v1.6.pdf
    If you can help me with this I'd really appreciate it.
    Thanks again.
    Greg
    Edited by: gjones77 on Dec 2, 2008 8:14 AM

  • Query to get all active customers in oracle apps

    Hi All,
    I want to grab all active customers account number, customer name, email address, tel number. Could any one give me the query to get it.
    Thanks,
    Red.

    Hi,
    Please refer to this document, and see if it helps.
    Note: 68046.1 - SQL Scripts To Extract Information Relating To A Particular Customer
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=68046.1
    Regards,
    Hussein

  • A query to get all sales processed in 2007 ?

    Hi All,
    I got a requirement from user saying
    " We have situations where "new" sales get processed against already existing or "old" sales orders. I need a query which shows all sales processed in year 2007 by sales order or whatever other identifier that is used"
    This is not making any sense to me. Can anyone help me with this ? Is there something to do with ship date or anything? Please let me know!!
    Thanks in advance
    Prathibha

    Hi Prathibha,
    The only idea that came to my mind is the following: your customer sends order in a regular interval (weekly, monthly…) under a number that represents an agreement between you and your customer.
    Under this scenario, you have one order created in the previous period from customer A that was partially shipped. In the current period, customer A sends a new order to you, but the quantity sent by your customer includes the balance. So, if new_quantity greater than old order balance, you will need to add an order with the balance.
    Still under this scenario, the report could all orders in OM posted/shipped in 2007 under this agreement.
    Just an idea, hope it helps,
    Ketter Ohnes

  • Is there any query to get all faulted instance Ids which should be recoverd

    Hi All,
    I am working on a production Environment. I have four managed servers. Since the integration involves invoking legacy systems we are encountering either the JCA error or siebel adapter error ... so we wanted to recover as soon as faulted.If i have one managed servers i can easily find out the faulted instances .. since it was having four managed servers and more than 25 soa projects ... difficult to track it .... i need to click on each of the managed servers and get the faulted instances and recover it ...
    Can we have a query which shows all faulted instances in managed servers so that i can go directly to COMPOSITE ID and recover it..instead of going to all the 25 soa managed projects...and recovering it.
    Thanks in Advance,
    Venugopal SSS Raja

    Hi Venu,
    If I can understand your use case correctly, you want to monitor the status of the WLS instances.
    If yes, then you can use WLST to connect to the server and fetch the status. You can change this script to fetch the information of all servers and display at once.
    There is an example given @ http://weblogic-wonders.com/weblogic/2011/03/16/weblogic-server-state-using-wlst/
    See if this helps.
    Thanks,
    Patrick

  • Query to get all records were AMNT1 AMNT2

    Hi,
    I have two fields Field1,Field2 and two Key figures-AMNT1,AMNT2. I want to get all the records for which AMNT1 > AMNT2.
    Any clues or solutions will be appreciated.
    Thanks
    Simmi

    Hi simmi
    You can put condition for this requirement in the query designer.
    When you are in the query designed have a formula with Boolean operation statement "is greater than", as shown.
    AMNT1>AMNT2
    now go to condition button and add one condition for this formula. the condition can be 'key figure'= formula name, Operator = 'Equal to' and value = '1'.
    Aply this condition and execute query with this condition active.
    regards
    rahul

  • I have two apple ids. How do I get all my itunes to one account?

    I have two apple ID's. Most of my iTunes music was purchased using ID #1 and resides on my MAC. The MAC runs an OS so old that I cannot upgrade to the current version of iTunes. about 1/4 of my music was purchased using ID#2 (the current one) and resides on my windows based machine. Using the Home Sharing feature I can see all of my music on the Windows machine. However, upon upgrading to iPhone 6plus it seems that I only have music purchased via my phone (so about 1/4 of the 1/4 portion that is under ID#2). I have tried backing up to an external HardDrive, I have tried syncing using iTunes. I cannot seem to get all of my music on one account. Ideally, all of my music would be under ID#2, accessible by my MAC, my Windows based machine, and my iPhone 6plus....SOMEONE PLEASE HELP. I've read countless threads on the topic and nothing I try seems to work.

    Sign out of the account you don't want and then Sign In with the account you want to use.

Maybe you are looking for

  • Installation issue on opensuse 11

    Hey All,<br /><br />Im a Windows guy still struggling with Linux set-upsso take it easy on me! :)  and Im having a hard time getting blaze installed and running.<br /><br />This is what Ive done so far.  I've successfully set-up the latest copy of op

  • How to create a dvd menu

    hi! how would I go about creating a dvd menu, either within a program or in a program that can be burned with another program? I have adobe and macromedia suites, so hopefully I have the programs that are necessary, but I don't even know where to beg

  • Adobe PO Form in SRM

    Hello Frn's. I  am creating a z Adobe by copying a exisitng PO Adobe form (bbp_po_adb) . Beacuse i need some more fileds calculation, so have to  create a Z interface as well by copying a existing interface (if_bbp_po_adb). But then i need to impleme

  • Cost of renting movies on Apple TV in the UK

    I'm new to Apple TV (bought it yesterday!) so bear with me.... On the Apple TV main screen I'm offered HD movies to rent  - am I right in presuming if I click to rent these I'l be renting htem from the Apple Store? But I can also stream movies from N

  • Work Item Objects and attachments

    Hi, We are working for the travel expenses related workflow scenario where we are able to see the employee trip details under the objects and attachments. This happens with the method 'DISPLAY' which is a default method and which is used to display t