Forum Replies Created

Viewing 15 posts - 931 through 945 (of 1,033 total)

  • RE: Insert into Statement problem??

    I believe it goes something like this

    INSERT INTO table1 DEFAULT VALUES

    That is if what you say is true and you only have one column with a default value and you...

  • RE: Date

    Like this

    SELECT

    quartervalue = DATEPART(qq,datetimefield),

    quartersum = SUM(salesvalues)

    FROM

    Sales_data

    WHERE

    datepart(yy,datetimefield) = somevalue

    GROUP BY

    DATEPART(qq,datetimefield)

  • RE: Unique Data Generalization

    Actually

    since from BOL I found

    By default, the UNION operator removes duplicate rows from the result set. If you use ALL, all rows are included in the results and duplicates are...

  • RE: Unique Data Generalization

    I don't have 3 billion record tables to test with but...

    Wouldn't something like this work?

    INSERT INTO TABLED

    SELECT

    main.col1

    FROM

    (

    SELECT col1 FROM TABLEA

    UNION

    SELECT...

  • RE: XML Workshop XXI - Generating an ATOM 1.0 Feed with FOR XML EXPLICIT

    Thanks!

    I had known of FOR XML EXPLICIT after having to write a 30 column 7 layer XML query to generate a sales order for Biztalk to pickup. This is...

  • RE: Short cut key

    george sibbald (7/16/2008)


    I only answered this so I could jump a month into the future and thus be on holiday.

    Me too 🙂

  • RE: Short cut key

    Grant Fritchey (7/15/2008)


    Well it sure doesn't work by default. I tried it in 2005 and 2008 and received nothing. I also note, that the answer, ALT-F1, is not listed in...

  • RE: Nested JOINS confusion

    And if you try to next a subquery in the select portion of a query

    i.e.

    SELECT

    howtojoin = (SELECT joinrequirements FROM requirements_table)

    I will shoot you... 😛

  • RE: Nested JOINS confusion

    Grant Fritchey (7/11/2008)


    mtassin (7/11/2008)


    Grant Fritchey (7/11/2008)


    rbarryyoung (7/11/2008)


    Grant Fritchey (7/10/2008)


    There's an "Anti-Rbar Alliance"?

    How do you join? ...

    Uhhhm, .. do you want it in SQL-92 syntax or SQL-89 syntax?

    😀

    You know, either way...

  • RE: Nested JOINS confusion

    Grant Fritchey (7/11/2008)


    rbarryyoung (7/11/2008)


    Grant Fritchey (7/10/2008)


    There's an "Anti-Rbar Alliance"?

    How do you join? ...

    Uhhhm, .. do you want it in SQL-92 syntax or SQL-89 syntax?

    😀

    You know, either way works for me,...

  • RE: Nested JOINS confusion

    Grant Fritchey (7/10/2008)


    I promise, tomorrow, an example or a refutation and apology.

    I do remember it having a big impact on performance in SQL 7... though I never could figure out...

  • RE: Nested JOINS confusion

    Grant Fritchey (7/10/2008)


    I'm going to start digging, but I've had instances where moving filtration from the WHERE clause to the ON clause does change the execution plan. I don't have...

  • RE: Nested JOINS confusion

    Grant Fritchey (7/10/2008)


    There's an "Anti-Rbar Alliance"?

    How do you join? How much are the dues? Does the initiation involve sheep or goats?

    You join by fighting it in the streets... in the...

  • RE: Nested JOINS confusion

    I too must agree with Grant... ANSI-92+ join syntax is easier to understand and much better in terms of self-documenting.

Viewing 15 posts - 931 through 945 (of 1,033 total)