How to add an hour to function date
Hai AllThis is my select statement
Select to_number (TO_DATE (TO_CHAR(Intime,'DD-MON-YYYY') |)) » '||
To_char (0815, '0000'), "MON-DD-YYYY HH24") - respondent
) * 24 * 60 dail_Att;
I had another table called Train_mast, the fields are
TRAINCODE VARCHAR2 (4)
TRAINNO VARCHAR2 (10)
TRAIN VARCHAR2 (30)
DATE OF V_DATE
MAJ VARCHAR2 (2)
LATE_HRS VARCHAR2 (4)
REMARKS VARCHAR2 (10)
REFNO VARCHAR2 (10)
UNITID VARCHAR2 (2)
Here is when the train is late, I entered the late hours
For example, if the train is late 30 so I need to add with the start time 0815 + 30 0845 IE and I need to subtract from the respondent
How can I do this
Concerning
Srikkanth.M
Hi Srikkanth,
I have no watch in your query, but in general what I feel, it's that you want to add the number of minutes to a date.
To add minutes to a date, you can do all of this-
SYSDATE + 30 / (24 * 60) - this will add 30 minutes at present.
SYSDATE + 15 / (24 * 60) - this will add 15 minutes at present.
I hope this helps.
Best regards
Arif Khadas
Tags: Oracle Development
Similar Questions
-
How to add blocks of programming functions?
Hello
I downloaded LabSQL file involve blocks and examples. do you know how to add functions of programming as attached picture?
Best regards
Add the folder that contains these screws in the user.lib of your LabVIEW installation folder.
-
How to add days, hours, minutes and seconds to a date?
Hello
I have the following problem.
Saw 4 integers D, H, M, and S (each of them can be negative) and a date Da, I want to add days D, H hours, M minutes and seconds of S date Da.
For example, if
This means that I want to add 3 days, -2 hours, 20 minutes and -12 seconds to the date Da, and the new date must be in the following date:Da= to_date('28/06/2011 14:50:35','dd/mm/yyyy HH24:mi:ss'), and D = 3, H = -2, M = 20 and S = -12,
Is it possible to write a query for this problem or should I use PL/SQL?to_date('01/07/2011 13:10:23','dd/mm/yyyy HH24:mi:ss')
Thank you.There is no need of PL/SQL
SQL> alter session set nls_date_format = 'DD/MM/YYYY HH24:MI:SS'; Session altered. SQL> var d number SQL> var h number SQL> var m number SQL> var s number SQL> exec :d := 3; :h := -2; :m := 20; :s := -12 PL/SQL procedure successfully completed. SQL> select to_date('28/06/2011 14:50:35','dd/mm/yyyy HH24:mi:ss') 2 + :d 3 + (:h / 24) 4 + (:m / 24 / 60) 5 + (:s / 24 / 60 / 60) 6 from dual; TO_DATE('28/06/2011 ------------------- 01/07/2011 13:10:23
-
How to add a month to a date?
Hello
I have the following stored procedure corresponding to the syntax < month > I am after. I think that the code is pretty self-explanatory, but if something is clear so please ask :)
CREATE or REPLACE PROCEDURE &HKResourceDB_Schema_Name..UpdateSubscriptionDates ( aGroupID NUMBER ) AS BEGIN UPDATE HKGroup SET SubscriptionStarted = CAST(SYS_EXTRACT_UTC(LOCALTIMESTAMP) AS DATE), SubscriptionEnded = CAST(SYS_EXTRACT_UTC(LOCALTIMESTAMP) AS DATE) + <one month> WHERE ID = aGroupID; END UpdateSubscriptionDates; /
What is the use of it to add months simply use add_months() function
SQL> select to_char(sysdate,'dd-mon-yyyy') from dual; TO_CHAR(SYS ----------- 10-sep-2009 -- NOW ADD MONTHS AS BELOW SQL> select to_char(add_months(sysdate,1),'dd-mon-yyyy') from dual; TO_CHAR(ADD ----------- 10-oct-2009
-
How to add manual iOS app health data?
I use Apple Watch series 1 with Watch OS 3.
Very useful for me has been adding data to guide health app. Now with OS3 shows, I couldn't find these options.
Can someone help me in this case?
Thank you, Michael
Hi Michael
To manually add data in the application of health:
- On your iPhone, open the application of health.
- Click on the data the health tab.
- If you are not initially on the main screen of healthcare data, type on the "< health data ' link (top-right) to get back to it.
- Select the category of data that you want to add:
- Activity, Mindfulness, Nutrition, sleep, measurements of the body, health, reproductive health, results, vital records.
- On the next screen, tap the metric you want to add:
- Parameters that already contain data for the current week are displayed in the box format, with current totals.
- Others are listed below in the list format, under "No. saved data.
- Whether in box form or list form, tap to select the metric.
- For example: If you chose healthcare, you can then select the blood sugar.
- On the next screen, press the "+" (top right), then add your data and press Add (top-right) when finished.
More information:
Use the app on your iPhone or iPod touch - Apple Support health
-
How to calculate the hours between two dates by the numbers
If I update 09:00 start time 17:00 end time of shift in C3 and B3, how to use a D3 formula to calculate the number of hours between the two? Then I can just copy down the lines for nth years...
It is a spreadsheet of the part-time staff payroll.
I'm sure that a lot of people out there have done that.
Help, please.
Thank you.
Eddie
What program of worksheet that you are using? Since you have a newer iMac running El Capitan, I can safely assume that you use NOT AppleWorks, which is a Power PC application that can run on any OS newer than the snow leopard, OS X 10.6.8.
If you use numbers, try to repost your question in numbers for Mac forum. If you use Microsoft Excel, try posting in the Microsoft forums. LibreOffice also has community support.
-
Does anyone know how to add a folder with sample data the installer to labview
I have set up a program to install the application to a project I'm working on that. I want to add a folder to the installation with some sample data files. Currently, I added a readme file that tells the user to decompress a file included with the Setup program in a certain folder. Is there a way to automate the process and include this with the installer?
First add all the files you want to include in the project. Then in the properties of the installer:
1 use tab destinations to add a folder if you have the sample files contained in their own folder.
2. on the file source page, expand "My Computer" and find the files in the project you want to add.
3. Select the folder you want to that they be located on the right side and click the right arrow.
-
How to get an hour on average data DAQ 6009
I am a researcher. I ' am doing a job that requires constant tension of the DAQ 6009 map reading. Now all that his giving is very (for my work) fluctuating. So I need a medium-sized data from it during an interval of 100 ms or something. I can do through VI daq assistant or outside I do or is there a way solv EThis problem please reply.
Hi perumpadapu.
Yo did set sampling rate and size of block to get blocks of 100ms of data? Really?
So why have the value "1 k"? This way you will get data every second...
So I told you to use the average function to calc averages. You even tried it?
-
How to add the values of the data from two lines
We enter the data as
name values
==== ====
a 100
b 125
c 140
We need output of
total of the Name values
==== ==== ====
a 100 100
b 125 225 (100 + 125)
c 140 365 (225 + 140)
How do I solve this problem... ?1008318 wrote:
We enter the data asname values
==== ====
a 100
b 125
c 140We need output of
total of the Name values
==== ==== ====
a 100 100
b 125 225 (100 + 125)
c 140 365 (225 + 140)How do I solve this problem... ?
Hello
SQL> with test_data 2 as 3 ( 4 select 'A' name,100 val 5 from dual 6 UNION ALL 7 select 'B',125 from dual 8 UNION ALL 9 select 'C',140 from dual 10 ) 11 select name,val,sum(val) OVER(order by val) total from test_data; N VAL TOTAL - ---------- ---------- A 100 100 B 125 225 C 140 365
Kind regards
Claudy KPublished by: Claudy K on May 28, 2013 02:52
-
How to add hours, Minutes in table
How to add hours, Minutes to the table, I get an error time between 1 and 12 below is my code
PACTUALOUTTME: = TO_DATE (' 17:00 "," HH: MI PM ');
PROUNDEDINTIME: = TO_DATE (' 09:05 ',' HH: MI AM');
PROUNDEDOUTTIME: = TO_DATE (' 16:12 ',' HH: MI PM ');
PHRSWORKED: = TO_DATE('08:05','HH:MI');
* PLATE: = TO_DATE('00:12','HH:MI'); **
* PLEFTEARLY: = TO_DATE('00:05','HH:MI'); **
POT: = TO_DATE('01:00','HH:MI');
PCOMMENTS: = "left early."
PREMARKS: = 'Permission ';
PCREATEDBY: = '101';
I want to insert hours with the minutes and the minutes, I used the DATE data type for date and time columns preceding
I think that the highlight is making the error any help pleaseUse HH24 during the day between 0 and 24 hours.
Use HH for hour of day between 1 and 12.PLATE: = TO_DATE('00:12','HH24:MI');
PLEFTEARLY: = TO_DATE('00:05','HH24:MI');Good luck
Published by: user9251649 on 26.09.2012 00:25
-
How to add a pop-up window to set the date and time in a field
How to add a pop-up window to set the date and time in a field? I know how to add the date. I create the field time with JavaScript event initialize like this:
this.rawValue = num2date(date(), DateFmt(4));
What I should change the script and the motive to do it properly.
I changed the Format of data (object > link tab) date time but nothing happen. I want to set up a pop-up window as for the setting of date but with addition of time setting.
Is this possible? Or that the date fixed like that? Should I get hour hand?
Hello
I don't think you will get both in the calendar popup. Basically, the popup calendar is the default behavior. It may be possible to develop a custom component, but it would take a bit of scripting and would probably not be worth the effort.
I'd get the user to time manually entry in a separate field.
Good luck
Niall
-
How to create a function for the function date two
Hai All
How can we create a function for the date function two and to return the number of hours between two dates
For example
1 January 2010 0815' - '01-jan-2010 1715' and I need to calculate the time between two dates
How can I create a procedure
Thanks I advance
Srikkanth.MWhat have you tried?
Here is an example (untested):
CREATE OR REPLACE FUNCTION RETURN_HOURS ( pDateStart IN DATE , pDateEnd IN DATE ) RETURN NUMBER DETERMINISTIC AS BEGIN RETURN (pDateEnd - pDateStart) * 24; END RETURN_HOURS;
-
How to add data to a track to match the album data
Hi people. I have a separate track that I want to add to an album by the same artists, but listening on "Get Info" shows a track doesn't have the name of the album or artists, only the name of the track. I had to convert the real album of FLAC to MP3, then the separate track was already a MP3 format. I have now from the real album with all relevant data, so that the separate all in the same album, but the separate track track did not have the relevant data and I don't know how to add this data as any I can open it with is using "Get Info" but which cannot be modified and regardless of how many times I added the album ALL tracks including this one "separated", to iTunes to burn, iTunes will 'separate' track in the same album so I can burn. I was able to change a titles info by iTunes so that his now identical to the rest of the album but iTunes don't put in the same album! the only thing I can think is lacking data on this one track before you add it to iTunes, but cannot find a way to do it. Or did I miss something about iTunes?
I need this sorting asap too please if anyone has any ideas I would be very grateful thank you
Puretoon,
The use of Get Info is the right way to edit track information. If it is not allowing you to make changes, make sure that the audio file is not set to "ReadOnly."
In addition, you can burn an audio CD, even if the tags are not quite right. He just put the titles in an iTunes playlist in the order you want, and then choose file > burn Playlist to disc.
-
Mr President
Jdev worm is 12.2.1
How to add two lines when the second row is not visible, but also gets the first data line too?
I want to add two lines like below picture, but want the second to remain invisible.
I asked this question but my way of asking was wrong, that's why for me once again.
Concerning
Try to follow these steps:
1. in the database table to add the new column "JOIN_COLUMN" and add the new sequence "JOIN_SEQ".
2. Add this new column in the entity object. (You can add this in entity object by right clicking on the entity object and then select "Synchronize with database" then the new column and press on sync)
3. in your bookmark create button to create only one line NOT 2 rows.
4 - Open the object entity--> java--> java class--> on the entity object class generate and Tick tick on the accessors and methods of data manipulation
5 - Open the generated class to EntityImpl and go to the doDML method and write this code
protected void doDML(int operation, TransactionEvent e) { if(operation == DML_INSERT) { SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction()); oracle.jbo.domain.Number seqValue = seq.getSequenceNumber(); setJoinColumn(seqValue); insertSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn()); } if(operation == DML_UPDATE) { updateSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn()); } super.doDML(operation, e); }
private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn) { PreparedStatement stat = null; try { String sql = "Insert into table_name (COLUMN_1,COLUMN_2,COLUMN_3,JOIN_COLUMN, HIDDEN_COLUMN) values ('" + value1 + "','" + value2 + "','" + value3 + "','" + joinColumn + "', 1)"; stat = getDBTransaction().createPreparedStatement(sql, 1); stat.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { try { stat.close(); } catch (Exception e) { e.printStackTrace(); } } } private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn) { PreparedStatement stat = null; try { String sql = "update table_name set column_1='" + value1 + "', column_2='" + value2 + "', column_3='" + value3 + "' where JOIN_COLUMN='" + joinColumn + "'"; stat = getDBTransaction().createPreparedStatement(sql, 1); stat.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { try { stat.close(); } catch (Exception e) { e.printStackTrace(); } } }
-
How to add the date felxfiled in OFA
How to add the date felxfiled in OFA
Hi gurus,
How to add a date in the form OFA field. I tried but no optin schedule it. I need to add the calendar options before the flexfiled.
Concerning
Hello
Allocate FND_STANDARD_DATE segment value your FDF everywhere where you want to see the calendar on the page of the OFA.
Let me know if you need more help on this.
Kind regards
Hemant
Maybe you are looking for
-
How can I upgrade to Windows 7 or Windows 8 on HP laptop and be authentic?
Dear Sir I have 3 HP laptop with Windows Vista and want to upgrade to Windows 7 or Windows 8, then you could pls advice how could I do to install new windows 7 or 8 on my laptop with the authentic version? and pls note the Microsoft label on my HP la
-
error 0x800CCC0F on my windows mail
It is a problem with my windows mail. with vista can receive messages but takes 3-4 hours to send a message · You have problems with programs· Error messages· Recent changes to your computer· What you have already tried to solve the probl
-
BlackBerry Smartphones cannot open the text message
I am registered on a site Web Backberry, they sent me the code of my mobile, I need to complete my registration. On the mobile, I see that I received 5 messages, but I can't access it. I received other massages and emails from different sources. My e
-
Shared with me on Skydrive folders are not appearing in Skydrive App on my Pro Surface
My wife has several folders shared on his Skydrive account with mem (complete edition access)... these records are not displayed in my Skydrive on my Surface Pro application. Is there any solution for this? To access or download on shared folders,
-
What happened to the line of photoshop tool?
Where is the online tool? I am trying to add lines on an image to show the dimensions.