Forum Replies Created

Viewing 7 posts - 46 through 52 (of 52 total)

  • RE: How can we calculate Age of employee?

    Hi,

    you can try this

    select EMP_CODE,DATE_OF_BIRTH ,DATEDIFF(DD,DATE_OF_BIRTH,getdate())/365 as years,(DATEDIFF(DD,DATE_OF_BIRTH,getdate())%365)/30 as months,

    DATEDIFF(DD,DATE_OF_BIRTH,getdate())%365%30 as days

    from EMP_MST where accountid=4

    Hitendra

  • RE: How can we calculate Age of employee?

    Hi,

    you can try this

    select EMP_CODE,DATE_OF_BIRTH ,DATEDIFF(DD,DATE_OF_BIRTH,getdate())/365 as years,(DATEDIFF(DD,DATE_OF_BIRTH,getdate())%365)/30 as months,

    DATEDIFF(DD,DATE_OF_BIRTH,getdate())%365%30 as days

    from EMP_MST where accountid=4

    Hitendra

  • RE: Money data type problem

    Hello david,

    I would like you to elaborate on that. Do you have 0.0000 valued

    entry in your money column? Are you trying select ... where money_column>0...

  • RE: Money data type problem

    Hello david,

    I would like you to elaborate on that. Do you have 0.0000 valued

    entry in your money column? Are you trying select ... where money_column>0...

  • RE: Money data type problem

    Hello david,

    I would like you to elaborate on that. Do you have 0.0000 valued

    entry in your money column? Are you trying select ... where money_column>0...

  • RE: Money data type problem

    Hello david,

    I would like you to elaborate on that. Do you have 0.0000 valued

    entry in your money column? Are you trying select ... where money_column>0...

  • RE: Money data type problem

    Hello david,

    I would like you to elaborate on that. Do you have 0.0000 valued

    entry in your money column? Are you trying select ... where money_column>0...

Viewing 7 posts - 46 through 52 (of 52 total)