Forum Replies Created

Viewing 15 posts - 256 through 270 (of 541 total)

  • RE: Issue with duplicate data

    Eugene Elutin (5/3/2012)


    Based on data provided there are no discrepancies in a query results:

    Employee NameMonthYearWorking HoursActual HoursHrs_DiffMin_DiffS Cat2 HoursM Cat2 HoursB Cat2 HoursR Cat2 Hours

    VishalMay201228:00:0029:11:001110:00:000:00:000:00:000:00:00

    Working Hours are correct: 28:00:00...

  • RE: Issue with duplicate data

    Eugene Elutin (5/3/2012)


    Based on data provided there are no discrepancies in a query results:

    Employee NameMonthYearWorking HoursActual HoursHrs_DiffMin_DiffS Cat2 HoursM Cat2 HoursB Cat2 HoursR Cat2 Hours

    VishalMay201228:00:0029:11:001110:00:000:00:000:00:000:00:00

    Working Hours are correct: 28:00:00...

  • RE: Issue with duplicate data

    Eugene Elutin (5/3/2012)


    I need underlying data, not the results.

    Can you give me data insert statements for Staff and StaffDate tables for this gentlemen and month May2012.

    Really Sorry Eugene, actually...

  • RE: Issue with duplicate data

    This is the example from SQL:

    Bhasin, VishalMay2012161:00:0015:12:09-145-470:00:000:00:0014:00:000:00:00

    Eugene Elutin (5/3/2012)


    Can you post exact underlying time data which doesn't add up when summed?

  • RE: Issue with duplicate data

    Eugene Elutin (5/3/2012)


    Your requirements are complicated enough, coding without style adds up...

    Do you remember my joke about noodles? So, code-noodles good for lunch, but it's hard to work with.

    First what...

  • RE: Issue with duplicate data

    Eugene Elutin (5/3/2012)


    Your requirements are complicated enough, coding without style adds up...

    Do you remember my joke about noodles? So, code-noodles good for lunch, but it's hard to work with.

    First what...

  • RE: Issue with duplicate data

    pwalter83 (5/3/2012)


    Eugene Elutin (5/3/2012)


    Could you please specify what results should look like exactly from sample data you posted.

    I cannot see where you are trying to group by category2_id in your...

  • RE: Issue with duplicate data

    Eugene Elutin (5/3/2012)


    Could you please specify what results should look like exactly from sample data you posted.

    I cannot see where you are trying to group by category2_id in your query...

  • RE: Issue with duplicate data

    Eugene Elutin (5/1/2012)


    no probs at all, if I'll have a time I'll help.

    Hi Eugene,

    I am trying to resolve this last requirement with the query. The problem I am facing now...

  • RE: Issue with duplicate data

    Eugene Elutin (5/1/2012)


    no probs at all, if I'll have a time I'll help.

    Thanks a ton once again for saving my job !!! I have completed the report which I has...

  • RE: Issue with duplicate data

    Eugene Elutin (5/1/2012)


    ....

    I suggested the same thing you mentioned to the person who created these tables. However, I got the reply that this was out of question and I have...

  • RE: Issue with duplicate data

    Eugene Elutin (5/1/2012)


    You would greatly benefit if you could normalise your Staff table.

    I would suggest to get MonHours, TueHours etc. out of this table and place it into dedicated StaffWorkHours...

  • RE: Issue with duplicate data

    Eugene Elutin (5/1/2012)


    Paul, let start from making your query a bit more readable.

    1. You can use DATENAME function instead of converting month number to string.

    2. You don't need check if...

  • RE: Issue with duplicate data

    Eugene Elutin (5/1/2012)


    Would you be able to post DDL and data setup not as attachments? Many workplaces do prohibit downloading from web...

    yes,please find the DDL and sample data below:

    Staff- DDL

    --------------------------

    CREATE...

  • RE: Calculating time difference

    Eugene Elutin (4/27/2012)


    ... was able to achieve this with code:

    convert(int,((sum(datepart(hour,Timenetin) * 3600) + sum(datepart(hour,cat2_hours) * 3600) + sum(datepart(minute,Timenetin) * 60) + sum(datepart(minute,cat2_hours) * 60) + sum(datepart(second,Timenetin) *...

Viewing 15 posts - 256 through 270 (of 541 total)