Forum Replies Created

Viewing 15 posts - 631 through 645 (of 1,229 total)

  • RE: Question for the "experts"

    DeanORenO (1/11/2012)


    you people on this forum are always complaining about the questions that are asked on the forums, either you complain that they are too simple, and that the poster...

  • RE: Are the posted questions getting worse?

    mtillman-921105 (1/11/2012)


    Wasn't there a band named the Sex Pixels?

    Red Day (frown) Green Day (smile)

  • RE: Recusion on Group and their subGroups- how can I solve this problem?

    ;WITH Groups AS (

    SELECT GroupId = g.Id, g.GroupName, ga.ParentGroupId

    FROM dbo.[group] g

    LEFT JOIN GroupAssociations ga on g.Id = ga.GroupId

    )

    , rCTE AS (

    SELECT...

  • RE: search second value from comma separated string

    latitiacasta (1/10/2012)


    Sean: if you are talking about function then its not possible in my case.

    i want through query only

    Why not convert Jeff's function to use APPLY, like this:

    SELECT ItemNumber, Item...

  • RE: Are the posted questions getting worse?

    WayneS (1/10/2012)


    SQLRNNR (1/9/2012)


    SQL Kiwi (1/9/2012)


    GSquared (1/9/2012)


    Yes, but not at the posts count thing. Just at the "change your name to something even sillier than GSquared" thing.

    You don't think 'Aaron...

  • RE: Are the posted questions getting worse?

    GilaMonster (1/10/2012)


    Greg Edwards-268690 (1/10/2012)


    The Bending of light to enable you to become invisible?:-D

    That's already been done iirc

    Yup[/url].

  • RE: Select query yielding diff. results

    Try picking up all of the year values in one query:

    SELECT d.Create_year, COUNT(*)

    from blobs b

    INNER JOIN (

    Select blob_id, Create_year = year(Created_date)

    from attachments a

    INNER JOIN Purchase_orders P ON...

  • RE: Flag population based on Row_Value

    Aaron Aardvark (1/9/2012)


    SQL_By_Chance (1/9/2012)


    Do you guys think its possible in If...else as well ?

    Sorry, I don't understand the question...

    Who's Smith?

  • RE: Update Large Table

    Jeff Moden (1/8/2012)


    ChrisM@home (1/8/2012)


    Dbloc (1/6/2012)


    ...After the update is done I then Insert these specific rows in to another table.

    Why not do this in one step? Select the rows you want...

  • RE: Flag population based on Row_Value

    These are probably the simplest options:

    insert into sales (ID,Sales_Jan,Sales_Feb,Sales_Mar,Sales_Apr,Sales_May)

    values

    (1, 100, 0,0,0 ,0 ),

    (2, 120,0, 200, 300,0 ),

    (3, 0, 100,0 , 300, 0 ),

    (4, 100, 200, 100, 100, 100 ),

    (5,...

  • RE: Flag population based on Row_Value

    SQL_By_Chance (1/9/2012)


    ID Sales_Jan Sales_Feb Sales_Mar Sales_Apr Sales_May Sales_flag

    1 100 1

    2...

  • RE: Need Help Rewriting Query

    zwheeler (1/6/2012)


    I have the following query and it works

    I would like to rewrite this query as an outer join but i donot know how. I wouild like help in rewriting...

  • RE: Update Large Table

    Dbloc (1/6/2012)


    ...After the update is done I then Insert these specific rows in to another table.

    Why not do this in one step? Select the rows you want from the 80M,...

  • RE: Quirky Update query...works on server ...fails on PC.

    Jeff Moden (1/7/2012)


    Absolutely incredible, Paul. Great bit of research...

    No kidding. What Paul's modestly neglected to mention is the 5-fold performance lift provided by removing the table spool from the...

  • RE: Quirky Update query...works on server ...fails on PC.

    Sorry about delay. Results from home lappy, specs posted earlier:

    /* maxmem 3072:

    Table 'StockMovements'. Scan count 1, logical reads 30947106, physical reads 7, read-ahead reads 70, lob logical reads 0, lob...

Viewing 15 posts - 631 through 645 (of 1,229 total)