Forum Replies Created

Viewing 8 posts - 31 through 38 (of 38 total)

  • RE: Calculate age - Most easiest way

    joseph.connor (12/2/2014)


    Neat, although isn't the Floor function obsolete, since you're performing an Integer Division?

    well spotted, I was guarding against it rounding up where fractional part was > 0.5, but integer...

  • RE: Calculate age - Most easiest way

    Most cultures celebrate the birthday of a "Leaper" on the 28th February, so a Leaper born on 2012-02-29 would celebrate their first birthday on 2013-02-28 and their

    second on 2014-02-28.

    its...

  • RE: Calculate age - Most easiest way

    A person born on 2012-02-29 should be how old on 2014-02-28?

    1 year old still, the day has not rolled over to 1st March

    select '20120228' , FLOOR((CONVERT(INT,'20140228') - CONVERT(INT,'20120228'))/10000) , FLOOR((CONVERT(INT,'20140301')...

  • RE: Calculate age - Most easiest way

    If you only need age in years, then the following is easier as it does not need you to create a function so can be used directly in a select...

  • RE: Create a stored procedure

    Msg 156, Level 15, State 1, Procedure my_sp, Line 2

    Incorrect syntax near the keyword 'FROM'.

    the explanation says

    "Actually SQL Srever only check syntactical accuracy when a stored procedure is created. Only...

  • RE: Create a stored procedure

    .

  • RE: How do I obtain detailed reports through SSRS on an OLAP datamart?

    not sure what you mean by ODS (operational data store?), if you mean it to be the same as a datawarehouse, i.e. bringing together data from various systems, e.g. finance,...

  • RE: How do I obtain detailed reports through SSRS on an OLAP datamart?

    the simple answer is that the datamart/datawarehouse must contain raw detailed records, otherwise you can't create the OLAP cube

    the OLAP cube should only contain summarised data, otherwise they become slow...

Viewing 8 posts - 31 through 38 (of 38 total)