Forum Replies Created

Viewing 15 posts - 8,596 through 8,610 (of 10,144 total)

  • RE: Are the posted questions getting worse?

    Jeff Moden (4/2/2009)


    After just the first couple of posts from that self appointed, ring knocking, side stepping beach creature

    from the shallow end of the gene pool 😎

    RBarryYoung (4/2/2009)


    Chris...

  • RE: Insert using a join

    I don't think the original query does what you think it should. Try this, but comment out the INSERT line first and run only the SELECT:

    INSERT INTO ExtraContact (ExtraValueID, ContactID)

    SELECT...

  • RE: Insert using a join

    What does this return, Karl?

    SELECT e.ExtraValueID, e.ContactID

    FROM ExtraContact e

    INNER JOIN Contact c ON c.ContactID = e.ContactID AND c.Email IS NOT NULL

    WHERE e.ExtraValueID = 98203

  • RE: Insert using a join

    Hello

    Can you please post the table create script for table ExtraContact?

  • RE: Multi Column Sort

    This code generates some sample data; 250,000 rows of six data columns plus an id column which holds the correct order of the data set as described so far by...

  • RE: Multi Column Sort

    Christian Buettner (4/2/2009)


    Not sure what this is all about, but is this something you would expect?

    SELECT *

    , (SELECT COUNT(*) FROM b

    WHERE ISNULL(col1,0) <= ISNULL(al.col1,9)

    AND ISNULL(col2,0) <= ISNULL(al.col2,9)

    AND...

  • RE: Multi Column Sort

    jsanborn (4/2/2009)


    Mr. Morris

    No such person has responded to this thread.

  • RE: Multi Column Sort

    jsanborn (4/2/2009)


    The values always increment across the row such that, when the rows are in order, the values in all columns also increment top to bottom. There are random cells...

  • RE: Multi Column Sort

    jsanborn (4/1/2009)


    Anyone know how to sort this:

    ID Col1 Col2 Col3

    1 3 4 ...

  • RE: Are the posted questions getting worse?

    Steve Jones - Editor (4/1/2009)


    Lynn Pettis (4/1/2009)


    Must not be a critical piece in the scope of things, huh.

    At least not to his boss :w00t:

    Good grief, it's the White House window...

  • RE: Are the posted questions getting worse?

    David Burrows (4/1/2009)


    Hey Bob! He's back!

    Well I hope not against the wall, people tend to get shot that way :crazy:

    142 posts and 10 months on essentially the same query...

  • RE: Applying multiple criteria in a SELECT statement

    -- Query 1

    SELECT s.Id, s.Name, c.*

    FROM school s

    INNER JOIN courses c

    ON c.SchoolId = s.Id

    WHERE EXISTS (SELECT 1 FROM courses WHERE SchoolId = s.Id AND [Name] = 'maths')

    ...

  • RE: CASE vs UNION

    Andrew Winch (3/31/2009)


    Chris,

    Very interesting.

    So what you are saying is that even with the complexity of the CASE added to the query, the number of scans needed by the UNION ALL...

  • RE: sequence in a range

    Flo's already written it for you, Allan. Do you know how to do an UPDATE...FROM...?

  • RE: substract the quantity

    rajeevgupta40 (3/30/2009)


    sum (quantity) from product table -sum(quantity)from order table.

    so i unable to understand how query to select record with left total quantity in product table group by

    productID,productname,suppliername, unitprice.

    hope this explaination...

Viewing 15 posts - 8,596 through 8,610 (of 10,144 total)