Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. convert mints into hours

convert mints into hours

Scheduled Pinned Locked Moved Database
databasehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 10562086
    wrote on last edited by
    #1

    Quote:

    select distinct(Emp_Status),
    count ( Att_Mints/60) as OTHOUR,
    COUNT (Att_Totalmints /60 ) as ProductionHours
    from Attendence
    inner join EmployeeMaster on fk_Att_EmpCode=fk_Att_EmpCode
    where year(Att_Date)='2014' and Month (Att_Date)='1'
    group by Emp_Status

    in above query Count of

    Att_Mints

    is =150 and count of

    Att_Totalmints

    is 120 i want output of OTHOURS=1:30min and

    ProductionHours

    =2 hour please help me

    L 1 Reply Last reply
    0
    • M Member 10562086

      Quote:

      select distinct(Emp_Status),
      count ( Att_Mints/60) as OTHOUR,
      COUNT (Att_Totalmints /60 ) as ProductionHours
      from Attendence
      inner join EmployeeMaster on fk_Att_EmpCode=fk_Att_EmpCode
      where year(Att_Date)='2014' and Month (Att_Date)='1'
      group by Emp_Status

      in above query Count of

      Att_Mints

      is =150 and count of

      Att_Totalmints

      is 120 i want output of OTHOURS=1:30min and

      ProductionHours

      =2 hour please help me

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You already posted this question at how to store "count of minute' into hours[^]. Please post in one forum only.

      Veni, vidi, abiit domum

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups