Query to get all the minutes in the last hour of a
Dear all,I'm writing a query that returns every minute last for an hour.
Like today, if the time is 04:15
The query returns;
03:14
03:15
.
.
04:11
04:12
04:13
04:14
04:15
Please suggest a logic.
Thank you very much.
Best regards, Imran
Hello
You can use this:
select sysdate-level/24/60 from dual connect by level<=60 ;
Kind regards
Sylvie
Tags: Database
Similar Questions
-
I'm looking for a query compare - my config of UN-produced SGD with my config of SGD prod. My OEM non-produits are not controlled environments, and no changes will happen dynamically. The fear is that we miss a config that we made in non-produits, but did not Prod! My main goal is: wanted configs everything has changed, so that I can compare the environments. This will also help check if we follow values recommonded Oracle.
Any help is very appreciated.
Thank you
Vijay
Thank you. Exploring the omsvfy command, looks like omsvfy-summary view gives version I'm looking for.
-Vijay
-
Hi all
I have almost 70 procedures in my database.
I want to get all the names of the different tables used in the procedures of 70.
Is this possible?
Note:
All the table names are prefixed by the name of schema as DEVSRC.table_name.
Please advice
Thank you
JOJohney says:
Hi, VTA doubt.
This query will give the names of the tables to only select stmt used in the procedure
or
List of table names that accompany in all DML operations inside the procedure?
Thank you
JOIt will give all the table to be used in select or any DML...
You can also view by creating a temp proc
SQL> drop procedure proc_test; Procedure dropped. SQL> select name, referenced_name, dependency_type from user_dependencies 2 where type = 'PROCEDURE' and referenced_type = 'TABLE' and name='PROC_TEST'; no rows selected SQL> create or replace 2 PROCEDURE proc_test 3 IS 4 v_ID number; 5 v_PRID number; 6 v_PRLID number; 7 v_DATERECEIVED date; 8 Cursor C1 is 9 select * from table_c; 10 BEGIN 11 open c1; 12 LOOP 13 FETCH c1 INTO v_ID,v_PRID,v_PRLID,v_DATERECEIVED; 14 EXIT WHEN c1%NOTFOUND; 15 insert into table_b values(v_ID,v_PRID,v_PRLID,v_DATERECEIVED); 16 Commit; 17 END LOOP; 18 CLOSE C1; 19 END; 20 / Procedure created. SQL> select name, referenced_name, dependency_type from user_dependencies 2 where type = 'PROCEDURE' and referenced_type = 'TABLE' and name='PROC_TEST'; NAME ------------------------------ REFERENCED_NAME DEPE ---------------------------------------------------------------- ---- PROC_TEST TABLE_B HARD PROC_TEST TABLE_C HARD SQL>
Concerning
Umesh
-
How to get all the users of the IOM, whose field Manager is not null or empty
Hello world
How to get all the users of the IOM, whose field Manager is not null or empty (using java code)
Thank you
Published by: user11205212 on January 18, 2010 12:38 AMHey beginner,.
I come to write this line where he can put his sql query... in the next post I provided the example sql also...
Concerning
VMPublished by: user12280771 on January 18, 2010 22:11
-
I use 5s iPhone and upgrade to iOS 9.3.1 but he can't get all the features...
What features Miss do you?
-
Hi, I am told by a website mFirefox is out of date so I can't get all the features. I continue to download an update, but it continues still to be. Could you please help me. Thank you.
Download the latest version of Firefox to:
- http://www.Mozilla.com/en-us/Firefox/new/
- http://www.Mozilla.com/en-us/Firefox/Central/
- http://www.Mozilla.com/en-us/Firefox/all.html
Uninstalling Firefox
- https://support.Mozilla.com/en-us/KB/uninstalling%20firefox
- DO NOT SELECT DELETE YOUR DATA AND USER SETTINGS
Install Firefox on Windows
Check and tell if its working.
-
Satellite L500 - can I get all the instruments and the driver for Win 7?
good then I got this Toshiba Satellite L500 with Intel... its installed with Windows Vista Home Premium...
The first problem I had with it was that the Toshiba programms stoped working and reformatting the drive and put it back, then I 'solved' this part...
Now, the second is that RUNDLL32.exe stops working after that the pc started motor pump and the computer stops responding or becomes slow...
I tried to format the drive but is still of problems.... more the toshiba programms are defective...After research I did his seems to have a place of Vista so I asked of upgrade me to windows 7 and then I also had a few questions?: :|
1. is it possible to get all the programms Toshiba Windows 7, flash cars, webcam etc.
2 does windows 7 run all the programms vista only?
3 - is so great that I heard?
Thank you! {for your help, I really need some help... thank you: 8}
Hello
I put t know why you have software problem with the Vista OS preinstalled but my Toshiba tools and utilities work fine! Once the control buttons stopped working, but I could fix it reinstall the VAP.
Back to your question:
Yes, you can get all the Win 7 drivers and tools for the L500 series. Why not?
If you would take a glance on the Toshiba page you would find all the stuff for download! -
I don't get all the sounds from my speakers
Original title: sound recording play
I don't get all the sounds from my speakers... the icon has an x through it... said that they don't are not hooked... shouldn't have internal sound
Hello
1. what version of operating system you are using?
2. What is the full error message that you receive?
You can try the procedure in the below mentioned link and check if it helps.
No sound in WindowsHope this information is useful.
-
computer crashed, have windows vista, indented leave, all the documents lost, can I get all the files, how to do it, in simple terms,
Thank you.
If by "computer of new beginning" you mean that you have started your recovery or disk restore factory set and reinstalled Windows, then the ability to recover your files is practically zero. You can try a utility like Recuva (http://www.piriform.com/recuva) but since you have rewritten the entire hard drive, it is highly unlikely that anything will be recoverable.
-
How to get all the icons on the desktop after installing xp
After installation of xp only recycle bin makes its appearance. How to get all the other program on the desktop icons?
Like internet explorer, my computer...Hello
How to create a shortcut on the desktop?
If the item is located in the start menu:
1. click on start. The start menu appears.
2 find the item that you want to create a shortcut. If the element is in a submenu of the menu, go to the submenu.
3 right click on the element. A context menu is displayed.
4. click on send to. A submenu appears.
5. click on desktop (create shortcut). XP creates a shortcut to the item.
_____________________________________________________________________________
Here is the vista forums
Try the xp forums at the below link for any other question of XP
http://answers.Microsoft.com/en-us/Windows/default.aspx#tab=4
Answers by topic
- Office & Customization
- Files, folders, & search
- Game
- Hardware drivers &
- Install, upgrade, and activate
- Internet Explorer
- Music & Sound
- Networking, mail, electronic, & updated online
- Maintenance & performance
- Photos & Video
- Programs
- Security, privacy, and user accounts
- System repair & recovery
- TV and movies on Windows
- Windows Update
-
My screen seems to be enlarged and cannot get all the info on the screen... How to make all this fit?
Go to the website of the manufacturer of your laptop > drivers and downloads Section > key in your model number > look for the latest Vista drivers > download/install them.
http://Windows.Microsoft.com/en-AU/Windows-Vista/change-screen-resolution
Change the screen resolution
Screen resolution refers to the clarity of the text and images on your screen. At higher resolutions, items appear sharper. They appear also smaller, so more items adapted to the screen. At lower resolutions, fewer items adapted to the screen, but they are larger and easier to see. At very low resolutions, however, images may have serrated edges.
See you soon,.
Mick Murphy - Microsoft partner
-
I get all of my email. I use Windows Live mail and Windows 7 Home. Each download I do, I'm missing some emails. I have sent several emails here, why I get all the answers?
Click on the touch me too much on your question.
-
How to get all the SMS messages?
Hi all
I want to get all the SMS messages in my application, but I can only find the API to get the mails.
I have search the Forum and know the method of listening to SMS messages, but not to get all SMS messages in the Inbox.
Can someone help me? Thank you.
I'm afraid you cannot access the SMS Inbox and not either, you can manipulate the messages as soon as they reach the Inbox.
However, as you already mentioned, you can listen to them on their way to the Inbox. -
How can I get all the permissions Admin with Windows 8?
I have recently installed Windows 8 on a used laptop that I bought and I'm trying to clean it up, but he always tells me I'm not allowed to watch even some files. How can I get all the PERMISSIONS ADMINISTRATOR?
You must use the run as administrator command. So if you run a program or a file, just click and click on run as administrator. If you delete something, you must have an administrator account.
-
How can I get all the file in a directory name?
Purpose:
Try to get all the file in a directory name.
My code:
FileConnection fconn = (fileDirectory) Connector.open (FileConnection);
Listing files = fconn.list ();
Listing files = fconn.list ("*", true); Try
_SCREEN.updateDisplay (files); txt shows unreadable.
String filename = fconn.getName ();
_SCREEN.updateDisplay1 (fileName); Show WMMS.Try using fileconnection.getName (). -->, But fail.
Could someone give a tip to solve the problem?
Thank you for your attention,
You cannot print just an enumeration.
It is a collection that contains objects, in this case of strings, as you can see on http://www.blackberry.com/developers/docs/7.1.0api/javax/microedition/io/file/FileConnection.html#li...You can use a while construct to browse the enum, as:
While (files.hasMoreElements ()) {}
System.out.println (files. NextElement());
}
(do not know if you do not cast explicitly to a string for sysout, iirc)
Maybe you are looking for
-
Finder is slow or unresponsive
I have a huge problem with the Finder on my iMac (late 2012). Finder does not often respond very slowly. It looks like it all started there, maybe after the last update of El Capitan weeks. I use Finder in combination with iCloud (by car), may be cau
-
Podcast stream and coverage not updated
Hello! My podcast stopped to update and even though I have a new episode on Podomatic where I host my podcasts it seems not show on the itunes store. Identical to the cover of podcast. I anime cover on a separate image hosting site http://s19.postimg
-
Hey, I bought a MacBook Air yesterday, May 11, 2016. I checked my support guaranteed and he says that the warranty coverage is until 5 April 2017. Can someone help me with the possible reasons for this problem? PS: I bought the MacBook on Flipkart an
-
Sorry for my bad English. If the cmos of laptop battery (I have a sat Pro 6100) is damaged completely, the laptop also ignite?
-
com Apple.Preferences.Users.RemoteService does not not el capitan
After the installation of El capitan (10.11.1), I'm removing a user. Then went into System preferences-> users & groups, and then unlocked and chose a user from other users of the section and clicked on the icon less below. After that, the system pre