Forum Replies Created

Viewing 15 posts - 1,546 through 1,560 (of 14,953 total)

  • RE: insert 100 rows without using loop or union etc.,

    drew.allen (5/2/2012)


    Cadavre (5/2/2012)


    FROM CTE x, CTE y;

    drew.allen (5/2/2012)


    This join syntax has been deprecated. You shouldn't be using it in new development. Use CROSS JOIN instead.

    GSquared (5/2/2012)


    Per what?

    The Outer...

  • RE: Work to Live

    MdApache (5/2/2012)


    GSquared (5/2/2012)


    MdApache (5/2/2012)


    I used to be a strong believer in regular funding of my retirement account, but now I'm less likely to do so. The finances for the...

  • RE: Work to Live

    stephanie.sullivan (5/2/2012)


    So I either gain by funding it, or I don't lose anything that matters in the long run by funding it, so I fund it on a "why not"...

  • RE: Work to Live

    MdApache (5/2/2012)


    I used to be a strong believer in regular funding of my retirement account, but now I'm less likely to do so. The finances for the USA are...

  • RE: Programmers v Salespeople

    L' Eomot Inversé (5/2/2012)


    TravisDBA (2/17/2012)


    Just let people give their opinions/experiences here without resorting to calling there opinions "silly". Please treat people with respect without resorting to calling them or their...

  • RE: help with SQL query please

    SQL Kiwi (5/2/2012)


    GSquared (5/2/2012)


    It would look something like that. Usually gets a very efficient execution plan.

    Client ID would need to be a key to avoid duplicates there.

    You could also...

  • RE: Promoting Engineers

    j_e_o (5/2/2012)


    Actually, I am living the answer to most of what we have been discussing. Quite a few years back, my company embarked on a journey to embrace agile...

  • RE: Work to Live

    I think it depends on how you look at it.

    Sure, nobody has the final regret "I wish I'd spent more time at the office". (Well, it's not usual. ...

  • RE: help with SQL query please

    The easy way to do this with SQL 2008 (as per the forum this is posted in), is to Cross/Outer Apply from your Clients table to this table.

    SELECT *

    FROM dbo.Clients

    OUTER...

  • RE: Find infinite cycle in a tree

    You have to build your own loop for that, instead of using a recursive CTE.

    At each iteration of the loop, check if any values already exist in the result-set. ...

  • RE: nth occurance of a alphabet

    michael vessey (5/2/2012)


    to find the first instance of a character in a string use "charindex"

    to find the last instance use a combination of charindex and REVERSE

    select LEN(col3) - CHARINDEX('A',REVERSE,col3)) as...

  • RE: insert 100 rows without using loop or union etc.,

    drew.allen (5/2/2012)


    Cadavre (5/2/2012)


    NLV (5/2/2012)


    Hi,

    I want to insert 100 rows like (1,2,3,4,..100) without using loops into a table using CTE. can you please help.

    WITH CTE(n) AS(SELECT 1

    ...

  • RE: nth occurance of a alphabet

    When you say "max occurence of alphabet 'A'", do you mean you want the position in the string of the last "A" in it?

    If so, something like this will find...

  • RE: GETDATE() or CURRENT_TIMESTAMP?

    They do the same thing. Probably even use the exact same binaries behind the scenes where SQL Server does all the actual work.

    So use CURRENT_TIMESTAMP if you can. ...

  • RE: Promoting Engineers

    Career path? I've never considered this even important, much less critical. I do my job, my skills continue to evolve and improve as I teach myself new things...

Viewing 15 posts - 1,546 through 1,560 (of 14,953 total)