Forum Replies Created

Viewing 15 posts - 6,871 through 6,885 (of 10,144 total)

  • RE: Are the posted questions getting worse?

    Congratulations to Paul White, who's joined the elite through hard work and outstanding contributions to the community. Well done Paul, very well deserved.

  • RE: Recursive CTE - Am I going mad???

    kp81 (3/11/2011)


    Let it be said Ian...you're a legend!

    I've just run it up and it's spot on what I need. I think the key was also in the

    case when...

  • RE: Complex Query

    BeginnerBug (3/9/2011)


    create table #sample(sno int identity,student_no int, head int,task varchar(50))

    insert into #sample (student_no,head,task) values(1,10,'tactical')

    insert into #sample (student_no,head,task) values(10,20,'basket')

    insert into #sample (student_no,head,task) values(20,40,'aerospace')

    insert into #sample (student_no,head,task) values(40,10,'robot')

    insert into #sample (student_no,head,task) values(10,40,'tackle')

    insert...

  • RE: Union Query Total

    Jeff Moden (3/9/2011)


    Chris Morris-439714 (3/9/2011)


    clarmatt73 (3/9/2011)


    Hi All,

    I have a stored procedure that has five union queries within it, the first and last queries in the code are the Header and...

  • RE: Union Query Total

    You're welcome Matt. If you're still unsure, post up the whole query.

  • RE: Union Query Total

    clarmatt73 (3/9/2011)


    Hi All,

    I have a stored procedure that has five union queries within it, the first and last queries in the code are the Header and Footer for the export...

  • RE: Are the posted questions getting worse?

    Gianluca Sartori (3/9/2011)


    Koen Verbeeck (3/8/2011)


    Tom.Thomson (3/8/2011)


    Kiara (3/8/2011)


    Koen Verbeeck (3/8/2011)


    First of all, as it is international woman day, congrats to all those woman out here!

    (who for some bizarre reason love to...

  • RE: inner join returns cartesian product why?

    Michael Tocik (3/8/2011)


    dope!:blush:

    My mistake....I was joining on the wrong field

    Easily done. Try to get into the habit of using table aliases:

    SELECT i.order_number

    FROM INVOICE_DETAIL_CONF_ALL i

    INNER JOIN ORDER_EXTRACT_AUTO o

    ON o.[Ord No]...

  • RE: Are the posted questions getting worse?

    SQLkiwi (3/4/2011)


    Exciting day - just had my first Simple Talk article published:

    http://www.simple-talk.com/sql/learn-sql-server/understanding-and-using-parallelism-in-sql-server/

    Good lord Paul, they get better and better. You have an enviable skill, like Jeff M, at making the...

  • RE: Are the posted questions getting worse?

    Dave Ballantyne (3/4/2011)


    SQLkiwi (3/4/2011)


    Plagiarism is when you're pretending the work is your own and not giving proper credit.

    Copyright infringement is when you're reprinting the work without permission.

    It is possible to...

  • RE: 'Pretty-up' the code

    Try this as an alternative:

    ;WITH CTE_Filter AS (

    SELECT drugid

    FROM dphadrugdata d

    WHERE d.usagetype LIKE '%Non%'

    AND d.active = 'Y'

    GROUP BY drugid -- <<<---- dedupes, might not need this

    ) ...

  • RE: Extra space in string pivot CTE

    Jim, here's an alternative method. Assuming your new codes are in column A then insert the following into B1 and B2:

    ="SELECT '" & A1 & "' AS NewCode UNION ALL"

    ="SELECT...

  • RE: Are the posted questions getting worse?

    CirquedeSQLeil (3/1/2011)


    Fal (3/1/2011)


    David Benoit (3/1/2011)


    Grant Fritchey (3/1/2011)


    Well do you want video or just pictures?

    Just don't put either on The Thread. Please... 😀

    Hey, I thought only code was barred on The...

  • RE: Are the posted questions getting worse?

    GSquared (2/28/2011)


    Jeff Moden (2/25/2011)


    SQLkiwi (2/22/2011)


    Steve Jones - SSC Editor (2/22/2011)


    On a similar debating note, does anyone know of code in SQL Server that's worth protecting with CLR, obfuscation, or any...

  • RE: Today's Random Word!

    Daniel Bowlin (2/23/2011)


    Focus

    Hocus Pocus

Viewing 15 posts - 6,871 through 6,885 (of 10,144 total)