Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: SQL*Plus and PL/SQL >> how to sum of time

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: how to sum of time
 Neeraj  Posted: Feb 12, 2008 02:04:38 AM

 Total Post: 258
 Joined: Jan, 2007






 hi,
is ther any bulit in function in sql by using i can get sum of time variables like :
18:50 + 22:50 =41:40

or i hav to make a function to calculate it ,if any one hav that function so plz send me.
thxs

 Murtuja
Posted: Feb 12, 2008 03:40:55 AM  

 Total Post: 857
 Joined: Jan, 2006






 
You need to provide more information like
what is the datatype of variables?
where you want to store sum ?
variable's value coming from table ? if yes then datatype of that column.

 Neeraj
Posted: Feb 12, 2008 03:50:36 AM  

 Total Post: 258
 Joined: Jan, 2007






 
this vales r comminf from database & type is nuber & wants to print on reports like :

empno time
123 14:30
123 11:50
sum 26:20
234 05:32
234 07:32
. .
. .
. .
sum ....

this kinda reprt i wanan make oracle reports on 10g

 newuser
Posted: Feb 22, 2008 02:27:13 AM  

 Total Post: 10
 Joined: Feb, 2008






 
hi,

kindly refer this example

SELECT TO_NUMBER(TO_CHAR(SYSDATE,'HH24') + TO_CHAR(LOGIN_DT,'HH24'))
|| ':' || TO_NUMBER(TO_CHAR(SYSDATE,'MI') + TO_CHAR(LOGIN_DT,'MI'))
FROM EMP

Regards,
Nagaraj

 Neeraj
Posted: Feb 25, 2008 12:25:38 AM  

 Total Post: 258
 Joined: Jan, 2007






 
thxs

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gopu Gopi335
  Gitesh Trivedi322
  Vinoth Kumar264
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software