Solved

convert hr to minutes and add mm part to converted minutes

Posted on 2003-12-05
4
656 Views
Last Modified: 2011-09-20
hi
i am using oracle 8i
my table structure is
SQL> desc TESTEFFORT
 Name                                                  Null?    Type
 ----------------------------------------------------- -------- ------------
--------------------
 NO                                                             NUMBER(4)
 HOURS                                                          NUMBER(5,2)

SQL> select * from TESTEFFORT;

       NO     HOURS
--------- ---------
        1       1.5
        1       1.5
        1       .35
        1      1.05
        1       2.4
        2       1.5
        2       1.5
        2       1.5
        2       1.5
        2       1.5
i want  individual  sum of minutes  
the out put is
No          minutes
-----------------
1          380
2          550
0
Comment
Question by:schavalam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 19

Accepted Solution

by:
Rimvis earned 50 total points
ID: 9881904
Is this what you want:

select No, SUM(HOURS) * 60 AS minutes from TESTEFFORT GROUP BY No;
0
 
LVL 8

Expert Comment

by:gajender_99
ID: 9882014
select No, SUM(HOURS) * 60 AS minutes
from TESTEFFORT
GROUP BY No
order by no asc;

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question