logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: Time problem: msg#00005

db.oracle.devel

Subject: Re: Time problem

dear friend,

I think following sql can help you in finding time diff in min and seconds.

for diff. in minutes:
select (totime - fromtime)*24*60 from tbl;
for diff. in seconds
select (totime - fromtime)*24*60*60 from tbl;

regards,
Avinash

On Mon, 02 Dec 2002 c.r.farmer@xxxxxxxxxxxxxxxx wrote :

if you minus one date field from one other then you get the time difference
in days.

like this

1* create table mydates ( xxx date)
SQL> /

Table created.

SQL> insert into mydates values ( to_date('02-dec-2002 09:55','dd-mon-yyyy
hh24:mi'));

1 row created.

SQL> select sysdate - xxx from mydates;

SYSDATE-XXX
-----------
-.00407407


then you can do some formating on the number returned





waseem altaf
<buboo@xxxxxxxxxx To: "Oracle" <oracle@xxxxxxxxxxxx>
pk> cc:
Subject: [oracle] Time problem
30/11/2002 07:22
Please respond to
"Oracle"






hi
i am new to oracle. how i get the difference between two time in query.
if two field "fromtime" and "totime" store the time corecectly and field
type is date. but problem is how i get the difference between two time any
seggestion or code
thanks


_____________________________________________________________
Get 100% private, FREE email for life!
Visit http://inbox.com.pk

_____________________________________________________________
Select your own custom email address for FREE! Get you@xxxxxxxxxxxxxx w/No
Ads, 6MB, POP & more! http://www.everyone.net/selectmail?campaign=tag

---
Change your mail options at http://p2p.wrox.com/manager.asp or
to unsubscribe send a blank email to %%email.unsub%%.






---
Change your mail options at http://p2p.wrox.com/manager.asp or
to unsubscribe send a blank email to %%email.unsub%%.


________________________________________________________________
NIIT supports World Computer Literacy Day on 2nd December.
Enroll for NIIT SWIFT Jyoti till 2nd December for only Rs. 749
and get free Indian Languages Office software worth Rs. 2500.
For details contact your nearest NIIT centre, SWIFT Point
or click here http://swift.rediff.com/




---
Change your mail options at http://p2p.wrox.com/manager.asp or to unsubscribe send a blank email to leave-oracle-1796914O@xxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo