Forum Replies Created

Viewing 15 posts - 4,201 through 4,215 (of 10,144 total)

  • RE: Are the posted questions getting worse?

    dwain.c (8/8/2013)


    ChrisM@Work (8/8/2013)


    Howard - the name of the guy made me chuckle, given the pidgin English 😀

    I've been hearing a lot of Tok Pisin for the last week. ...

  • RE: Query Help - Sum by Month

    That's well sneaky Stefan! This mod should make it quicker, too:

    ;with cte1 as (

    -- get all interesting months

    select

    FirstDay = dateadd(month, N, '20100101'),

    qq = dateadd(month, 1, dateadd(month, N, '20100101'))

    from...

  • RE: Query Help - Sum by Month

    Stefan_G (8/7/2013)


    A little challenge:

    Assume there is a clustered index on the date column.

    Can you create a query that exploits the clustered index to achieve even better performance?

    Borrowing from Luis' test...

  • RE: cook book

    GilaMonster (8/8/2013)


    ChrisM@Work (8/8/2013)


    Sounds like a Sisyphean task, similar to those given to raw recruits of some services - "Get me a Portuguese handpump and bring a bucket of steam with...

  • RE: cook book

    Sounds like a Sisyphean task, similar to those given to raw recruits of some services - "Get me a Portuguese handpump and bring a bucket of steam with you".

  • RE: Joins and Counts

    Hi James

    The table alias 'c' is now used in the APPLY subquery and is not visible to the outer SELECT list. If it were in the SELECT list of the...

  • RE: How to update Flag based on Maximum Amount

    This is an exact match for your stated requirements and results. However, if I were a betting person, I'd put money on it being wrong - because you've missed out...

  • RE: Are the posted questions getting worse?

    HowardW (8/8/2013)


    ChrisM@Work (8/8/2013)


    Howard - the name of the guy made me chuckle, given the pidgin English 😀

    Check out the strap-line under the logo on the website as well. Comedy...

  • RE: Are the posted questions getting worse?

    Howard - the name of the guy made me chuckle, given the pidgin English 😀

    Has anyone else had issues with posting image links? I've used Postimg before and it's...

  • RE: Joins and Counts

    This is a real stab in the dark;

    SELECT

    MT.[Organisation ]

    ,MT.[Assignment Number ]

    ,MT.[First Name ]

    ,MT.[Last Name ]

    ,MT.[Position Title ]

    ,MT.[Site Name ]

    ,MT.[Date of Expense ]

    ,MT.[Reason ]

    ,MT.[Expense Item ]

    ,MT.[From ]

    ,MT.[FromPostcode ]

    ,MT.[To ]

    ,MT.[ToPostcode ]

    ,MT.[Step...

  • RE: tsql query for counting a 'grouped by' and a where clause

    You will need to include both tables in your query:

    FROM employers

    LEFT JOIN superusers

  • RE: Query Help - Sum by Month

    Luis Cazares (8/7/2013)


    wolfkillj (8/7/2013)


    Sean Grebey (8/6/2013)


    Thanks for the replies. Out of curiosity, this is the approach I took. Is there an issue with it?

    select ROUND(sum(ContractValue),2) ContractValue, MONTH(ContractDate), YEAR(ContractDate)

    From Reporting.dbo.PrgSum

    Group by...

  • RE: Splitting Comma Separated Values into Rows

    Sean Lange (8/7/2013)


    Please don't cross post. It just fragments the replies.

    Here is the other one. http://www.sqlservercentral.com/Forums/Topic1481654-392-1.aspx

    1970's toilet graffiti: on the left-hand side of the cubicle is written "see other side...

  • RE: Table data in tabular form

    freecoder (8/7/2013)


    Thanks 🙂

    It works?

  • RE: Need help with TSQL

    rajg (8/7/2013)


    I am really not sure but this is that table structure with data that is given to me. Would really be a great help if someone can help....

Viewing 15 posts - 4,201 through 4,215 (of 10,144 total)