Solved

convert hr to minutes and add mm part to converted minutes

Posted on 2003-12-05
4
655 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL replication over high latency link 10 67
T-SQL Default value in Select? 5 54
SQL Query assistance 16 46
Display SQL 2008 last modified/update Database 11 53
Read about achieving the basic levels of HRIS security in the workplace.
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

726 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